Bug 676465 - Replace PRBool with boolean in IDL files, r=bsmedberg

This commit is contained in:
Michael Wu 2011-08-06 22:03:32 -07:00
parent 2fa58bdab1
commit ccaba60ed1
40 changed files with 78 additions and 78 deletions

View File

@ -51,7 +51,7 @@ interface nsIDroppedLinkHandler : nsISupports
* includes any parent, sibling and child frames in the same content tree.
* If true, the source is not checked.
*/
boolean canDropLink(in nsIDOMDragEvent aEvent, in PRBool aAllowSameDocument);
boolean canDropLink(in nsIDOMDragEvent aEvent, in boolean aAllowSameDocument);
/**
* Given a drop event aEvent, determines the link being dragged and returns

View File

@ -63,14 +63,14 @@ interface nsISelection2 : nsISelection
void GetRangesForInterval(
in nsIDOMNode beginNode, in PRInt32 beginOffset,
in nsIDOMNode endNode, in PRInt32 endOffset,
in PRBool allowAdjacent,
in boolean allowAdjacent,
out PRUint32 resultCount,
[retval, array, size_is(resultCount)] out nsIDOMRange results);
[noscript] void GetRangesForIntervalCOMArray(
in nsIDOMNode beginNode, in PRInt32 beginOffset,
in nsIDOMNode endNode, in PRInt32 endOffset,
in PRBool allowAdjacent,
in boolean allowAdjacent,
in RangeArray results);
/**

View File

@ -126,7 +126,7 @@ interface nsIContentViewer : nsISupports
* Change the layout to view the document with page layout (like print preview), but
* dynamic and editable (like Galley layout).
*/
void setPageMode(in PRBool aPageMode, in nsIPrintSettings aPrintSettings);
void setPageMode(in boolean aPageMode, in nsIPrintSettings aPrintSettings);
/**
* Get the history entry that this viewer will save itself into when

View File

@ -158,7 +158,7 @@ interface nsIFocusManager : nsISupports
*
* @throws NS_ERROR_INVALID_ARG if aWindow is null
*/
nsIDOMElement getFocusedElementForWindow(in nsIDOMWindow aWindow, in PRBool aDeep,
nsIDOMElement getFocusedElementForWindow(in nsIDOMWindow aWindow, in boolean aDeep,
out nsIDOMWindow aFocusedWindow);
/**
@ -249,7 +249,7 @@ interface nsIFocusManager : nsISupports
* If aNeedsFocus is true, then focus events are expected to be fired on the
* window if this window is in the focused window chain.
*/
[noscript] void windowShown(in nsIDOMWindow aWindow, in PRBool aNeedsFocus);
[noscript] void windowShown(in nsIDOMWindow aWindow, in boolean aNeedsFocus);
/**
* Called when a document in a window has been hidden or otherwise can no

View File

@ -181,7 +181,7 @@ interface nsIDOMNSDataTransfer : nsISupports
* user cancelled flag.
*/
[noscript] nsIDOMDataTransfer clone(in PRUint32 aEventType,
in PRBool aUserCancelled);
in boolean aUserCancelled);
/**
* The number of items being dragged.

View File

@ -105,7 +105,7 @@ interface nsIContentFilter : nsISupports
void notifyOfInsertion(in AString mimeType,
in nsIURL contentSourceURL,
in nsIDOMDocument sourceDocument,
in PRBool willDeleteSelection,
in boolean willDeleteSelection,
inout nsIDOMNode docFragment,
inout nsIDOMNode contentStartNode,
inout long contentStartOffset,

View File

@ -106,7 +106,7 @@ interface nsIEditorStyleSheets : nsISupports
* @param aURL The style sheet to be enabled or disabled
* @param aEnable true to enable, or false to disable the style sheet
*/
void enableStyleSheet(in AString aURL, in PRBool aEnable);
void enableStyleSheet(in AString aURL, in boolean aEnable);
/** Get the nsCSSStyleSheet associated with the given URL.
*

View File

@ -62,5 +62,5 @@ interface nsIWebBrowserChrome3 : nsIWebBrowserChrome2
AString onBeforeLinkTraversal(in AString originalTarget,
in nsIURI linkURI,
in nsIDOMNode linkNode,
in PRBool isAppTab);
in boolean isAppTab);
};

View File

@ -249,7 +249,7 @@ interface jsdIDebuggerService : nsISupports
/**
* Recompile all active scripts in the runtime for debugMode.
*/
[noscript] void recompileForDebugMode(in JSContext cx, in JSCompartment comp, in PRBool mode);
[noscript] void recompileForDebugMode(in JSContext cx, in JSCompartment comp, in boolean mode);
/**
* Turn the debugger off. This will invalidate all of your jsdIEphemeral
@ -1056,7 +1056,7 @@ interface jsdIScript : jsdIEphemeral
/**
* Call interrupt hook at least once per source line
*/
void enableSingleStepInterrupts(in PRBool mode);
void enableSingleStepInterrupts(in boolean mode);
};
/**

View File

@ -126,64 +126,64 @@ interface nsIXPCScriptable : nsISupports
void postCreate(in nsIXPConnectWrappedNative wrapper,
in JSContextPtr cx, in JSObjectPtr obj);
PRBool addProperty(in nsIXPConnectWrappedNative wrapper,
boolean addProperty(in nsIXPConnectWrappedNative wrapper,
in JSContextPtr cx, in JSObjectPtr obj, in jsid id,
in JSValPtr vp);
PRBool delProperty(in nsIXPConnectWrappedNative wrapper,
boolean delProperty(in nsIXPConnectWrappedNative wrapper,
in JSContextPtr cx, in JSObjectPtr obj, in jsid id,
in JSValPtr vp);
// The returnCode should be set to NS_SUCCESS_I_DID_SOMETHING if
// this method does something.
PRBool getProperty(in nsIXPConnectWrappedNative wrapper,
boolean getProperty(in nsIXPConnectWrappedNative wrapper,
in JSContextPtr cx, in JSObjectPtr obj, in jsid id,
in JSValPtr vp);
// The returnCode should be set to NS_SUCCESS_I_DID_SOMETHING if
// this method does something.
PRBool setProperty(in nsIXPConnectWrappedNative wrapper,
boolean setProperty(in nsIXPConnectWrappedNative wrapper,
in JSContextPtr cx, in JSObjectPtr obj, in jsid id,
in JSValPtr vp);
PRBool enumerate(in nsIXPConnectWrappedNative wrapper,
boolean enumerate(in nsIXPConnectWrappedNative wrapper,
in JSContextPtr cx, in JSObjectPtr obj);
PRBool newEnumerate(in nsIXPConnectWrappedNative wrapper,
boolean newEnumerate(in nsIXPConnectWrappedNative wrapper,
in JSContextPtr cx, in JSObjectPtr obj,
in PRUint32 enum_op, in JSValPtr statep, out jsid idp);
PRBool newResolve(in nsIXPConnectWrappedNative wrapper,
boolean newResolve(in nsIXPConnectWrappedNative wrapper,
in JSContextPtr cx, in JSObjectPtr obj, in jsid id,
in PRUint32 flags, out JSObjectPtr objp);
PRBool convert(in nsIXPConnectWrappedNative wrapper,
boolean convert(in nsIXPConnectWrappedNative wrapper,
in JSContextPtr cx, in JSObjectPtr obj,
in PRUint32 type, in JSValPtr vp);
void finalize(in nsIXPConnectWrappedNative wrapper,
in JSContextPtr cx, in JSObjectPtr obj);
PRBool checkAccess(in nsIXPConnectWrappedNative wrapper,
boolean checkAccess(in nsIXPConnectWrappedNative wrapper,
in JSContextPtr cx, in JSObjectPtr obj, in jsid id,
in PRUint32 mode, in JSValPtr vp);
PRBool call(in nsIXPConnectWrappedNative wrapper,
boolean call(in nsIXPConnectWrappedNative wrapper,
in JSContextPtr cx, in JSObjectPtr obj,
in PRUint32 argc, in JSValPtr argv, in JSValPtr vp);
PRBool construct(in nsIXPConnectWrappedNative wrapper,
boolean construct(in nsIXPConnectWrappedNative wrapper,
in JSContextPtr cx, in JSObjectPtr obj,
in PRUint32 argc, in JSValPtr argv, in JSValPtr vp);
PRBool hasInstance(in nsIXPConnectWrappedNative wrapper,
boolean hasInstance(in nsIXPConnectWrappedNative wrapper,
in JSContextPtr cx, in JSObjectPtr obj,
in jsval val, out PRBool bp);
in jsval val, out boolean bp);
void trace(in nsIXPConnectWrappedNative wrapper,
in JSTracerPtr trc, in JSObjectPtr obj);
PRBool equality(in nsIXPConnectWrappedNative wrapper,
boolean equality(in nsIXPConnectWrappedNative wrapper,
in JSContextPtr cx, in JSObjectPtr obj, in jsval val);
JSObjectPtr outerObject(in nsIXPConnectWrappedNative wrapper,

View File

@ -378,7 +378,7 @@ interface nsIXPCFunctionThisTranslator : nsISupports
nsISupports TranslateThis(in nsISupports aInitialThis,
in nsIInterfaceInfo aInterfaceInfo,
in PRUint16 aMethodIndex,
out PRBool aHideFirstParamFromJS,
out boolean aHideFirstParamFromJS,
out nsIIDPtr aIIDOfResult);
};
@ -590,9 +590,9 @@ interface nsIXPConnect : nsISupports
void debugDump(in short depth);
void debugDumpObject(in nsISupports aCOMObj, in short depth);
void debugDumpJSStack(in PRBool showArgs,
in PRBool showLocals,
in PRBool showThisProps);
void debugDumpJSStack(in boolean showArgs,
in boolean showLocals,
in boolean showThisProps);
void debugDumpEvalInJSStackFrame(in PRUint32 aFrameNumber,
in string aSourceText);
@ -653,7 +653,7 @@ interface nsIXPConnect : nsISupports
in JSObjectPtr aScope,
in nsIClassInfo aClassInfo);
void releaseJSContext(in JSContextPtr aJSContext, in PRBool noGC);
void releaseJSContext(in JSContextPtr aJSContext, in boolean noGC);
jsval variantToJS(in JSContextPtr ctx, in JSObjectPtr scope, in nsIVariant value);
nsIVariant JSToVariant(in JSContextPtr ctx, in jsval value);
@ -700,7 +700,7 @@ interface nsIXPConnect : nsISupports
*/
[noscript] jsval evalInSandboxObject(in AString source, in JSContextPtr cx,
in nsIXPConnectJSObjectHolder sandbox,
in PRBool returnStringOnly);
in boolean returnStringOnly);
/**
* Root JS objects held by aHolder.
@ -761,7 +761,7 @@ interface nsIXPConnect : nsISupports
* The interfaces the class implements; interfaceArray and
* interfaceCount are like what nsIClassInfo.getInterfaces returns.
*/
[noscript,notxpcom] PRBool defineDOMQuickStubs(
[noscript,notxpcom] boolean defineDOMQuickStubs(
in JSContextPtr cx,
in JSObjectPtr proto,
in PRUint32 flags,
@ -802,5 +802,5 @@ interface nsIXPConnect : nsISupports
* This method will turn debug mode on or off when the context
* stack reaches zero length.
*/
[noscript] void setDebugModeWhenPossible(in PRBool mode);
[noscript] void setDebugModeWhenPossible(in boolean mode);
};

View File

@ -52,7 +52,7 @@ interface nsIApplicationCacheChannel : nsIApplicationCacheContainer
* e.g. in case of fallback of load of an entry matching bypass
* namespace.
*/
readonly attribute PRBool loadedFromApplicationCache;
readonly attribute boolean loadedFromApplicationCache;
/**
* When true, the channel will ask its notification callbacks for

View File

@ -131,7 +131,7 @@ interface nsICryptoHMAC : nsISupports
* is called. This call resets the object to its
* pre-init state.
*/
ACString finish(in PRBool aASCII);
ACString finish(in boolean aASCII);
/**
* Reinitialize HMAC context to be reused with the same

View File

@ -133,5 +133,5 @@ interface nsICryptoHash : nsISupports
* is called. This call resets the object to its
* pre-init state.
*/
ACString finish(in PRBool aASCII);
ACString finish(in boolean aASCII);
};

View File

@ -74,5 +74,5 @@ interface nsIParentRedirectingChannel : nsIParentChannel
* Primarilly used by HttpChannelParentListener::OnRedirectResult and kept
* as mActiveChannel and mRedirectChannel in that class.
*/
void completeRedirect(in PRBool succeeded);
void completeRedirect(in boolean succeeded);
};

View File

@ -51,5 +51,5 @@ interface nsIRedirectResultListener : nsISupports
* Indicated whether the redirect will be proceeding, or not (i.e.
* has been canceled, or failed).
*/
void onRedirectResult(in PRBool proceeding);
void onRedirectResult(in boolean proceeding);
};

View File

@ -72,7 +72,7 @@ interface nsIStrictTransportSecurityService : nsISupports
* Checks if the given security info is for an STS host with a broken
* transport layer (certificate errors like invalid CN).
*/
PRBool shouldIgnoreStsHeader(in nsISupports aSecurityInfo);
boolean shouldIgnoreStsHeader(in nsISupports aSecurityInfo);
/**
* Checks whether or not the given hostname has STS state set.
@ -81,7 +81,7 @@ interface nsIStrictTransportSecurityService : nsISupports
*
* @param aHost the hostname (punycode) to query for STS state.
*/
PRBool isStsHost(in string aHost);
boolean isStsHost(in string aHost);
/**
* Checks whether or not the URI's hostname has STS state set.
@ -93,7 +93,7 @@ interface nsIStrictTransportSecurityService : nsISupports
*
* @param aURI the URI to query for STS state.
*/
PRBool isStsURI(in nsIURI aURI);
boolean isStsURI(in nsIURI aURI);
};

View File

@ -55,7 +55,7 @@ interface nsICacheSession : nsISupports
* mode and clients, such as HTTP, that can update the valid lifetime of
* cached content). This attribute defaults to true.
*/
attribute PRBool doomEntriesIfExpired;
attribute boolean doomEntriesIfExpired;
/**
* A cache session can only give out one descriptor with WRITE access
@ -93,5 +93,5 @@ interface nsICacheSession : nsISupports
* Return whether any of the cache devices implied by the session storage policy
* are currently enabled for instantiation if they don't already exist.
*/
PRBool isStorageEnabled();
boolean isStorageEnabled();
};

View File

@ -315,7 +315,7 @@ interface nsIHttpServerIdentity : nsISupports
* @returns
* true if the given name was a name for this server, false otherwise
*/
PRBool remove(in string scheme, in string host, in long port);
boolean remove(in string scheme, in string host, in long port);
/**
* Returns true if the given name is in this, false otherwise.
@ -324,7 +324,7 @@ interface nsIHttpServerIdentity : nsISupports
* if scheme or host do not match the scheme or host productions imported
* into RFC 2616 from RFC 2396, or if port is not a valid port number
*/
PRBool has(in string scheme, in string host, in long port);
boolean has(in string scheme, in string host, in long port);
/**
* Returns the scheme for the name with the given host and port, if one is

View File

@ -43,10 +43,10 @@ interface nsICipherInfo : nsISupports
{
readonly attribute ACString longName;
readonly attribute PRBool isSSL2;
readonly attribute PRBool isFIPS;
readonly attribute PRBool isExportable;
readonly attribute PRBool nonStandard;
readonly attribute boolean isSSL2;
readonly attribute boolean isFIPS;
readonly attribute boolean isExportable;
readonly attribute boolean nonStandard;
readonly attribute ACString symCipherName;
readonly attribute ACString authAlgorithmName;
readonly attribute ACString keaTypeName;

View File

@ -82,7 +82,7 @@ interface nsIStreamCipher : nsISupports
* encoded string. if false, then the returned value is
* binary data.
*/
ACString finish(in PRBool aASCII);
ACString finish(in boolean aASCII);
/**
* Discard aLen bytes of the keystream.

View File

@ -57,7 +57,7 @@ interface nsIScriptableUnescapeHTML : nsISupports
* Appends the text to the element.
*/
nsIDOMDocumentFragment parseFragment(in AString fragment,
in PRBool isXML,
in boolean isXML,
in nsIURI baseURI,
in nsIDOMElement element);
};

View File

@ -60,7 +60,7 @@ interface nsIUrlClassifierHashCompleterCallback : nsISupports
void completion(in ACString hash,
in ACString table,
in PRUint32 chunkId,
in PRBool trusted);
in boolean trusted);
/**
* The completion is complete. This method is called once per

View File

@ -172,5 +172,5 @@ interface nsIWebProgress : nsISupports
* Indicates whether or not a document is currently being loaded
* in the context of this nsIWebProgress instance.
*/
readonly attribute PRBool isLoadingDocument;
readonly attribute boolean isLoadingDocument;
};

View File

@ -132,7 +132,7 @@ interface nsIDragService : nsISupports
* If aDoneDrag is true, the drag has finished, otherwise the drag has
* just left the window.
*/
void endDragSession ( in PRBool aDoneDrag ) ;
void endDragSession ( in boolean aDoneDrag ) ;
/**
* Fire a drag event at the source of the drag

View File

@ -163,12 +163,12 @@ interface nsIPrintSettings : nsISupports
/**
* Set PrintOptions
*/
void SetPrintOptions(in PRInt32 aType, in PRBool aTurnOnOff);
void SetPrintOptions(in PRInt32 aType, in boolean aTurnOnOff);
/**
* Get PrintOptions
*/
PRBool GetPrintOptions(in PRInt32 aType);
boolean GetPrintOptions(in PRInt32 aType);
/**
* Set PrintOptions Bit field

View File

@ -73,5 +73,5 @@ interface nsIFactory : nsISupports {
* @return NS_OK - If the lock operation was successful.
* NS_ERROR* - Method failure.
*/
void lockFactory(in PRBool lock);
void lockFactory(in boolean lock);
};

View File

@ -71,5 +71,5 @@ interface nsIPropertyBag2 : nsIPropertyBag
/**
* Check for the existence of a key.
*/
PRBool hasKey (in AString prop);
boolean hasKey (in AString prop);
};

View File

@ -115,7 +115,7 @@ interface nsISupportsString : nsISupportsPrimitive
[scriptable, uuid(ddc3b490-4a1c-11d3-9890-006008962422)]
interface nsISupportsPRBool : nsISupportsPrimitive
{
attribute PRBool data;
attribute boolean data;
string toString();
};

View File

@ -104,7 +104,7 @@ interface nsIVariant : nsISupports
[noscript] PRUint64 getAsUint64();
[noscript] float getAsFloat();
[noscript] double getAsDouble();
[noscript] PRBool getAsBool();
[noscript] boolean getAsBool();
[noscript] char getAsChar();
[noscript] wchar getAsWChar();
[notxpcom] nsresult getAsID(out nsID retval);
@ -143,7 +143,7 @@ interface nsIVariant : nsISupports
[scriptable, uuid(5586a590-8c82-11d5-90f3-0010a4e73d9a)]
interface nsIWritableVariant : nsIVariant
{
attribute PRBool writable;
attribute boolean writable;
void setAsInt8(in PRUint8 aValue);
void setAsInt16(in PRInt16 aValue);
@ -155,7 +155,7 @@ interface nsIWritableVariant : nsIVariant
void setAsUint64(in PRUint64 aValue);
void setAsFloat(in float aValue);
void setAsDouble(in double aValue);
void setAsBool(in PRBool aValue);
void setAsBool(in boolean aValue);
void setAsChar(in char aValue);
void setAsWChar(in wchar aValue);
void setAsID(in nsIDRef aValue);

View File

@ -59,7 +59,7 @@ interface nsIBinaryInputStream : nsIInputStream {
*
* @return that byte to be treated as a boolean.
*/
PRBool readBoolean();
boolean readBoolean();
PRUint8 read8();
PRUint16 read16();

View File

@ -58,7 +58,7 @@ interface nsIBinaryOutputStream : nsIOutputStream {
/**
* Write a boolean as an 8-bit char to the stream.
*/
void writeBoolean(in PRBool aBoolean);
void writeBoolean(in boolean aBoolean);
void write8(in PRUint8 aByte);
void write16(in PRUint16 a16);

View File

@ -63,7 +63,7 @@ interface nsIDirectoryServiceProvider: nsISupports
* @return The file represented by the property.
*
*/
nsIFile getFile(in string prop, out PRBool persistent);
nsIFile getFile(in string prop, out boolean persistent);
};
/**

View File

@ -93,7 +93,7 @@ interface nsILocalFile : nsIFile
* on all non unix systems. On unix, this attribute is effectively
* a noop.
*/
attribute PRBool followLinks;
attribute boolean followLinks;
const unsigned long DELETE_ON_CLOSE = 0x80000000;

View File

@ -74,7 +74,7 @@ interface nsILocalFileOS2 : nsILocalFile
* a string in the filesystem's native character set
*
*/
PRBool isFileType( in ACString fileType );
boolean isFileType( in ACString fileType );
/**
* setFileSource

View File

@ -56,7 +56,7 @@ interface nsIObjectInputStream : nsIBinaryInputStream
*
* @see nsIObjectOutputStream
*/
nsISupports readObject(in PRBool aIsStrongRef);
nsISupports readObject(in boolean aIsStrongRef);
[notxpcom] nsresult readID(out nsID aID);

View File

@ -61,7 +61,7 @@ interface nsIObjectOutputStream : nsIBinaryOutputStream
* the primary inheritance chain ending in the root nsISupports, you must
* call writeCompoundObject instead of this method.
*/
void writeObject(in nsISupports aObject, in PRBool aIsStrongRef);
void writeObject(in nsISupports aObject, in boolean aIsStrongRef);
/**
* Write an object referenced singly and strongly via its root nsISupports
@ -80,7 +80,7 @@ interface nsIObjectOutputStream : nsIBinaryOutputStream
*/
void writeCompoundObject(in nsISupports aObject,
in nsIIDRef aIID,
in PRBool aIsStrongRef);
in boolean aIsStrongRef);
void writeID(in nsIDRef aID);

View File

@ -64,8 +64,8 @@ interface nsIInterfaceInfo : nsISupports
readonly attribute string name;
readonly attribute nsIIDPtr InterfaceIID;
PRBool isScriptable();
PRBool isBuiltinClass();
boolean isScriptable();
boolean isBuiltinClass();
readonly attribute nsIInterfaceInfo parent;
@ -122,14 +122,14 @@ interface nsIInterfaceInfo : nsISupports
PRUint8 getInterfaceIsArgNumberForParam(in PRUint16 methodIndex,
[const] in nsXPTParamInfoPtr param);
PRBool isIID(in nsIIDPtr IID);
boolean isIID(in nsIIDPtr IID);
void getNameShared([shared,retval] out string name);
void getIIDShared([shared,retval] out nsIIDPtrShared iid);
PRBool isFunction();
boolean isFunction();
PRBool hasAncestor(in nsIIDPtr iid);
boolean hasAncestor(in nsIIDPtr iid);
[notxpcom] nsresult getIIDForParamNoAlloc(in PRUint16 methodIndex,
[const] in nsXPTParamInfoPtr param,

View File

@ -66,7 +66,7 @@ interface nsIInterfaceInfoSuperManager : nsIInterfaceInfoManager
void addAdditionalManager(in nsIInterfaceInfoManager manager);
void removeAdditionalManager(in nsIInterfaceInfoManager manager);
PRBool hasAdditionalManagers();
boolean hasAdditionalManagers();
nsISimpleEnumerator enumerateAdditionalManagers();
};

View File

@ -74,6 +74,6 @@ interface nsIXULBrowserWindow : nsISupports
AString onBeforeLinkTraversal(in AString originalTarget,
in nsIURI linkURI,
in nsIDOMNode linkNode,
in PRBool isAppTab);
in boolean isAppTab);
};