Bug 1545822 - Clean up some whitespace in XPIDL files. r=froydnj

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andrew McCreight 2019-04-21 01:47:00 +00:00
parent 0d1d982767
commit f242e71c8a
32 changed files with 41 additions and 70 deletions

View File

@ -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
{
/**
@ -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
{
/**

View File

@ -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
{
/**

View File

@ -29,8 +29,6 @@ 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
@ -38,6 +36,7 @@ interface nsIOpenURIInFrameParams : nsISupports
* 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
{
/**

View File

@ -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
@ -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
{
/**

View File

@ -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();

View File

@ -17,7 +17,6 @@ class HTMLEditor;
%}
[scriptable, builtinclass, uuid(24f963d1-e6fc-43ea-a206-99ac5fcc5265)]
interface nsIEditingSession : nsISupports
{
/**

View File

@ -26,7 +26,6 @@ Editor Action Listener interface to outside world
* nsIDocumentObserver.
*/
[scriptable, uuid(b22907b1-ee93-11d2-8d50-000064657374)]
interface nsIEditActionListener : nsISupports
{
/**

View File

@ -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

View File

@ -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

View File

@ -7,7 +7,6 @@
#include "domstubs.idl"
[scriptable, builtinclass, uuid(eda2e65c-a758-451f-9b05-77cb8de74ed2)]
interface nsIHTMLInlineTableEditor : nsISupports
{
/**

View File

@ -16,7 +16,6 @@ webidl Node;
*/
[scriptable, uuid(2226927e-1dd2-11b2-b57f-faab47288563)]
interface nsIURIRefObject : nsISupports
{
attribute Node node;

View File

@ -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 {
/**

View File

@ -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

View File

@ -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();

View File

@ -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
{
/**

View File

@ -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
{
/**

View File

@ -12,7 +12,6 @@
*/
[scriptable, uuid(be205dae-4f4c-11e6-80ba-ea5cd310c1a8)]
interface nsICookie2 : nsICookie
{
const uint32_t SAMESITE_UNSET = 0;

View File

@ -7,7 +7,6 @@
#include "nsISupports.idl"
[scriptable, uuid(5d1acf82-223a-46fb-a8f3-a1b16e2ceb04)]
interface nsISecurityUITelemetry : nsISupports {
/*

View File

@ -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);
@ -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;

View File

@ -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.

View File

@ -6,7 +6,6 @@
#include "nsISupports.idl"
[scriptable, uuid(2030770e-542e-40cd-8061-cd9d4ad4227f)]
interface nsILoginManagerCrypto : nsISupports {
const unsigned long ENCTYPE_BASE64 = 0; // obsolete

View File

@ -9,8 +9,6 @@ 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.
@ -18,6 +16,7 @@ interface nsIPropertyBag;
* (nsILoginManager), and should not call storage modules
* directly.
*/
[scriptable, uuid(5df81a93-25e6-4b45-a696-089479e15c7d)]
interface nsILoginManagerStorage : nsISupports {
/**
* Initialize the component.

View File

@ -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.
*
@ -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

View File

@ -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;

View File

@ -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

View File

@ -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

View File

@ -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.

View File

@ -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
{
/**

View File

@ -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
*/
@ -30,7 +30,6 @@ class RemotePrintJobChild;
[ptr] native RemotePrintJobChildPtr(mozilla::layout::RemotePrintJobChild);
[uuid(424ae4bb-10ca-4f35-b84e-eab893322df4)]
interface nsIPrintSession : nsISupports
{
/**

View File

@ -14,16 +14,15 @@
/**
* Native types
*/
[ref] native nsNativeIntMarginRef(nsIntMargin);
[ref] native IntegerArray(nsTArray<int32_t>);
[ref] native nsNativeIntMarginRef(nsIntMargin);
[ref] native IntegerArray(nsTArray<int32_t>);
interface nsIPrintSession;
/**
* Simplified graphics interface for JS rendering.
*/
[scriptable, uuid(ecc5cbad-57fc-4731-b0bd-09e865bd62ad)]
interface nsIPrintSettings : nsISupports
{
/**
@ -125,12 +124,12 @@ interface nsIPrintSettings : nsISupports
const short kOutputFormatPDF = 2;
/**
* Set PrintOptions
* Set PrintOptions
*/
void SetPrintOptions(in int32_t aType, in boolean aTurnOnOff);
/**
* Get PrintOptions
* Get PrintOptions
*/
boolean GetPrintOptions(in int32_t aType);
@ -165,8 +164,8 @@ interface nsIPrintSettings : nsISupports
*/
[noscript] attribute nsIPrintSession printSession; /* We hold a weak reference */
attribute long startPageRange;
attribute long endPageRange;
attribute long startPageRange;
attribute long endPageRange;
/**
* The edge measurements define the positioning of the headers
@ -200,7 +199,7 @@ interface nsIPrintSettings : nsISupports
attribute boolean printBGColors; /* Print Background Colors */
attribute boolean printBGImages; /* Print Background Images */
attribute short printRange;
attribute short printRange;
attribute AString title;
attribute AString docURL;
@ -218,8 +217,8 @@ interface nsIPrintSettings : nsISupports
readonly attribute boolean saveOnCancel; /* indicates whether the print settings should be saved after a cancel */
attribute short printFrameTypeUsage; /* indicates whether to use the interal value or not */
attribute short printFrameType;
attribute boolean printSilent; /* print without putting up the dialog */
attribute boolean shrinkToFit; /* shrinks content to fit on page */
attribute boolean printSilent; /* print without putting up the dialog */
attribute boolean shrinkToFit; /* shrinks content to fit on page */
attribute boolean showPrintProgress; /* indicates whether the progress dialog should be shown */
/* Additional XP Related */
@ -248,17 +247,17 @@ interface nsIPrintSettings : nsISupports
/* initialize helpers */
/**
* This attribute tracks whether the PS has been initialized
* from a printer specified by the "printerName" attr.
* If a different name is set into the "printerName"
* This attribute tracks whether the PS has been initialized
* from a printer specified by the "printerName" attr.
* If a different name is set into the "printerName"
* attribute than the one it was initialized with the PS
* will then get intialized from that printer.
*/
attribute boolean isInitializedFromPrinter;
/**
* This attribute tracks whether the PS has been initialized
* from prefs. If a different name is set into the "printerName"
* This attribute tracks whether the PS has been initialized
* from prefs. If a different name is set into the "printerName"
* attribute than the one it was initialized with the PS
* will then get intialized from prefs again.
*/
@ -283,7 +282,7 @@ interface nsIPrintSettings : nsISupports
/**
* Sets/Gets the "unwriteable margin" for the page format. This defines
* the boundary from which we'll measure the EdgeInTwips and MarginInTwips
* the boundary from which we'll measure the EdgeInTwips and MarginInTwips
* attributes, to place the headers and content, respectively.
*
* Note: Implementations of SetUnwriteableMarginInTwips should handle
@ -292,12 +291,12 @@ interface nsIPrintSettings : nsISupports
*/
[noscript] void SetUnwriteableMarginInTwips(in nsNativeIntMarginRef aEdge);
[noscript] void GetUnwriteableMarginInTwips(in nsNativeIntMarginRef aEdge);
/**
* Get more accurate print ranges from the superior interval
* (startPageRange, endPageRange). The aPages array is populated with a
* list of pairs (start, end), where the endpoints are included. The print
* ranges (start, end), must not overlap and must be in the
* Get more accurate print ranges from the superior interval
* (startPageRange, endPageRange). The aPages array is populated with a
* list of pairs (start, end), where the endpoints are included. The print
* ranges (start, end), must not overlap and must be in the
* (startPageRange, endPageRange) scope.
*
* If there are no print ranges the aPages array is cleared.

View File

@ -16,21 +16,20 @@
native nsHdc(HDC);
/**
* Simplified PrintSettings for Windows interface
* Simplified PrintSettings for Windows interface
*/
[scriptable, uuid(c63eed41-6ac5-459e-8a64-033eb9ad770a)]
interface nsIPrintSettingsWin : nsISupports
{
/**
* Data Members
*
* Each of these data members make a copy
* of the contents. If you get the value,
* Each of these data members make a copy
* of the contents. If you get the value,
* you own the memory.
*
* The following three pieces of data are needed
* to create a DC for printing. These are typcially
* to create a DC for printing. These are typcially
* gotten via the PrintDLG call ro can be obtained
* via the "m_pd" data member of the CPrintDialog
* in MFC.

View File

@ -9,7 +9,6 @@
interface nsIStringEnumerator;
[scriptable, uuid(5e738fff-404c-4c94-9189-e8f2cce93e94)]
interface nsIPrinterEnumerator : nsISupports
{
/**
@ -35,4 +34,3 @@ interface nsIPrinterEnumerator : nsISupports
*/
readonly attribute nsIStringEnumerator printerNameList;
};