Skip to content

Commit

Permalink
Bug 1545822 - Clean up some whitespace in XPIDL files. r=froydnj
Browse files Browse the repository at this point in the history
The attributes for an interface should be on the line right before the
interface.

Interface attributes should be separated by spaces.

Clean up some trailing whitespace in widget/.

Differential Revision: https://phabricator.services.mozilla.com/D28234
  • Loading branch information
amccreight committed Apr 21, 2019
1 parent 8c76e3e commit 3aeb918
Show file tree
Hide file tree
Showing 32 changed files with 41 additions and 70 deletions.
4 changes: 2 additions & 2 deletions caps/nsIAddonPolicyService.idl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* This interface allows the security manager to query custom per-addon security
* policy.
*/
[scriptable,uuid(8a034ef9-9d14-4c5d-8319-06c1ab574baa)]
[scriptable, uuid(8a034ef9-9d14-4c5d-8319-06c1ab574baa)]
interface nsIAddonPolicyService : nsISupports
{
/**
Expand Down Expand Up @@ -73,7 +73,7 @@ interface nsIAddonPolicyService : nsISupports
* This interface exposes functionality related to add-on content policy
* enforcement.
*/
[scriptable,uuid(7a4fe60b-9131-45f5-83f3-dc63b5d71a5d)]
[scriptable, uuid(7a4fe60b-9131-45f5-83f3-dc63b5d71a5d)]
interface nsIAddonContentPolicy : nsISupports
{
/**
Expand Down
2 changes: 1 addition & 1 deletion dom/base/nsIContentPolicy.idl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ typedef unsigned long nsContentPolicyType;
* by launching a dialog to prompt the user for something).
*/

[scriptable,uuid(caad4f1f-d047-46ac-ae9d-dc598e4fb91b)]
[scriptable, uuid(caad4f1f-d047-46ac-ae9d-dc598e4fb91b)]
interface nsIContentPolicy : nsISupports
{
/**
Expand Down
3 changes: 1 addition & 2 deletions dom/interfaces/base/nsIBrowserDOMWindow.idl
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,14 @@ interface nsIOpenURIInFrameParams : nsISupports
readonly attribute jsval openerOriginAttributes;
};

[scriptable, uuid(2a9bb880-5d73-40f3-8152-c60c8d137a14)]

/**
* The C++ source has access to the browser script source through
* nsIBrowserDOMWindow. It is intended to be attached to the chrome DOMWindow
* of a toplevel browser window (a XUL window). A DOMWindow that does not
* happen to be a browser chrome window will simply have no access to any such
* interface.
*/
[scriptable, uuid(2a9bb880-5d73-40f3-8152-c60c8d137a14)]
interface nsIBrowserDOMWindow : nsISupports
{
/**
Expand Down
2 changes: 1 addition & 1 deletion dom/interfaces/base/nsIFocusManager.idl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ interface mozIDOMWindowProxy;
webidl Document;
webidl Element;

[scriptable, uuid(86e1f1e1-365d-493b-b52a-a649f3f311dc)]
/**
* The focus manager deals with all focus related behaviour. Only one element
* in the entire application may have the focus at a time; this element
Expand Down Expand Up @@ -39,6 +38,7 @@ webidl Element;
*
* Blur and focus events do not bubble as per the W3C DOM Events spec.
*/
[scriptable, uuid(86e1f1e1-365d-493b-b52a-a649f3f311dc)]
interface nsIFocusManager : nsISupports
{
/**
Expand Down
2 changes: 1 addition & 1 deletion dom/media/webrtc/nsITabSource.idl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

interface mozIDOMWindowProxy;

[scriptable,uuid(0feba7f2-800d-4fe5-b28d-e3f17a7a7322)]
[scriptable, uuid(0feba7f2-800d-4fe5-b28d-e3f17a7a7322)]
interface nsITabSource : nsISupports
{
mozIDOMWindowProxy getTabToStream();
Expand Down
1 change: 0 additions & 1 deletion editor/composer/nsIEditingSession.idl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ class HTMLEditor;
%}

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

interface nsIEditingSession : nsISupports
{
/**
Expand Down
1 change: 0 additions & 1 deletion editor/nsIEditActionListener.idl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ Editor Action Listener interface to outside world
* nsIDocumentObserver.
*/
[scriptable, uuid(b22907b1-ee93-11d2-8d50-000064657374)]

interface nsIEditActionListener : nsISupports
{
/**
Expand Down
1 change: 0 additions & 1 deletion editor/nsIEditorMailSupport.idl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ interface nsIArray;
webidl Node;

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

interface nsIEditorMailSupport : nsISupports
{
/** Insert a string as quoted text
Expand Down
1 change: 0 additions & 1 deletion editor/nsIEditorStyleSheets.idl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include "nsISupports.idl"

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

interface nsIEditorStyleSheets : nsISupports
{
/** Load and apply the override style sheet, specified by aURL, to the
Expand Down
1 change: 0 additions & 1 deletion editor/nsIHTMLInlineTableEditor.idl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include "domstubs.idl"

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

interface nsIHTMLInlineTableEditor : nsISupports
{
/**
Expand Down
1 change: 0 additions & 1 deletion editor/nsIURIRefObject.idl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ webidl Node;
*/

[scriptable, uuid(2226927e-1dd2-11b2-b57f-faab47288563)]

interface nsIURIRefObject : nsISupports
{
attribute Node node;
Expand Down
4 changes: 1 addition & 3 deletions extensions/spellcheck/idl/mozIPersonalDictionary.idl
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@

interface nsIStringEnumerator;

[scriptable, uuid(7EF52EAF-B7E1-462B-87E2-5D1DBACA9048)]

/**
* This interface represents a Personal Dictionary.
*/

[scriptable, uuid(7EF52EAF-B7E1-462B-87E2-5D1DBACA9048)]
interface mozIPersonalDictionary : nsISupports {

/**
Expand Down
4 changes: 1 addition & 3 deletions extensions/spellcheck/idl/mozISpellCheckingEngine.idl
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@ interface nsIFile;
interface nsIURI;
interface mozIPersonalDictionary;

[scriptable, uuid(8ba643a4-7ddc-4662-b976-7ec123843f10)]

/**
* This interface represents a SpellChecker.
*/

[scriptable, uuid(8ba643a4-7ddc-4662-b976-7ec123843f10)]
interface mozISpellCheckingEngine : nsISupports {
/**
* The name of the current dictionary. Is either a value from
Expand Down
2 changes: 1 addition & 1 deletion intl/l10n/mozIDOMLocalization.idl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ interface mozIDOMLocalization : nsISupports
readonly attribute Promise ready;
};

[scriptable,uuid(96532d26-2422-11e9-a1ce-9bb586acd241)]
[scriptable, uuid(96532d26-2422-11e9-a1ce-9bb586acd241)]
interface mozIDOMLocalizationJSM : nsISupports
{
mozIDOMLocalization getDOMLocalization();
Expand Down
3 changes: 1 addition & 2 deletions netwerk/base/nsIPermission.idl
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@
interface nsIPrincipal;
interface nsIURI;

[scriptable, uuid(bb409a51-2371-4fea-9dc9-b7286a458b8c)]
/**
* This interface defines a "permission" object,
* used to specify allowed/blocked objects from
* user-specified sites (cookies, images etc).
*/

[scriptable, uuid(bb409a51-2371-4fea-9dc9-b7286a458b8c)]
interface nsIPermission : nsISupports
{
/**
Expand Down
1 change: 0 additions & 1 deletion netwerk/base/nsPISocketTransportService.idl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
* It will never be frozen. Do not use it in external code.
*/
[builtinclass, scriptable, uuid(18f73bf1-b35b-4b7b-aa9a-11bcbdbc389c)]

interface nsPISocketTransportService : nsIRoutedSocketTransportService
{
/**
Expand Down
1 change: 0 additions & 1 deletion netwerk/cookie/nsICookie2.idl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
*/

[scriptable, uuid(be205dae-4f4c-11e6-80ba-ea5cd310c1a8)]

interface nsICookie2 : nsICookie
{
const uint32_t SAMESITE_UNSET = 0;
Expand Down
1 change: 0 additions & 1 deletion security/manager/ssl/nsISecurityUITelemetry.idl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include "nsISupports.idl"

[scriptable, uuid(5d1acf82-223a-46fb-a8f3-a1b16e2ceb04)]

interface nsISecurityUITelemetry : nsISupports {

/*
Expand Down
4 changes: 2 additions & 2 deletions toolkit/components/extensions/mozIExtensionProcessScript.idl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface mozIDOMWindow;
webidl Document;
webidl WebExtensionContentScript;

[scriptable,uuid(6b09dc51-6caa-4ca7-9d6d-30c87258a630)]
[scriptable, uuid(6b09dc51-6caa-4ca7-9d6d-30c87258a630)]
interface mozIExtensionProcessScript : nsISupports
{
void preloadContentScript(in nsISupports contentScript);
Expand All @@ -20,7 +20,7 @@ interface mozIExtensionProcessScript : nsISupports
in bool privileged);
};

[scriptable,uuid(9f2a6434-f0ef-4063-ae33-368d929805d2)]
[scriptable, uuid(9f2a6434-f0ef-4063-ae33-368d929805d2)]
interface mozIExtensionProcessScriptJSM : nsISupports
{
readonly attribute mozIExtensionProcessScript ExtensionProcessScript;
Expand Down
3 changes: 1 addition & 2 deletions toolkit/components/passwordmgr/nsILoginInfo.idl
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@

#include "nsISupports.idl"

[scriptable, uuid(c41b7dff-6b9b-42fe-b78d-113051facb05)]

/**
* An object containing information for a login stored by the
* password manager.
*/
[scriptable, uuid(c41b7dff-6b9b-42fe-b78d-113051facb05)]
interface nsILoginInfo : nsISupports {
/**
* The origin the login applies to, incorrectly called a hostname.
Expand Down
1 change: 0 additions & 1 deletion toolkit/components/passwordmgr/nsILoginManagerCrypto.idl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include "nsISupports.idl"

[scriptable, uuid(2030770e-542e-40cd-8061-cd9d4ad4227f)]

interface nsILoginManagerCrypto : nsISupports {

const unsigned long ENCTYPE_BASE64 = 0; // obsolete
Expand Down
3 changes: 1 addition & 2 deletions toolkit/components/passwordmgr/nsILoginManagerStorage.idl
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@ interface nsIFile;
interface nsILoginInfo;
interface nsIPropertyBag;

[scriptable, uuid(5df81a93-25e6-4b45-a696-089479e15c7d)]

/*
* NOTE: This interface is intended to be implemented by modules
* providing storage mechanisms for the login manager.
* Other code should use the login manager's interfaces
* (nsILoginManager), and should not call storage modules
* directly.
*/
[scriptable, uuid(5df81a93-25e6-4b45-a696-089479e15c7d)]
interface nsILoginManagerStorage : nsISupports {
/**
* Initialize the component.
Expand Down
3 changes: 1 addition & 2 deletions toolkit/components/passwordmgr/nsILoginMetaInfo.idl
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

#include "nsISupports.idl"

[scriptable, uuid(20d8eb40-c494-497f-b2a6-aaa32f807ebd)]

/**
* An object containing metainfo for a login stored by the login manager.
*
Expand All @@ -16,6 +14,7 @@
* using modifyLogin() with a nsIPropertyBag]. When deleting a login or
* comparing logins, these properties are ignored.
*/
[scriptable, uuid(20d8eb40-c494-497f-b2a6-aaa32f807ebd)]
interface nsILoginMetaInfo : nsISupports {
/**
* The GUID to uniquely identify the login. This can be any arbitrary
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include "nsISupports.idl"

[scriptable, uuid(a6c62ce5-3a95-41bb-b0f1-8cd4f4ca00e3)]

interface IUrlClassifierUITelemetry : nsISupports {

const uint32_t WARNING_MALWARE_PAGE_TOP = 1;
Expand Down
1 change: 0 additions & 1 deletion toolkit/components/windowcreator/nsIWindowCreator.idl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
interface nsIWebBrowserChrome;

[scriptable, uuid(30465632-A777-44cc-90F9-8145475EF999)]

interface nsIWindowCreator : nsISupports {

/** Create a new window. Gecko will/may call this method, if made
Expand Down
1 change: 0 additions & 1 deletion toolkit/components/windowcreator/nsIWindowCreator2.idl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ interface nsIWebBrowserChrome;
interface mozIDOMWindowProxy;

[scriptable, uuid(b6c44689-f97e-4f32-a723-29eeddfbdc53)]

interface nsIWindowCreator2 : nsIWindowCreator {

/** Create a new window. Gecko will/may call this method, if made
Expand Down
1 change: 0 additions & 1 deletion toolkit/components/windowwatcher/nsPIWindowWatcher.idl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ interface nsITabParent;
native nsDocShellLoadStatePtr(nsDocShellLoadState*);

[uuid(d162f9c4-19d5-4723-931f-f1e51bfa9f68)]

interface nsPIWindowWatcher : nsISupports
{
/** A window has been created. Add it to our list.
Expand Down
1 change: 0 additions & 1 deletion toolkit/components/xulstore/nsIXULStore.idl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ webidl Node;
* The data is serialized to [profile directory]/xulstore.json
*/
[scriptable, uuid(987c4b35-c426-4dd7-ad49-3c9fa4c65d20)]

interface nsIXULStore: nsISupports
{
/**
Expand Down
3 changes: 1 addition & 2 deletions widget/nsIPrintSession.idl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* The creation of a component which implements this interface
* will begin the session. Likewise, destruction of that object
* will end the session.
*
*
* @status
*/

Expand All @@ -30,7 +30,6 @@ class RemotePrintJobChild;
[ptr] native RemotePrintJobChildPtr(mozilla::layout::RemotePrintJobChild);

[uuid(424ae4bb-10ca-4f35-b84e-eab893322df4)]

interface nsIPrintSession : nsISupports
{
/**
Expand Down
Loading

0 comments on commit 3aeb918

Please sign in to comment.