Skip to content

Commit

Permalink
Bug 1489047 - Change almost all DOMString occurrences in XPIDL files …
Browse files Browse the repository at this point in the history
…to AString. r=nika

Because they have almost identical semantics.
  • Loading branch information
nnethercote committed Sep 6, 2018
1 parent fdefb79 commit 4c418c3
Show file tree
Hide file tree
Showing 64 changed files with 239 additions and 239 deletions.
4 changes: 2 additions & 2 deletions accessible/interfaces/nsIAccessible.idl
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ interface nsIAccessible : nsISupports
/**
* For remote accessibles the id of the related DOM node.
*/
readonly attribute DOMString id;
readonly attribute AString id;

/**
* The document accessible that this access node resides in.
Expand All @@ -97,7 +97,7 @@ interface nsIAccessible : nsISupports
/**
* The language for the current DOM node, e.g. en, de, etc.
*/
readonly attribute DOMString language;
readonly attribute AString language;

/**
* Accessible name -- the main text equivalent for this node. The name is
Expand Down
8 changes: 4 additions & 4 deletions accessible/interfaces/nsIAccessibleApplication.idl
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@ interface nsIAccessibleApplication : nsISupports
/**
* Returns the application name.
*/
readonly attribute DOMString appName;
readonly attribute AString appName;

/**
* Returns the application version.
*/
readonly attribute DOMString appVersion;
readonly attribute AString appVersion;

/**
* Returns the platform name.
*/
readonly attribute DOMString platformName;
readonly attribute AString platformName;

/**
* Returns the platform version.
*/
readonly attribute DOMString platformVersion;
readonly attribute AString platformVersion;
};
2 changes: 1 addition & 1 deletion accessible/interfaces/nsIAccessibleTextChangeEvent.idl
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ interface nsIAccessibleTextChangeEvent : nsIAccessibleEvent
/**
* The inserted or removed text
*/
readonly attribute DOMString modifiedText;
readonly attribute AString modifiedText;
};
2 changes: 1 addition & 1 deletion accessible/interfaces/nsIXBLAccessible.idl
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ interface nsIXBLAccessible : nsISupports
/**
* Return accessible name.
*/
readonly attribute DOMString accessibleName;
readonly attribute AString accessibleName;
};
6 changes: 3 additions & 3 deletions docshell/base/nsIDocShell.idl
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ interface nsIDocShell : nsIDocShellTreeItem
* depending on the value of aReplace.
*/
[implicit_jscontext]
void addState(in jsval aData, in DOMString aTitle,
in DOMString aURL, in boolean aReplace);
void addState(in jsval aData, in AString aTitle,
in AString aURL, in boolean aReplace);

/**
* Reset state to a new content model within the current document and the document
Expand Down Expand Up @@ -274,7 +274,7 @@ interface nsIDocShell : nsIDocShellTreeItem
/**
* This allows chrome to set a custom User agent on a specific docshell
*/
attribute DOMString customUserAgent;
attribute AString customUserAgent;

/**
* Whether CSS error reporting is enabled.
Expand Down
4 changes: 2 additions & 2 deletions dom/base/nsIDOMRequestService.idl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface nsIDOMRequestService : nsISupports
DOMRequest createRequest(in mozIDOMWindow window);

void fireSuccess(in DOMRequest request, in jsval result);
void fireError(in DOMRequest request, in DOMString error);
void fireError(in DOMRequest request, in AString error);
void fireSuccessAsync(in DOMRequest request, in jsval result);
void fireErrorAsync(in DOMRequest request, in DOMString error);
void fireErrorAsync(in DOMRequest request, in AString error);
};
6 changes: 3 additions & 3 deletions dom/base/nsIDroppedLinkHandler.idl
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ interface nsIDroppedLinkItem : nsISupports
/**
* Returns the URL of the link.
*/
readonly attribute DOMString url;
readonly attribute AString url;

/**
* Returns the link name.
*/
readonly attribute DOMString name;
readonly attribute AString name;

/**
* Returns the MIME-Type.
*/
readonly attribute DOMString type;
readonly attribute AString type;
};

[scriptable, uuid(21B5C25A-28A9-47BD-8431-FA9116305DED)]
Expand Down
12 changes: 6 additions & 6 deletions dom/browser-element/nsIBrowserElementAPI.idl
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ interface nsIBrowserElementAPI : nsISupports

void setFrameLoader(in FrameLoader frameLoader);

void sendMouseEvent(in DOMString type,
void sendMouseEvent(in AString type,
in uint32_t x,
in uint32_t y,
in uint32_t button,
in uint32_t clickCount,
in uint32_t mifiers);
void sendTouchEvent(in DOMString aType,
void sendTouchEvent(in AString aType,
[const, array, size_is(count)] in uint32_t aIdentifiers,
[const, array, size_is(count)] in int32_t aXs,
[const, array, size_is(count)] in int32_t aYs,
Expand All @@ -56,25 +56,25 @@ interface nsIBrowserElementAPI : nsISupports
void goForward();
void reload(in boolean hardReload);
void stop();
DOMRequest download(in DOMString url,
DOMRequest download(in AString url,
[optional] in jsval options);
DOMRequest purgeHistory();
DOMRequest getScreenshot(in uint32_t width,
in uint32_t height,
[optional] in DOMString mimeType);
[optional] in AString mimeType);
void zoom(in float zoom);
DOMRequest getCanGoBack();
DOMRequest getCanGoForward();
DOMRequest getContentDimensions();

void findAll(in DOMString searchString, in long caseSensitivity);
void findAll(in AString searchString, in long caseSensitivity);
void findNext(in long direction);
void clearMatch();

void addNextPaintListener(in jsval listener); // BrowserElementNextPaintEventCallback
void removeNextPaintListener(in jsval listener); // BrowserElementNextPaintEventCallback

DOMRequest executeScript(in DOMString script, in jsval options);
DOMRequest executeScript(in AString script, in jsval options);

/**
* Returns an object that represents a Web Manifest:
Expand Down
6 changes: 3 additions & 3 deletions dom/console/nsIConsoleAPIStorage.idl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ interface nsIConsoleAPIStorage : nsISupports
* given this function returns all of the cached events, from any
* window.
*/
jsval getEvents([optional] in DOMString aId);
jsval getEvents([optional] in AString aId);

/**
* Record an event associated with the given window ID.
Expand All @@ -33,7 +33,7 @@ interface nsIConsoleAPIStorage : nsISupports
* @param object aEvent
* A JavaScript object you want to store.
*/
void recordEvent(in DOMString aId, in DOMString aOuterId, in jsval aEvent);
void recordEvent(in AString aId, in AString aOuterId, in jsval aEvent);

/**
* Clear storage data for the given window.
Expand All @@ -43,5 +43,5 @@ interface nsIConsoleAPIStorage : nsISupports
* messages. If this is not specified all of the cached messages are
* cleared, from all window objects.
*/
void clearEvents([optional] in DOMString aId);
void clearEvents([optional] in AString aId);
};
6 changes: 3 additions & 3 deletions dom/events/nsIEventListenerService.idl
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,14 @@ interface nsIEventListenerService : nsISupports
* Returns true if a event target has any listener for the given type.
*/
boolean hasListenersFor(in EventTarget aEventTarget,
in DOMString aType);
in AString aType);

/**
* Add a system-group eventlistener to a event target.
*/
[implicit_jscontext]
void addSystemEventListener(in EventTarget target,
in DOMString type,
in AString type,
in jsval listener,
in boolean useCapture);

Expand All @@ -105,7 +105,7 @@ interface nsIEventListenerService : nsISupports
*/
[implicit_jscontext]
void removeSystemEventListener(in EventTarget target,
in DOMString type,
in AString type,
in jsval listener,
in boolean useCapture);

Expand Down
4 changes: 2 additions & 2 deletions dom/html/nsIDateTimeInputArea.idl
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ interface nsIDateTimeInputArea : nsISupports
* Set the attribute of the inner text boxes. Only "tabindex", "readonly",
* and "disabled" are allowed.
*/
void setEditAttribute(in DOMString name, in DOMString value);
void setEditAttribute(in AString name, in AString value);

/**
* Remove the attribute of the inner text boxes. Only "tabindex", "readonly",
* and "disabled" are allowed.
*/
void removeEditAttribute(in DOMString name);
void removeEditAttribute(in AString name);
};
4 changes: 2 additions & 2 deletions dom/html/nsIMenuBuilder.idl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ interface nsIMenuBuilder : nsISupports
* a new context for this menu, so all subsequent methods will add new items
* to this newly created menu.
*/
void openContainer(in DOMString aLabel);
void openContainer(in AString aLabel);

/**
* Add a new menu item. All menu item details can be obtained from
Expand Down Expand Up @@ -72,5 +72,5 @@ interface nsIMenuBuilder : nsISupports
*
* @param aGeneratedItemId the menuitem id
*/
void click(in DOMString aGeneratedItemId);
void click(in AString aGeneratedItemId);
};
2 changes: 1 addition & 1 deletion dom/interfaces/base/nsIBrowserDOMWindow.idl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface nsIPrincipal;
[scriptable, uuid(e774db14-79ac-4156-a7a3-aa3fd0a22c10)]
interface nsIOpenURIInFrameParams : nsISupports
{
attribute DOMString referrer;
attribute AString referrer;
attribute unsigned long referrerPolicy;
readonly attribute boolean isPrivate;
attribute nsIPrincipal triggeringPrincipal;
Expand Down
18 changes: 9 additions & 9 deletions dom/interfaces/base/nsIServiceWorkerManager.idl
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ interface nsIServiceWorkerInfo : nsISupports
const unsigned short STATE_REDUNDANT = 5;
const unsigned short STATE_UNKNOWN = 6;

readonly attribute DOMString scriptSpec;
readonly attribute DOMString cacheName;
readonly attribute AString scriptSpec;
readonly attribute AString cacheName;

readonly attribute unsigned short state;

Expand Down Expand Up @@ -84,8 +84,8 @@ interface nsIServiceWorkerRegistrationInfo : nsISupports

readonly attribute nsIPrincipal principal;

readonly attribute DOMString scope;
readonly attribute DOMString scriptSpec;
readonly attribute AString scope;
readonly attribute AString scriptSpec;
readonly attribute unsigned short updateViaCache;

readonly attribute PRTime lastUpdateTime;
Expand Down Expand Up @@ -123,29 +123,29 @@ interface nsIServiceWorkerManager : nsISupports
*/
void unregister(in nsIPrincipal aPrincipal,
in nsIServiceWorkerUnregisterCallback aCallback,
in DOMString aScope);
in AString aScope);

nsIServiceWorkerRegistrationInfo getRegistrationByPrincipal(in nsIPrincipal aPrincipal,
in DOMString aScope);
in AString aScope);

[notxpcom, nostdcall] bool StartControlling(in const_ClientInfoRef aClientInfo,
in const_ServiceWorkerDescriptorRef aServiceWorker);

// Testing
DOMString getScopeForUrl(in nsIPrincipal aPrincipal, in DOMString aPath);
AString getScopeForUrl(in nsIPrincipal aPrincipal, in AString aPath);

// It returns an array of nsIServiceWorkerRegistrationInfos.
nsIArray getAllRegistrations();

// It calls softUpdate() for each child process.
[implicit_jscontext] void propagateSoftUpdate(in jsval aOriginAttributes,
in DOMString aScope);
in AString aScope);

// It calls unregister() in each child process. The callback is used to
// inform when unregister() is completed on the current process.
void propagateUnregister(in nsIPrincipal aPrincipal,
in nsIServiceWorkerUnregisterCallback aCallback,
in DOMString aScope);
in AString aScope);

void sendNotificationClickEvent(in ACString aOriginSuffix,
in ACString scope,
Expand Down
6 changes: 3 additions & 3 deletions dom/interfaces/base/nsITextInputProcessor.idl
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ interface nsITextInputProcessor : nsISupports
* Note that if you need to commit or cancel composition, use
* commitComposition(), commitCompositionWith() or cancelComposition().
*/
void setPendingCompositionString(in DOMString aString);
void setPendingCompositionString(in AString aString);

// ATTR_RAW_CLAUSE means that the clause hasn't been selected nor converted
// yet.
Expand Down Expand Up @@ -454,7 +454,7 @@ interface nsITextInputProcessor : nsISupports
* false.
*/
[optional_argc]
boolean commitCompositionWith(in DOMString aCommitString,
boolean commitCompositionWith(in AString aCommitString,
[optional] in Event aKeyboardEvent,
[optional] in unsigned long aKeyFlags);

Expand Down Expand Up @@ -592,7 +592,7 @@ interface nsITextInputProcessor : nsISupports
* @return true if the modifier key is active. Otherwise,
* false.
*/
boolean getModifierState(in DOMString aModifierKey);
boolean getModifierState(in AString aModifierKey);

/**
* shareModifierStateOf() makes the instance shares modifier state of
Expand Down
Loading

0 comments on commit 4c418c3

Please sign in to comment.