Skip to content

Commit

Permalink
Bug 1060051 - Make editor related interfaces builtin classes if it's …
Browse files Browse the repository at this point in the history
…possible r=Ehsan,smaug

If we make nsIEditor a builtin class, that means that its instance can be only TextEditor or HTMLEditor.  Then, users of nsIEditor can use concrete classes such as EditorBase, TextEditor or HTMLEditor instead.  Then, the users can reduce unnecessary QI and a lot of virtual calls if we'll create non-virtual methods.

So, let's make editor related interfaces builtin classes.

MozReview-Commit-ID: 93WfsSDuJiJ

--HG--
extra : rebase_source : 39151eb4ffaaf195fec57234ea84c9f4066c58d1
  • Loading branch information
masayuki-nakano committed Aug 4, 2017
1 parent 0c7d352 commit a2333fc
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion editor/composer/nsIEditingSession.idl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
interface mozIDOMWindowProxy;
interface nsIEditor;

[scriptable, uuid(24f963d1-e6fc-43ea-a206-99ac5fcc5265)]
[scriptable, builtinclass, uuid(24f963d1-e6fc-43ea-a206-99ac5fcc5265)]

interface nsIEditingSession : nsISupports
{
Expand Down
2 changes: 1 addition & 1 deletion editor/nsIEditor.idl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ struct IMEState;

native IMEState(mozilla::widget::IMEState);

[scriptable, uuid(094be624-f0bf-400f-89e2-6a84baab9474)]
[scriptable, builtinclass, uuid(094be624-f0bf-400f-89e2-6a84baab9474)]
interface nsIEditor : nsISupports
{
%{C++
Expand Down
2 changes: 1 addition & 1 deletion editor/nsIEditorMailSupport.idl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
interface nsIArray;
interface nsIDOMNode;

[scriptable, uuid(fdf23301-4a94-11d3-9ce4-9960496c41bc)]
[scriptable, builtinclass, uuid(fdf23301-4a94-11d3-9ce4-9960496c41bc)]

interface nsIEditorMailSupport : nsISupports
{
Expand Down
2 changes: 1 addition & 1 deletion editor/nsIEditorStyleSheets.idl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include "nsISupports.idl"

[scriptable, uuid(4805e682-49b9-11d3-9ce4-ed60bd6cb5bc)]
[scriptable, builtinclass, uuid(4805e682-49b9-11d3-9ce4-ed60bd6cb5bc)]

interface nsIEditorStyleSheets : nsISupports
{
Expand Down
2 changes: 1 addition & 1 deletion editor/nsIEditorUtils.idl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
interface nsIDOMBlob;
interface mozIDOMWindowProxy;

[scriptable, uuid(eb8b8ad9-5d8f-43bd-8ce5-5b943c180d56)]
[scriptable, builtinclass, uuid(eb8b8ad9-5d8f-43bd-8ce5-5b943c180d56)]
interface nsIEditorBlobListener : nsISupports
{
void onResult(in ACString aResult);
Expand Down
2 changes: 1 addition & 1 deletion editor/nsIHTMLAbsPosEditor.idl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "nsISupports.idl"
#include "domstubs.idl"

[scriptable, uuid(91375f52-20e6-4757-9835-eb04fabe5498)]
[scriptable, builtinclass, uuid(91375f52-20e6-4757-9835-eb04fabe5498)]

interface nsIHTMLAbsPosEditor : nsISupports
{
Expand Down
2 changes: 1 addition & 1 deletion editor/nsIHTMLEditor.idl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Element;

[ptr] native Element (mozilla::dom::Element);

[scriptable, uuid(87ee993e-985f-4a43-a974-0d9512da2fb0)]
[scriptable, builtinclass, uuid(87ee993e-985f-4a43-a974-0d9512da2fb0)]
interface nsIHTMLEditor : nsISupports
{
%{C++
Expand Down
2 changes: 1 addition & 1 deletion editor/nsIHTMLInlineTableEditor.idl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "nsISupports.idl"
#include "domstubs.idl"

[scriptable, uuid(eda2e65c-a758-451f-9b05-77cb8de74ed2)]
[scriptable, builtinclass, uuid(eda2e65c-a758-451f-9b05-77cb8de74ed2)]

interface nsIHTMLInlineTableEditor : nsISupports
{
Expand Down
2 changes: 1 addition & 1 deletion editor/nsIHTMLObjectResizer.idl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "nsISupports.idl"
#include "domstubs.idl"

[scriptable, uuid(8b396020-69d3-451f-80c1-1a96a7da25a9)]
[scriptable, builtinclass, uuid(8b396020-69d3-451f-80c1-1a96a7da25a9)]

interface nsIHTMLObjectResizer : nsISupports
{
Expand Down
2 changes: 1 addition & 1 deletion editor/nsIPlaintextEditor.idl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include "nsISupports.idl"

[scriptable, uuid(b74fb158-1265-4102-91eb-edd0136b49f8)]
[scriptable, builtinclass, uuid(b74fb158-1265-4102-91eb-edd0136b49f8)]
interface nsIPlaintextEditor : nsISupports
{

Expand Down
2 changes: 1 addition & 1 deletion editor/nsITableEditor.idl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface nsIDOMNode;
interface nsIDOMElement;
interface nsIDOMRange;

[scriptable, uuid(4805e684-49b9-11d3-9ce4-ed60bd6cb5bc)]
[scriptable, builtinclass, uuid(4805e684-49b9-11d3-9ce4-ed60bd6cb5bc)]

interface nsITableEditor : nsISupports
{
Expand Down

0 comments on commit a2333fc

Please sign in to comment.