Skip to content

Commit

Permalink
Bug 1552795 - Remove all trailing whitespaces in idl files r=Ehsan
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvestre committed May 22, 2019
1 parent 7b7a47b commit ecb913c
Show file tree
Hide file tree
Showing 208 changed files with 829 additions and 829 deletions.
26 changes: 13 additions & 13 deletions accessible/interfaces/msaa/ISimpleDOMNode.idl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ cpp_quote("// get_nodeInfo(")
cpp_quote("// /* [out] */ BSTR *nodeName, // For elements, this is the tag name")
cpp_quote("// /* [out] */ short *nameSpaceID,")
cpp_quote("// /* [out] */ BSTR *nodeValue, ")
cpp_quote("// /* [out] */ unsigned int *numChildren); ")
cpp_quote("// /* [out] */ unsigned int *numChildren); ")
cpp_quote("// /* [out] */ unsigned int *uniqueID; // In Win32 accessible events we generate, the target's childID matches to this")
cpp_quote("// /* [out] */ unsigned short *nodeType,")
cpp_quote("// ---------------------------------------------------------------------------------------------------=")
Expand Down Expand Up @@ -124,33 +124,33 @@ interface ISimpleDOMNode : IUnknown
[out, retval] unsigned short *nodeType
);

[propget] HRESULT attributes(
[propget] HRESULT attributes(
[in] unsigned short maxAttribs,
[out, size_is(maxAttribs), length_is(*numAttribs)] BSTR *attribNames,
[out, size_is(maxAttribs), length_is(*numAttribs)] short *nameSpaceID,
[out, size_is(maxAttribs), length_is(*numAttribs)] BSTR *attribNames,
[out, size_is(maxAttribs), length_is(*numAttribs)] short *nameSpaceID,
[out, size_is(maxAttribs), length_is(*numAttribs)] BSTR *attribValues,
[out, retval] unsigned short *numAttribs
);

[propget] HRESULT attributesForNames(
[propget] HRESULT attributesForNames(
[in] unsigned short numAttribs,
[in, size_is(numAttribs), length_is(numAttribs)] BSTR *attribNames,
[in, size_is(numAttribs), length_is(numAttribs)] short *nameSpaceID,
[in, size_is(numAttribs), length_is(numAttribs)] BSTR *attribNames,
[in, size_is(numAttribs), length_is(numAttribs)] short *nameSpaceID,
[out, retval, size_is(numAttribs), length_is(numAttribs)] BSTR *attribValues
);

[propget] HRESULT computedStyle(
[propget] HRESULT computedStyle(
[in] unsigned short maxStyleProperties,
[in] boolean useAlternateView, // If TRUE, returns properites for media as set in Document's set_alternateViewMediaTypes
[out, size_is(maxStyleProperties), length_is(*numStyleProperties)] BSTR *styleProperties,
[out, size_is(maxStyleProperties), length_is(*numStyleProperties)] BSTR *styleProperties,
[out, size_is(maxStyleProperties), length_is(*numStyleProperties)] BSTR *styleValues,
[out, retval] unsigned short *numStyleProperties
);

[propget] HRESULT computedStyleForProperties(
[in] unsigned short numStyleProperties,
[propget] HRESULT computedStyleForProperties(
[in] unsigned short numStyleProperties,
[in] boolean useAlternateView, // If TRUE, returns properites for media as set in Document's set_alternateViewMediaTypes
[in, size_is(numStyleProperties), length_is(numStyleProperties)] BSTR *styleProperties,
[in, size_is(numStyleProperties), length_is(numStyleProperties)] BSTR *styleProperties,
[out, retval, size_is(numStyleProperties), length_is(numStyleProperties)] BSTR *styleValues
);

Expand All @@ -161,7 +161,7 @@ interface ISimpleDOMNode : IUnknown
[propget] HRESULT lastChild([out, retval] ISimpleDOMNode **node);
[propget] HRESULT previousSibling([out, retval] ISimpleDOMNode **node);
[propget] HRESULT nextSibling([out, retval] ISimpleDOMNode **node);
[propget] HRESULT childAt([in] unsigned childIndex,
[propget] HRESULT childAt([in] unsigned childIndex,
[out, retval] ISimpleDOMNode **node);

[propget] HRESULT innerHTML([out, retval] BSTR *innerHTML);
Expand Down
12 changes: 6 additions & 6 deletions accessible/interfaces/msaa/ISimpleDOMText.idl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import "objidl.idl";
import "oaidl.idl";

cpp_quote("///////////////////////////////////////////////////////////////////////////////////////////////////////")
cpp_quote("//")
cpp_quote("// ISimpleDOMText")
Expand Down Expand Up @@ -57,21 +57,21 @@ interface ISimpleDOMText: IUnknown
// Includes whitespace in DOM
[propget] HRESULT domText([out, retval] BSTR *domText);

HRESULT get_clippedSubstringBounds([in] unsigned int startIndex,
[in] unsigned int endIndex,
HRESULT get_clippedSubstringBounds([in] unsigned int startIndex,
[in] unsigned int endIndex,
[out] int *x,
[out] int *y,
[out] int *width,
[out] int *height);

HRESULT get_unclippedSubstringBounds([in] unsigned int startIndex,
[in] unsigned int endIndex,
HRESULT get_unclippedSubstringBounds([in] unsigned int startIndex,
[in] unsigned int endIndex,
[out] int *x,
[out] int *y,
[out] int *width,
[out] int *height);

HRESULT scrollToSubstring([in] unsigned int startIndex,
HRESULT scrollToSubstring([in] unsigned int startIndex,
[in] unsigned int endIndex);

[propget] HRESULT fontFamily([out, retval] BSTR *fontFamily);
Expand Down
12 changes: 6 additions & 6 deletions accessible/interfaces/nsIAccessibleEvent.idl
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ webidl Node;
* by in-process accessibility clients, which can be used
* to find out how to get accessibility and DOM interfaces for
* the event and its target. To listen to in-process accessibility invents,
* make your object an nsIObserver, and listen for accessible-event by
* make your object an nsIObserver, and listen for accessible-event by
* using code something like this:
* nsCOMPtr<nsIObserverService> observerService =
* nsCOMPtr<nsIObserverService> observerService =
* do_GetService("@mozilla.org/observer-service;1", &rv);
* if (NS_SUCCEEDED(rv))
* if (NS_SUCCEEDED(rv))
* rv = observerService->AddObserver(this, "accessible-event", PR_TRUE);
*/
[scriptable, builtinclass, uuid(20c69a40-6c2c-42a3-a578-6f4473aab9dd)]
Expand Down Expand Up @@ -190,7 +190,7 @@ interface nsIAccessibleEvent : nsISupports
* An application is about to exit drag-and-drop mode
*/
const unsigned long EVENT_DRAGDROP_END = 0x0020;

/**
* A dialog box has been displayed
*/
Expand Down Expand Up @@ -438,13 +438,13 @@ interface nsIAccessibleEvent : nsISupports
* defined in this interface.
*/
readonly attribute unsigned long eventType;

/**
* The nsIAccessible associated with the event.
* May return null if no accessible is available
*/
readonly attribute nsIAccessible accessible;

/**
* The nsIAccessibleDocument that the event target nsIAccessible
* resides in. This can be used to get the DOM window,
Expand Down
10 changes: 5 additions & 5 deletions accessible/interfaces/nsIAccessibleRole.idl
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ interface nsIAccessibleRole : nsISupports
const unsigned long ROLE_CHART = 17;

/**
* Represents a dialog box or message box. It is used for xul:dialog,
* Represents a dialog box or message box. It is used for xul:dialog,
* role="dialog".
*/
const unsigned long ROLE_DIALOG = 18;
Expand Down Expand Up @@ -709,17 +709,17 @@ interface nsIAccessibleRole : nsISupports
* An image map -- has child links representing the areas
*/
const unsigned long ROLE_IMAGE_MAP = 116;

/**
* An option in a listbox
*/
const unsigned long ROLE_OPTION = 117;

/**
* A rich option in a listbox, it can have other widgets as children
*/
const unsigned long ROLE_RICH_OPTION = 118;

/**
* A list of options
*/
Expand All @@ -729,7 +729,7 @@ interface nsIAccessibleRole : nsISupports
* Represents a mathematical equation in the accessible name
*/
const unsigned long ROLE_FLAT_EQUATION = 120;

/**
* Represents a cell within a grid. It is used for role="gridcell". Unlike
* ROLE_CELL, it allows the calculation of the accessible name from subtree.
Expand Down
12 changes: 6 additions & 6 deletions accessible/interfaces/nsIAccessibleStates.idl
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ interface nsIAccessibleStates : nsISupports
const unsigned long EXT_STATE_DEFUNCT = 0x00000002; // Object no longer exists
const unsigned long EXT_STATE_SELECTABLE_TEXT = 0x00000004; // For text which is selectable, object must implement nsIAccessibleText
const unsigned long EXT_STATE_EDITABLE = 0x00000008; // Implements nsIAccessibleEditableText
const unsigned long EXT_STATE_ACTIVE = 0x00000010; // This window is currently the active window
const unsigned long EXT_STATE_MODAL = 0x00000020; // Must do something with control before leaving it
const unsigned long EXT_STATE_MULTI_LINE = 0x00000040; // Edit control that can take multiple lines
const unsigned long EXT_STATE_ACTIVE = 0x00000010; // This window is currently the active window
const unsigned long EXT_STATE_MODAL = 0x00000020; // Must do something with control before leaving it
const unsigned long EXT_STATE_MULTI_LINE = 0x00000040; // Edit control that can take multiple lines
const unsigned long EXT_STATE_HORIZONTAL = 0x00000080; // Uses horizontal layout
const unsigned long EXT_STATE_OPAQUE = 0x00000100; // Indicates this object paints every pixel within its rectangular region.
const unsigned long EXT_STATE_SINGLE_LINE = 0x00000200; // This text object can only contain 1 line of text
const unsigned long EXT_STATE_TRANSIENT = 0x00000400; //
const unsigned long EXT_STATE_VERTICAL = 0x00000800; // Especially used for sliders and scrollbars
const unsigned long EXT_STATE_SINGLE_LINE = 0x00000200; // This text object can only contain 1 line of text
const unsigned long EXT_STATE_TRANSIENT = 0x00000400; //
const unsigned long EXT_STATE_VERTICAL = 0x00000800; // Especially used for sliders and scrollbars
const unsigned long EXT_STATE_STALE = 0x00001000; // Object not dead, but not up-to-date either
const unsigned long EXT_STATE_ENABLED = 0x00002000; // A widget that is not unavailable
const unsigned long EXT_STATE_SENSITIVE = 0x00004000; // Same as ENABLED for now
Expand Down
2 changes: 1 addition & 1 deletion accessible/ipc/win/handler/HandlerData.idl
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ interface IHandlerControl : IUnknown
[in] IA2TextSegment* aText);
}

typedef struct _IARelationData
typedef struct _IARelationData
{
BSTR mType;
long mNTargets;
Expand Down
4 changes: 2 additions & 2 deletions browser/components/migration/nsIBrowserProfileMigrator.idl
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ interface nsIBrowserProfileMigrator : nsISupports
/**
* Copy user profile information to the current active profile.
* @param aItems list of data items to migrate. see above for values.
* @param aStartup helper interface which is non-null if called during startup.
* @param aStartup helper interface which is non-null if called during startup.
* @param aProfile profile to migrate from, if there is more than one.
*/
void migrate(in unsigned short aItems, in nsIProfileStartup aStartup, in jsval aProfile);

/**
* A bit field containing profile items that this migrator
* offers for import.
* offers for import.
* @param aProfile the profile that we are looking for available data
* to import
* @param aDoingStartup "true" if the profile is not currently being used.
Expand Down
18 changes: 9 additions & 9 deletions browser/components/shell/nsIShellService.idl
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ interface nsIShellService : nsISupports
/**
* Registers Firefox as the "Default Browser."
*
* @param aClaimAllTypes Register Firefox as the handler for
* @param aClaimAllTypes Register Firefox as the handler for
* additional protocols (ftp, chrome etc)
* and web documents (.html, .xhtml etc).
* @param aForAllUsers Whether or not Firefox should attempt
* to become the default browser for all
* users on a multi-user system.
* users on a multi-user system.
*/
void setDefaultBrowser(in boolean aClaimAllTypes, in boolean aForAllUsers);

/**
/**
* Flags for positioning/sizing of the Desktop Background image.
*/
const long BACKGROUND_TILE = 1;
Expand All @@ -46,12 +46,12 @@ interface nsIShellService : nsISupports
const long BACKGROUND_SPAN = 6;

/**
* Sets the desktop background image using either the HTML <IMG>
* Sets the desktop background image using either the HTML <IMG>
* element supplied or the background image of the element supplied.
*
* @param aImageElement Either a HTML <IMG> element or an element with
* a background image from which to source the
* background image.
* background image.
* @param aPosition How to place the image on the desktop
* @param aImageName The image name. Equivalent to the leaf name of the
* location.href.
Expand All @@ -70,13 +70,13 @@ interface nsIShellService : nsISupports
/**
* Opens the application specified. If more than one application of the
* given type is available on the system, the default or "preferred"
* application is used.
* application is used.
*/
void openApplication(in long aApplication);

/**
* The desktop background color, visible when no background image is
* used, or if the background image is centered and does not fill the
/**
* The desktop background color, visible when no background image is
* used, or if the background image is centered and does not fill the
* entire screen. A rgb value, where (r << 16 | g << 8 | b)
*/
attribute unsigned long desktopBackgroundColor;
Expand Down
2 changes: 1 addition & 1 deletion chrome/nsIChromeRegistry.idl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ interface nsIXULChromeRegistry : nsIChromeRegistry
// passed to ECMA402 Intl API methods without throwing a RangeError.
ACString getSelectedLocale(in ACString packageName,
[optional] in boolean asBCP47);

// Get whether the default writing direction of the locale is RTL
// (or may be overridden by intl.uidirection pref)
boolean isLocaleRTL(in ACString package);
Expand Down
2 changes: 1 addition & 1 deletion docshell/base/nsIContentViewer.idl
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ interface nsIContentViewer : nsISupports

/**
* All users of a content viewer are responsible for calling both
* close() and destroy(), in that order.
* close() and destroy(), in that order.
*
* close() should be called when the load of a new page for the next
* content viewer begins, and destroy() should be called when the next
Expand Down
26 changes: 13 additions & 13 deletions docshell/base/nsIDocShellTreeItem.idl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ webidl Document;
/**
* The nsIDocShellTreeItem supplies the methods that are required of any item
* that wishes to be able to live within the docshell tree either as a middle
* node or a leaf.
* node or a leaf.
*/

[scriptable, builtinclass, uuid(9b7c586f-9214-480c-a2c4-49b526fff1a6)]
Expand Down Expand Up @@ -46,7 +46,7 @@ interface nsIDocShellTreeItem : nsISupports
const long typeAll=0x7FFFFFFF;

/*
The type this item is.
The type this item is.
*/
readonly attribute long itemType;
[noscript,notxpcom,nostdcall] long ItemType();
Expand All @@ -65,20 +65,20 @@ interface nsIDocShellTreeItem : nsISupports
readonly attribute nsIDocShellTreeItem sameTypeParent;

/*
Returns the root DocShellTreeItem. This is a convience equivalent to
Returns the root DocShellTreeItem. This is a convience equivalent to
getting the parent and its parent until there isn't a parent.
*/
readonly attribute nsIDocShellTreeItem rootTreeItem;

/*
Returns the root DocShellTreeItem of the same type. This is a convience
equivalent to getting the parent of the same type and its parent until
Returns the root DocShellTreeItem of the same type. This is a convience
equivalent to getting the parent of the same type and its parent until
there isn't a parent.
*/
readonly attribute nsIDocShellTreeItem sameTypeRootTreeItem;

/*
Returns the docShellTreeItem with the specified name. Search order is as
Returns the docShellTreeItem with the specified name. Search order is as
follows...
1.) Check name of self, if it matches return it.
2.) For each immediate child.
Expand Down Expand Up @@ -114,25 +114,25 @@ interface nsIDocShellTreeItem : nsISupports
The owner of the DocShell Tree. This interface will be called upon when
the docshell has things it needs to tell to the owner of the docshell.
Note that docShell tree ownership does not cross tree types. Meaning
setting ownership on a chrome tree does not set ownership on the content
setting ownership on a chrome tree does not set ownership on the content
sub-trees. A given tree's boundaries are identified by the type changes.
Trees of different types may be connected, but should not be traversed
for things such as ownership.
Note implementers of this interface should NOT effect the lifetime of the

Note implementers of this interface should NOT effect the lifetime of the
parent DocShell by holding this reference as it creates a cycle. Owners
when releasing this interface should set the treeOwner to nullptr.
Implementers of this interface are guaranteed that when treeOwner is
set that the poitner is valid without having to addref.
Further note however when others try to get the interface it should be
addref'd before handing it to them.

Further note however when others try to get the interface it should be
addref'd before handing it to them.
*/
readonly attribute nsIDocShellTreeOwner treeOwner;
[noscript] void setTreeOwner(in nsIDocShellTreeOwner treeOwner);

/*
The current number of DocShells which are immediate children of the
The current number of DocShells which are immediate children of the
this object.
*/
readonly attribute long childCount;
Expand Down
2 changes: 1 addition & 1 deletion docshell/base/nsIDocumentLoaderFactory.idl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ interface nsIDocumentLoaderFactory : nsISupports {
nsIContentViewer createInstance(in string aCommand,
in nsIChannel aChannel,
in nsILoadGroup aLoadGroup,
in ACString aContentType,
in ACString aContentType,
in nsIDocShell aContainer,
in nsISupports aExtraInfo,
out nsIStreamListener aDocListenerResult);
Expand Down
Loading

0 comments on commit ecb913c

Please sign in to comment.