Commit f0b86d06 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Get rid of PRBool in nsiface.idl.

parent c25b0718
......@@ -48,13 +48,14 @@ typedef LONG PRInt32;
typedef WORD PRUint16;
typedef INT16 PRInt16;
typedef BYTE PRUint8;
typedef unsigned char PRBool;
typedef LONGLONG PRInt64;
typedef ULONGLONG PRUint64;
typedef PRUint64 DOMTimeStamp;
typedef PRUint32 nsLoadFlags;
#define bool PRBool
typedef unsigned char cpp_bool;
#define bool cpp_bool
cpp_quote("#define PRBool cpp_bool") /* FIXME */
typedef struct {
void *v;
......@@ -203,7 +204,7 @@ interface nsIServiceManager : nsISupports
interface nsIFactory : nsISupports
{
nsresult CreateInstance(nsISupports *aOuter, const nsIID *iid, void **result);
nsresult LockFactory(PRBool lock);
nsresult LockFactory(bool lock);
}
[
......@@ -233,8 +234,8 @@ interface nsIMemory : nsISupports
void *Alloc(/*size_t*/ int size);
void *Realloc(void *_ptr, /*size_t*/ int newSize);
void Free(void *_ptr);
nsresult HeapMinimize(PRBool immediate);
nsresult IsLowMemory(PRBool *_retval);
nsresult HeapMinimize(bool immediate);
nsresult IsLowMemory(bool *_retval);
}
[
......@@ -284,7 +285,7 @@ interface nsIRunnable : nsISupports
]
interface nsISimpleEnumerator : nsISupports
{
nsresult HasMoreElements(PRBool *_retval);
nsresult HasMoreElements(bool *_retval);
nsresult GetNext(nsISupports **_retval);
}
......@@ -306,7 +307,7 @@ interface nsIVariant : nsISupports
nsresult GetAsUint64(PRUint64 *_retval);
nsresult GetAsFloat(float *_retval);
nsresult GetAsDouble(double *_retval);
nsresult GetAsBool(PRBool *_retval);
nsresult GetAsBool(bool *_retval);
nsresult GetAsChar(char *_retval);
nsresult GetAsWChar(PRUnichar *_retval);
nsresult GetAsID(nsID *retval);
......@@ -331,8 +332,8 @@ interface nsIVariant : nsISupports
]
interface nsIWritableVariant : nsIVariant
{
nsresult GetWritable(PRBool *aWritable);
nsresult SetWritable(PRBool aWritable);
nsresult GetWritable(bool *aWritable);
nsresult SetWritable(bool aWritable);
nsresult SetAsInt8(PRUint8 aValue);
nsresult SetAsInt16(PRInt16 aValue);
nsresult SetAsInt32(PRInt32 aValue);
......@@ -343,7 +344,7 @@ interface nsIWritableVariant : nsIVariant
nsresult SetAsUint64(PRUint64 aValue);
nsresult SetAsFloat(float aValue);
nsresult SetAsDouble(double aValue);
nsresult SetAsBool(PRBool aValue);
nsresult SetAsBool(bool aValue);
nsresult SetAsChar(char aValue);
nsresult SetAsWChar(PRUnichar aValue);
nsresult SetAsID(const nsID *aValue);
......@@ -378,7 +379,7 @@ interface nsIInputStream : nsISupports
void *aClosure, const char *aFromSegment, PRUint32 aToOffset,
PRUint32 aCount, PRUint32 *aWriteCount),
void *aClosure, PRUint32 aCount, PRUint32 *_retval);
nsresult IsNonBlocking(PRBool *_retval);
nsresult IsNonBlocking(bool *_retval);
}
[
......@@ -407,8 +408,8 @@ interface nsIURI : nsISupports
nsresult SetPort(PRInt32 aPort);
nsresult GetPath(nsACString *aPath);
nsresult SetPath(const nsACString *aPath);
nsresult Equals(nsIURI *other, PRBool *_retval);
nsresult SchemeIs(const char *scheme, PRBool *_retval);
nsresult Equals(nsIURI *other, bool *_retval);
nsresult SchemeIs(const char *scheme, bool *_retval);
nsresult Clone(nsIURI **_retval);
nsresult Resolve(const nsACString *relativePath, nsACString *_retval);
nsresult GetAsciiSpec(nsACString *aAsciiSpec);
......@@ -416,10 +417,10 @@ interface nsIURI : nsISupports
nsresult GetOriginCharset(nsACString *aOriginCharset);
nsresult GetRef(nsACString *aRef);
nsresult SetRef(const nsACString *aRef);
nsresult EqualsExceptRef(nsIURI *other, PRBool *_retval);
nsresult EqualsExceptRef(nsIURI *other, bool *_retval);
nsresult CloneIgnoringRef(nsIURI **_retval);
nsresult GetSpecIgnoringRef(nsACString *aSpecIgnoringRef);
nsresult GetHasRef(PRBool *aHasRef);
nsresult GetHasRef(bool *aHasRef);
}
[
......@@ -452,8 +453,8 @@ interface nsIURL : nsIURI
]
interface nsIMutable : nsISupports
{
nsresult GetMutable(PRBool *aMutable);
nsresult SetMutable(PRBool aMutable);
nsresult GetMutable(bool *aMutable);
nsresult SetMutable(bool aMutable);
}
[
......@@ -474,7 +475,7 @@ interface nsIStandardURL : nsIMutable
interface nsIRequest : nsISupports
{
nsresult GetName(nsACString *aName);
nsresult IsPending(PRBool *_retval);
nsresult IsPending(bool *_retval);
nsresult GetStatus(nsresult *aStatus);
nsresult Cancel(nsresult aStatus);
nsresult Suspend();
......@@ -576,20 +577,20 @@ interface nsIHttpChannel : nsIChannel
nsresult GetReferrer(nsIURI **aReferrer);
nsresult SetReferrer(nsIURI *aReferrer);
nsresult GetRequestHeader(const nsACString *aHeader, nsACString *_retval);
nsresult SetRequestHeader(const nsACString *aHeader, const nsACString *aValue, PRBool aMerge);
nsresult SetRequestHeader(const nsACString *aHeader, const nsACString *aValue, bool aMerge);
nsresult VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor);
nsresult GetAllowPipelining(PRBool *aAllowPipelining);
nsresult SetAllowPipelining(PRBool aAllowPipelining);
nsresult GetAllowPipelining(bool *aAllowPipelining);
nsresult SetAllowPipelining(bool aAllowPipelining);
nsresult GetRedirectionLimit(PRUint32 *aRedirectionLimit);
nsresult SetRedirectionLimit(PRUint32 aRedirectionLimit);
nsresult GetResponseStatus(PRUint32 *aResponseStatus);
nsresult GetResponseStatusText(nsACString *aResponseStatusText);
nsresult GetRequestSucceeded(PRBool *aRequestSucceeded);
nsresult GetRequestSucceeded(bool *aRequestSucceeded);
nsresult GetResponseHeader(const nsACString *header, nsACString *_retval);
nsresult SetResponseHeader(const nsACString *header, const nsACString *value, PRBool merge);
nsresult SetResponseHeader(const nsACString *header, const nsACString *value, bool merge);
nsresult VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor);
nsresult IsNoStoreResponse(PRBool *_retval);
nsresult IsNoCacheResponse(PRBool *_retval);
nsresult IsNoStoreResponse(bool *_retval);
nsresult IsNoCacheResponse(bool *_retval);
}
[
......@@ -605,19 +606,19 @@ interface nsIHttpChannelInternal : nsISupports
nsresult GetResponseVersion(PRUint32 *major, PRUint32 *minor);
nsresult SetCookie(const char *aCookieHeader);
nsresult SetupFallbackChannel(const char *aFallbackKey);
nsresult GetForceAllowThirdPartyCookie(PRBool *aForceAllowThirdPartyCookie);
nsresult SetForceAllowThirdPartyCookie(PRBool aForceAllowThirdPartyCookie);
nsresult GetCanceled(PRBool *aCanceled);
nsresult GetChannelIsForDownload(PRBool *aChannelIsForDownload);
nsresult SetChannelIsForDownload(PRBool aChannelIsForDownload);
nsresult GetForceAllowThirdPartyCookie(bool *aForceAllowThirdPartyCookie);
nsresult SetForceAllowThirdPartyCookie(bool aForceAllowThirdPartyCookie);
nsresult GetCanceled(bool *aCanceled);
nsresult GetChannelIsForDownload(bool *aChannelIsForDownload);
nsresult SetChannelIsForDownload(bool aChannelIsForDownload);
nsresult GetLocalAddress(nsACString *aLocalAddress);
nsresult GetLocalPort(PRInt32 *aLocalPort);
nsresult GetRemoteAddress(nsACString *aRemoteAddress);
nsresult GetRemotePort(PRInt32 *aRemotePort);
nsresult SetCacheKeysRedirectChain(void /*nsTArray<nsCString>*/ *cacheKeys);
nsresult HTTPUpgrade(const nsACString *aProtocolName, nsIHttpUpgradeListener *aListener);
nsresult GetAllowSpdy(PRBool *aAllowSpdy);
nsresult SetAllowSpdy(PRBool aAllowSpdy);
nsresult GetAllowSpdy(bool *aAllowSpdy);
nsresult SetAllowSpdy(bool aAllowSpdy);
}
[
......@@ -680,7 +681,7 @@ interface nsIDOMLocation : nsISupports
nsresult SetProtocol(const nsAString *aProtocol);
nsresult GetSearch(nsAString *aSearch);
nsresult SetSearch(const nsAString *aSearch);
nsresult Reload(PRBool forceget);
nsresult Reload(bool forceget);
nsresult Replace(const nsAString *url);
nsresult Assign(const nsAString *url);
nsresult ToString(nsAString *_retval);
......@@ -739,8 +740,8 @@ interface nsIDOMCSSRuleList : nsISupports
interface nsIDOMStyleSheet : nsISupports
{
nsresult GetType(nsAString *aType);
nsresult GetDisabled(PRBool *aDisabled);
nsresult SetDisabled(PRBool aDisabled);
nsresult GetDisabled(bool *aDisabled);
nsresult SetDisabled(bool aDisabled);
nsresult GetOwnerNode(nsIDOMNode **aOwnerNode);
nsresult GetParentStyleSheet(nsIDOMStyleSheet **aParentStyleSheet);
nsresult GetHref(nsAString *aHref);
......@@ -849,25 +850,25 @@ interface nsIDOMNode : nsISupports
nsresult ReplaceChild(nsIDOMNode *newChild, nsIDOMNode *oldChild, nsIDOMNode **_retval);
nsresult RemoveChild(nsIDOMNode *oldChild, nsIDOMNode **_retval);
nsresult AppendChild(nsIDOMNode *newChild, nsIDOMNode **_retval);
nsresult HasChildNodes(PRBool *_retval);
nsresult CloneNode(PRBool deep, nsIDOMNode **_retval);
nsresult HasChildNodes(bool *_retval);
nsresult CloneNode(bool deep, nsIDOMNode **_retval);
nsresult Normalize();
nsresult IsSupported(const nsAString *feature, const nsAString *version, PRBool *_retval);
nsresult IsSupported(const nsAString *feature, const nsAString *version, bool *_retval);
nsresult GetNamespaceURI(nsAString *aNamespaceURI);
nsresult GetPrefix(nsAString *aPrefix);
nsresult GetLocalName(nsAString *aLocalName);
nsresult HasAttributes(PRBool *_retval);
nsresult HasAttributes(bool *_retval);
nsresult GetDOMBaseURI(nsAString *aBaseURI);
nsresult CompareDocumentPosition(nsIDOMNode *other, PRUint16 *_retval);
nsresult GetTextContent(nsAString *aTextContent);
nsresult SetTextContent(const nsAString *aTextContent);
nsresult LookupPrefix(const nsAString *namespaceURI, nsAString *_retval);
nsresult IsDefaultNamespace(const nsAString *namespaceURI, PRBool *_retval);
nsresult IsDefaultNamespace(const nsAString *namespaceURI, bool *_retval);
nsresult LookupNamespaceURI(const nsAString *prefix, nsAString *_retval);
nsresult IsEqualNode(nsIDOMNode *arg, PRBool *_retval);
nsresult IsEqualNode(nsIDOMNode *arg, bool *_retval);
nsresult SetUserData(const nsAString *key, nsIVariant *data, nsIDOMUserDataHandler *handler, nsIVariant **_retval);
nsresult GetUserData(const nsAString *key, nsIVariant **_retval);
nsresult Contains(nsIDOMNode *aOther, PRBool *_retval);
nsresult Contains(nsIDOMNode *aOther, bool *_retval);
}
[
......@@ -878,11 +879,11 @@ interface nsIDOMNode : nsISupports
interface nsIDOMAttr : nsIDOMNode
{
nsresult GetName(nsAString *aName);
nsresult GetSpecified(PRBool *aSpecified);
nsresult GetSpecified(bool *aSpecified);
nsresult GetValue(nsAString *aValue);
nsresult SetValue(const nsAString *aValue);
nsresult GetOwnerElement(nsIDOMElement **aOwnerElement);
nsresult GetIsId(PRBool *aIsId);
nsresult GetIsId(bool *aIsId);
}
[
......@@ -982,8 +983,8 @@ interface nsIDOMHTMLElement : nsIDOMElement
nsresult GetClassName(nsAString *aClassName);
nsresult SetClassName(const nsAString *aClassName);
nsresult GetDataset(nsIDOMDOMStringMap **aDataset);
nsresult GetHidden(PRBool *aHidden);
nsresult SetHidden(PRBool aHidden);
nsresult GetHidden(bool *aHidden);
nsresult SetHidden(bool aHidden);
nsresult Click();
nsresult GetTabIndex(PRInt32 *aTabIndex);
nsresult SetTabIndex(PRInt32 aTabIndex);
......@@ -992,20 +993,20 @@ interface nsIDOMHTMLElement : nsIDOMElement
nsresult GetAccessKey(nsAString *aAccessKey);
nsresult SetAccessKey(const nsAString *aAccessKey);
nsresult GetAccessKeyLabel(nsAString *aAccessKeyLabel);
nsresult GetDraggable(PRBool *aDraggable);
nsresult SetDraggable(PRBool aDraggable);
nsresult GetDraggable(bool *aDraggable);
nsresult SetDraggable(bool aDraggable);
nsresult GetContentEditable(nsAString *aContentEditable);
nsresult SetContentEditable(const nsAString *aContentEditable);
nsresult GetIsContentEditable(PRBool *aIsContentEditable);
nsresult GetIsContentEditable(bool *aIsContentEditable);
nsresult GetContextMenu(nsIDOMHTMLMenuElement **aContextMenu);
nsresult GetSpellcheck(PRBool *aSpellcheck);
nsresult SetSpellcheck(PRBool aSpellcheck);
nsresult GetSpellcheck(bool *aSpellcheck);
nsresult SetSpellcheck(bool aSpellcheck);
nsresult GetInnerHTML(nsAString *aInnerHTML);
nsresult SetInnerHTML(const nsAString *aInnerHTML);
nsresult GetOuterHTML(nsAString *aInnerHTML);
nsresult SetOuterHTML(const nsAString *aInnerHTML);
nsresult InsertAdjacentHTML(const nsAString *position, const nsAString *text);
nsresult ScrollIntoView(PRBool top, PRUint8 _argc);
nsresult ScrollIntoView(bool top, PRUint8 _argc);
nsresult GetOffsetParent(nsIDOMElement * *aOffsetParent);
nsresult GetOffsetTop(PRInt32 *aOffsetTop);
nsresult GetOffsetLeft(PRInt32 *aOffsetLeft);
......@@ -1091,7 +1092,7 @@ interface nsIDOMDocument : nsIDOMNode
nsresult CreateProcessingInstruction(const nsAString *target, const nsAString *data, nsIDOMProcessingInstruction **_retval);
nsresult CreateAttribute(const nsAString *name, nsIDOMAttr **_retval);
nsresult GetElementsByTagName(const nsAString *tagname, nsIDOMNodeList **_retval);
nsresult ImportNode(nsIDOMNode *importedNode, PRBool deep, PRUint8 _argc, nsIDOMNode **_retval);
nsresult ImportNode(nsIDOMNode *importedNode, bool deep, PRUint8 _argc, nsIDOMNode **_retval);
nsresult CreateElementNS(const nsAString *namespaceURI, const nsAString *qualifiedName, nsIDOMElement **_retval);
nsresult CreateAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName, nsIDOMAttr **_retval);
nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName, nsIDOMNodeList **_retval);
......@@ -1101,9 +1102,9 @@ interface nsIDOMDocument : nsIDOMNode
nsresult AdoptNode(nsIDOMNode *source, nsIDOMNode **_retval);
nsresult CreateRange(nsIDOMRange **_retval);
nsresult CreateNodeIterator(nsIDOMNode *root, PRUint32 whatToShow, nsIDOMNodeFilter *filter,
PRBool entityReferenceExpansion, nsIDOMNodeIterator **_retval);
bool entityReferenceExpansion, nsIDOMNodeIterator **_retval);
nsresult CreateTreeWalker(nsIDOMNode *root, PRUint32 whatToShow, nsIDOMNodeFilter *filter,
PRBool entityReferenceExpansion, nsIDOMTreeWalker **_retval);
bool entityReferenceExpansion, nsIDOMTreeWalker **_retval);
cpp_quote("#undef CreateEvent")
nsresult CreateEvent(const nsAString *eventType, nsIDOMEvent **_retval);
nsresult GetDefaultView(nsIDOMWindow **aDefaultView);
......@@ -1116,7 +1117,7 @@ interface nsIDOMDocument : nsIDOMNode
nsresult GetReadyState(nsAString *aReadyState);
nsresult GetLastModified(nsAString *aLastModified);
nsresult GetReferrer(nsAString *aReferrer);
nsresult HasFocus(PRBool *_retval);
nsresult HasFocus(bool *_retval);
nsresult GetActiveElement(nsIDOMElement **aActiveElement);
nsresult GetElementsByClassName(const nsAString *classes, nsIDOMNodeList **_retval);
nsresult GetStyleSheets(nsIDOMStyleSheetList **aStyleSheets);
......@@ -1128,21 +1129,21 @@ interface nsIDOMDocument : nsIDOMNode
nsresult EnableStyleSheetsForSet(const nsAString *name);
nsresult ElementFromPoint(float x, float y, nsIDOMElement **_retval);
nsresult GetContentType(nsAString *aContentType);
nsresult GetMozSyntheticDocument(PRBool *aMozSyntheticDocument);
nsresult GetMozSyntheticDocument(bool *aMozSyntheticDocument);
nsresult GetCurrentScript(nsIDOMElement **aCurrentScript);
nsresult ReleaseCapture();
nsresult MozSetImageElement(const nsAString *aImageElementId, nsIDOMElement *aImageElement);
nsresult GetMozFullScreenElement(nsIDOMHTMLElement **aMozFullScreenElement);
nsresult MozCancelFullScreen();
nsresult GetMozFullScreen(PRBool *aMozFullScreen);
nsresult GetMozFullScreenEnabled(PRBool *aMozFullScreenEnabled);
nsresult GetMozFullScreen(bool *aMozFullScreen);
nsresult GetMozFullScreenEnabled(bool *aMozFullScreenEnabled);
nsresult GetOnreadystatechange(JSContext* cx, jsval aOnreadystatechange);
nsresult SetOnreadystatechange(JSContext* cx, const jsval *aOnreadystatechange);
nsresult GetOnmouseenter(JSContext* cx, jsval *aOnmouseenter);
nsresult SetOnmouseenter(JSContext* cx, const jsval *aOnmouseenter);
nsresult GetOnmouseleave(JSContext* cx, jsval *aOnmouseleave) = 0;
nsresult SetOnmouseleave(JSContext* cx, const jsval *aOnmouseleave);
nsresult GetMozHidden(PRBool *aMozHidden);
nsresult GetMozHidden(bool *aMozHidden);
nsresult GetMozVisibilityState(nsAString *aMozVisibilityState);
}
......@@ -1176,12 +1177,12 @@ interface nsIDOMHTMLDocument : nsIDOMDocument
nsresult Writeln(const nsAString *text, JSContext *cx);
nsresult GetDesignMode(nsAString *aDesignMode);
nsresult SetDesignMode(const nsAString *aDesignMode);
nsresult ExecCommand(const nsAString *commandID, PRBool doShowUI, const nsAString *value, PRBool *_retval);
nsresult ExecCommandShowHelp(const nsAString *commandID, PRBool *_retval);
nsresult QueryCommandEnabled(const nsAString *commandID, PRBool *_retval);
nsresult QueryCommandIndeterm(const nsAString *commandID, PRBool *_retval);
nsresult QueryCommandState(const nsAString *commandID, PRBool *_retval);
nsresult QueryCommandSupported(const nsAString *commandID, PRBool *_retval);
nsresult ExecCommand(const nsAString *commandID, bool doShowUI, const nsAString *value, bool *_retval);
nsresult ExecCommandShowHelp(const nsAString *commandID, bool *_retval);
nsresult QueryCommandEnabled(const nsAString *commandID, bool *_retval);
nsresult QueryCommandIndeterm(const nsAString *commandID, bool *_retval);
nsresult QueryCommandState(const nsAString *commandID, bool *_retval);
nsresult QueryCommandSupported(const nsAString *commandID, bool *_retval);
nsresult QueryCommandText(const nsAString *commandID, nsAString *_retval);
nsresult QueryCommandValue(const nsAString *commandID, nsAString *_retval);
nsresult GetFgColor(nsAString *aFgColor);
......@@ -1221,7 +1222,7 @@ interface nsIDOMRange : nsISupports
nsresult GetStartOffset(PRInt32 *aStartOffset);
nsresult GetEndContainer(nsIDOMNode **aEndContainer);
nsresult GetEndOffset(PRInt32 *aEndOffset);
nsresult GetCollapsed(PRBool *aCollapsed);
nsresult GetCollapsed(bool *aCollapsed);
nsresult GetCommonAncestorContainer(nsIDOMNode **aCommonAncestorContainer);
nsresult SetStart(nsIDOMNode *refNode, PRInt32 offset);
nsresult SetEnd(nsIDOMNode *refNode, PRInt32 offset);
......@@ -1229,7 +1230,7 @@ interface nsIDOMRange : nsISupports
nsresult SetStartAfter(nsIDOMNode *refNode);
nsresult SetEndBefore(nsIDOMNode *refNode);
nsresult SetEndAfter(nsIDOMNode *refNode);
nsresult Collapse(PRBool toStart);
nsresult Collapse(bool toStart);
nsresult SelectNode(nsIDOMNode *refNode);
nsresult SelectNodeContents(nsIDOMNode *refNode);
nsresult CompareBoundaryPoints(PRUint16 how, nsIDOMRange *sourceRange, PRInt16 *_retval);
......@@ -1251,7 +1252,7 @@ interface nsIDOMRange : nsISupports
interface nsIDOMNSRange : nsISupports
{
nsresult CreateContextualFragment([in] const nsAString *fragment, [out] nsIDOMDocumentFragment **_retval);
nsresult IsPointInRange([in] nsIDOMNode *parent, [in] PRInt32 offset, [out] PRBool *_retval);
nsresult IsPointInRange([in] nsIDOMNode *parent, [in] PRInt32 offset, [out] bool *_retval);
nsresult ComparePoint([in] nsIDOMNode *parent, [in] PRInt32 offset, [out] PRInt16 *_retval);
nsresult GetClientRects(nsIDOMClientRectList **_retval);
nsresult GetBoundingClientRect(nsIDOMClientRect **_retval);
......@@ -1269,20 +1270,20 @@ interface nsISelection : nsISupports
nsresult GetAnchorOffset(PRInt32 *aAnchorOffset);
nsresult GetFocusNode(nsIDOMNode **aFocusNode);
nsresult GetFocusOffset(PRInt32 *aFocusOffset);
nsresult GetIsCollapsed(PRBool *aIsCollapsed);
nsresult GetIsCollapsed(bool *aIsCollapsed);
nsresult GetRangeCount(PRInt32 *aRangeCount);
nsresult GetRangeAt(PRInt32 index, nsIDOMRange **_retval);
nsresult Collapse(nsIDOMNode *parentNode, PRInt32 offset);
nsresult Extend(nsIDOMNode *parentNode, PRInt32 offset);
nsresult CollapseToStart();
nsresult CollapseToEnd();
nsresult ContainsNode(nsIDOMNode *node, PRBool entirelyContained, PRBool *_retval);
nsresult ContainsNode(nsIDOMNode *node, bool entirelyContained, bool *_retval);
nsresult SelectAllChildren(nsIDOMNode *parentNode);
nsresult AddRange(nsIDOMRange *range);
nsresult RemoveRange(nsIDOMRange *range);
nsresult RemoveAllRanges();
nsresult DeleteFromDocument();
nsresult SelectionLanguageChange(PRBool langRTL);
nsresult SelectionLanguageChange(bool langRTL);
nsresult ToString(PRUnichar **_retval);
nsresult Modify(const nsAString *alter, const nsAString *direction, const nsAString *granularity);
}
......@@ -1334,7 +1335,7 @@ interface nsIDOMWindow : nsISupports
nsresult GetNavigator(nsIDOMNavigator **aNavigator);
nsresult GetApplicationCache(nsIDOMOfflineResourceList **aApplicationCache);
nsresult Alert(const nsAString *text);
nsresult Confirm(const nsAString *text, PRBool *_retval);
nsresult Confirm(const nsAString *text, bool *_retval);
nsresult Prompt(const nsAString *aMessage, const nsAString *aInitial, nsAString *_retval);
nsresult Print();
nsresult ShowModalDialog(const nsAString *aURI, nsIVariant *aArgs, const nsAString *aOptions, nsIVariant **_retval);
......@@ -1375,7 +1376,7 @@ interface nsIDOMWindow : nsISupports
nsresult SizeToContent();
nsresult GetContent(nsIDOMWindow **aContent);
nsresult GetPrompter(nsIPrompt **aPrompter);
nsresult GetClosed(PRBool *aClosed);
nsresult GetClosed(bool *aClosed);
nsresult GetCrypto(nsIDOMCrypto **aCrypto);
nsresult GetPkcs11(nsIDOMPkcs11 **aPkcs11);
nsresult GetControllers(nsIControllers **aControllers);
......@@ -1385,8 +1386,8 @@ interface nsIDOMWindow : nsISupports
nsresult GetMozInnerScreenY(float *aMozInnerScreenY);
nsresult GetScrollMaxX(PRInt32 *aScrollMaxX);
nsresult GetScrollMaxY(PRInt32 *aScrollMaxY);
nsresult GetFullScreen(PRBool *aFullScreen);
nsresult SetFullScreen(PRBool aFullScreen);
nsresult GetFullScreen(bool *aFullScreen);
nsresult SetFullScreen(bool aFullScreen);
nsresult Back();
nsresult Forward();
nsresult Home();
......@@ -1398,8 +1399,8 @@ interface nsIDOMWindow : nsISupports
nsresult OpenDialog(const nsAString *url, const nsAString *name, const nsAString *options, nsISupports *aExtraArgument,
nsIDOMWindow **_retval);
nsresult UpdateCommands(const nsAString *action);
nsresult Find(const nsAString *str, PRBool caseSensitive, PRBool backwards, PRBool wrapAround, PRBool wholeWord,
PRBool searchInFrames, PRBool showDialog, PRBool *_retval);
nsresult Find(const nsAString *str, bool caseSensitive, bool backwards, bool wrapAround, bool wholeWord,
bool searchInFrames, bool showDialog, bool *_retval);
nsresult GetMozPaintCount(PRUint64 *aMozPaintCount);
nsresult MozRequestAnimationFrame(nsIFrameRequestCallback *aCallback, PRInt32 *_retval);
nsresult MozCancelAnimationFrame(PRInt32 aHandle);
......@@ -1507,15 +1508,15 @@ interface nsIDOMHTMLFormElement : nsIDOMHTMLElement
nsresult SetMethod(const nsAString *aMethod);
nsresult GetName(nsAString *aName);
nsresult SetName(const nsAString *aName);
nsresult GetNoValidate(PRBool *aNoValidate);
nsresult SetNoValidate(PRBool aNoValidate);
nsresult GetNoValidate(bool *aNoValidate);
nsresult SetNoValidate(bool aNoValidate);
nsresult GetTarget(nsAString *aTarget);
nsresult SetTarget(const nsAString *aTarget);
nsresult GetElements(nsIDOMHTMLCollection **aElements);
nsresult GetLength(PRInt32 *aLength);
nsresult Submit();
nsresult Reset();
nsresult CheckValidity(PRBool *_retval);
nsresult CheckValidity(bool *_retval);
}
[
......@@ -1531,14 +1532,14 @@ interface nsIDOMHTMLInputElement : nsIDOMHTMLElement
nsresult SetAlt(const nsAString *aAlt);
nsresult GetAutocomplete(nsAString *aAutocomplete);
nsresult SetAutocomplete(const nsAString *aAutocomplete);
nsresult GetAutofocus(PRBool *aAutofocus);
nsresult SetAutofocus(PRBool aAutofocus);
nsresult GetDefaultChecked(PRBool *aDefaultChecked);
nsresult SetDefaultChecked(PRBool aDefaultChecked);
nsresult GetChecked(PRBool *aChecked);
nsresult SetChecked(PRBool aChecked);
nsresult GetDisabled(PRBool *aDisabled);
nsresult SetDisabled(PRBool aDisabled);
nsresult GetAutofocus(bool *aAutofocus);
nsresult SetAutofocus(bool aAutofocus);
nsresult GetDefaultChecked(bool *aDefaultChecked);
nsresult SetDefaultChecked(bool aDefaultChecked);
nsresult GetChecked(bool *aChecked);
nsresult SetChecked(bool aChecked);
nsresult GetDisabled(bool *aDisabled);
nsresult SetDisabled(bool aDisabled);
nsresult GetForm(nsIDOMHTMLFormElement **aForm);
nsresult GetFormAction(nsAString *aFormAction);
nsresult SetFormAction(const nsAString *aFormAction);
......@@ -1546,28 +1547,28 @@ interface nsIDOMHTMLInputElement : nsIDOMHTMLElement
nsresult SetFormEnctype(const nsAString *aFormEnctype);
nsresult GetFormMethod(nsAString *aFormMethod);
nsresult SetFormMethod(const nsAString *aFormMethod);
nsresult GetFormNoValidate(PRBool *aFormNoValidate);
nsresult SetFormNoValidate(PRBool aFormNoValidate);
nsresult GetFormNoValidate(bool *aFormNoValidate);
nsresult SetFormNoValidate(bool aFormNoValidate);
nsresult GetFormTarget(nsAString *aFormTarget);
nsresult SetFormTarget(const nsAString *aFormTarget);
nsresult GetFiles(nsIDOMFileList **aFiles);
nsresult GetIndeterminate(PRBool *aIndeterminate);
nsresult SetIndeterminate(PRBool aIndeterminate);
nsresult GetIndeterminate(bool *aIndeterminate);
nsresult SetIndeterminate(bool aIndeterminate);
nsresult GetList(nsIDOMHTMLElement **aList);
nsresult GetMaxLength(PRInt32 *aMaxLength);
nsresult SetMaxLength(PRInt32 aMaxLength);
nsresult GetMultiple(PRBool *aMultiple);
nsresult SetMultiple(PRBool aMultiple);
nsresult GetMultiple(bool *aMultiple);
nsresult SetMultiple(bool aMultiple);
nsresult GetName(nsAString *aName);
nsresult SetName(const nsAString *aName);
nsresult GetPattern(nsAString *aPattern);
nsresult SetPattern(const nsAString *aPattern);
nsresult GetPlaceholder(nsAString *aPlaceholder);
nsresult SetPlaceholder(const nsAString *aPlaceholder);
nsresult GetReadOnly(PRBool *aReadOnly);
nsresult SetReadOnly(PRBool aReadOnly);
nsresult GetRequired(PRBool *aRequired);
nsresult SetRequired(PRBool aRequired);
nsresult GetReadOnly(bool *aReadOnly);
nsresult SetReadOnly(bool aReadOnly);
nsresult GetRequired(bool *aRequired);
nsresult SetRequired(bool aRequired);
nsresult GetAlign(nsAString *aAlign);
nsresult SetAlign(const nsAString *aAlign);
nsresult GetSize(PRUint32 *aSize);
......@@ -1580,10 +1581,10 @@ interface nsIDOMHTMLInputElement : nsIDOMHTMLElement
nsresult SetDefaultValue(const nsAString *aDefaultValue);
nsresult GetValue(nsAString *aValue);
nsresult SetValue(const nsAString *aValue);
nsresult GetWillValidate(PRBool *aWillValidate);
nsresult GetWillValidate(bool *aWillValidate);
nsresult GetValidity(nsIDOMValidityState **aValidity);
nsresult GetValidationMessage(nsAString *aValidationMessage);
nsresult CheckValidity(PRBool *_retval);
nsresult CheckValidity(bool *_retval);
nsresult SetCustomValidity(const nsAString *error);
nsresult Select();
nsresult GetSelectionStart(PRInt32 *aSelectionStart);
......@@ -1599,7 +1600,7 @@ interface nsIDOMHTMLInputElement : nsIDOMHTMLElement
nsresult GetTextLength(PRInt32 *aTextLength);
nsresult MozGetFileNameArray(PRUint32 *aLength, PRUnichar ***aFileNames);
nsresult MozSetFileNameArray(const PRUnichar **aFileNames, PRUint32 aLength);
nsresult MozIsTextField(PRBool aExcludePassword, PRBool *_retval);
nsresult MozIsTextField(bool aExcludePassword, bool *_retval);
}
[
......@@ -1609,15 +1610,15 @@ interface nsIDOMHTMLInputElement : nsIDOMHTMLElement
]
interface nsIDOMHTMLOptionElement : nsIDOMHTMLElement
{
nsresult GetDisabled(PRBool *aDisabled);
nsresult SetDisabled(PRBool aDisabled);
nsresult GetDisabled(bool *aDisabled);
nsresult SetDisabled(bool aDisabled);
nsresult GetForm(nsIDOMHTMLFormElement **aForm);
nsresult GetLabel(nsAString *aLabel);
nsresult SetLabel(const nsAString *aLabel);
nsresult GetDefaultSelected(PRBool *aDefaultSelected);
nsresult SetDefaultSelected(PRBool aDefaultSelected);
nsresult GetSelected(PRBool *aSelected);
nsresult SetSelected(PRBool aSelected);
nsresult GetDefaultSelected(bool *aDefaultSelected);
nsresult SetDefaultSelected(bool aDefaultSelected);
nsresult GetSelected(bool *aSelected);
nsresult SetSelected(bool aSelected);
nsresult GetValue(nsAString *aValue);
nsresult SetValue(const nsAString *aValue);
nsresult GetText(nsAString *aText);
......@@ -1654,13 +1655,13 @@ interface nsIDOMHTMLOptionsCollection : nsISupports
]
interface nsIDOMHTMLSelectElement : nsIDOMHTMLElement
{
nsresult GetAutofocus(PRBool *aAutofocus);
nsresult SetAutofocus(PRBool aAutofocus);
nsresult GetDisabled(PRBool *aDisabled);
nsresult SetDisabled(PRBool aDisabled);
nsresult GetAutofocus(bool *aAutofocus);
nsresult SetAutofocus(bool aAutofocus);
nsresult GetDisabled(bool *aDisabled);
nsresult SetDisabled(bool aDisabled);
nsresult GetForm(nsIDOMHTMLFormElement **aForm);
nsresult GetMultiple(PRBool *aMultiple);
nsresult SetMultiple(PRBool aMultiple);
nsresult GetMultiple(bool *aMultiple);
nsresult SetMultiple(bool aMultiple);
nsresult GetName(nsAString *aName);
nsresult SetName(const nsAString *aName);
nsresult GetSize(PRInt32 *aSize);
......@@ -1677,13 +1678,13 @@ interface nsIDOMHTMLSelectElement : nsIDOMHTMLElement
nsresult SetSelectedIndex(PRInt32 aSelectedIndex);
nsresult GetValue(nsAString *aValue);
nsresult SetValue(const nsAString *aValue);
nsresult GetWillValidate(PRBool *aWillValidate);
nsresult GetWillValidate(bool *aWillValidate);
nsresult GetValidity(nsIDOMValidityState **aValidity);
nsresult GetValidationMessage(nsAString *aValidationMessage);
nsresult CheckValidity(PRBool *_retval);
nsresult CheckValidity(bool *_retval);
nsresult SetCustomValidity(const nsAString *error);
nsresult GetRequired(PRBool *aRequired);
nsresult SetRequired(PRBool aRequired);
nsresult GetRequired(bool *aRequired);
nsresult SetRequired(bool aRequired);
}
[
......@@ -1693,12 +1694,12 @@ interface nsIDOMHTMLSelectElement : nsIDOMHTMLElement
]
interface nsIDOMHTMLTextAreaElement : nsIDOMHTMLElement
{
nsresult GetAutofocus(PRBool *aAutofocus);
nsresult SetAutofocus(PRBool aAutofocus);
nsresult GetAutofocus(bool *aAutofocus);
nsresult SetAutofocus(bool aAutofocus);
nsresult GetCols(PRUint32 *aCols);
nsresult SetCols(PRUint32 aCols);
nsresult GetDisabled(PRBool *aDisabled);
nsresult SetDisabled(PRBool aDisabled);
nsresult GetDisabled(bool *aDisabled);
nsresult SetDisabled(bool aDisabled);
nsresult GetForm(nsIDOMHTMLFormElement **aForm);
nsresult GetMaxLength(PRInt32 *aMaxLength);
nsresult SetMaxLength(PRInt32 aMaxLength);
......@@ -1706,10 +1707,10 @@ interface nsIDOMHTMLTextAreaElement : nsIDOMHTMLElement
nsresult SetName(const nsAString *aName);
nsresult GetPlaceholder(nsAString *aPlaceholder);
nsresult SetPlaceholder(const nsAString *aPlaceholder);
nsresult GetReadOnly(PRBool *aReadOnly);
nsresult SetReadOnly(PRBool aReadOnly);
nsresult GetRequired(PRBool *aRequired);
nsresult SetRequired(PRBool aRequired);
nsresult GetReadOnly(bool *aReadOnly);
nsresult SetReadOnly(bool aReadOnly);
nsresult GetRequired(bool *aRequired);
nsresult SetRequired(bool aRequired);
nsresult GetRows(PRUint32 *aRows);
nsresult SetRows(PRUint32 aRows);
nsresult GetWrap(nsAString *aWrap);
......@@ -1720,10 +1721,10 @@ interface nsIDOMHTMLTextAreaElement : nsIDOMHTMLElement
nsresult GetValue(nsAString *aValue);
nsresult SetValue(const nsAString *aValue);
nsresult GetTextLength(PRInt32 *aTextLength);
nsresult GetWillValidate(PRBool *aWillValidate);
nsresult GetWillValidate(bool *aWillValidate);
nsresult GetValidity(nsIDOMValidityState **aValidity);
nsresult GetValidationMessage(nsAString *aValidationMessage);
nsresult CheckValidity(PRBool *_retval);
nsresult CheckValidity(bool *_retval);
nsresult SetCustomValidity(const nsAString *error);
nsresult Select();
nsresult GetSelectionStart(PRInt32 *aSelectionStart);
......@@ -1745,10 +1746,10 @@ interface nsIDOMHTMLScriptElement : nsIDOMHTMLElement
{
nsresult GetSrc(nsAString *aSrc);
nsresult SetSrc(const nsAString *aSrc);
nsresult GetAsync(PRBool *aAsync);
nsresult SetAsync(PRBool aAsync);
nsresult GetDefer(PRBool *aDefer);
nsresult SetDefer(PRBool aDefer);
nsresult GetAsync(bool *aAsync);
nsresult SetAsync(bool aAsync);
nsresult GetDefer(bool *aDefer);
nsresult SetDefer(bool aDefer);
nsresult GetType(nsAString *aType);
nsresult SetType(const nsAString *aType);
nsresult GetCharset(nsAString *aCharset);
......@@ -1776,15 +1777,15 @@ interface nsIDOMHTMLImageElement : nsIDOMHTMLElement
nsresult SetCrossOrigin(const nsAString *aCrossOrigin);
nsresult GetUseMap(nsAString *aUseMap);
nsresult SetUseMap(const nsAString *aUseMap);
nsresult GetIsMap(PRBool *aIsMap);
nsresult SetIsMap(PRBool aIsMap);
nsresult GetIsMap(bool *aIsMap);
nsresult SetIsMap(bool aIsMap);
nsresult GetWidth(PRUint32 *aWidth);
nsresult SetWidth(PRUint32 aWidth);
nsresult GetHeight(PRUint32 *aHeight);
nsresult SetHeight(PRUint32 aHeight);
nsresult GetNaturalWidth(PRUint32 *aNaturalWidth);
nsresult GetNaturalHeight(PRUint32 *aNaturalHeight);
nsresult GetComplete(PRBool *aComplete);
nsresult GetComplete(bool *aComplete);
nsresult GetName(nsAString *aName);
nsresult SetName(const nsAString *aName);
nsresult GetAlign(nsAString *aAlign);
......@@ -1945,8 +1946,8 @@ interface nsIDOMHTMLIFrameElement : nsIDOMHTMLElement
nsresult SetWidth(const nsAString *aWidth);
nsresult GetContentDocument(nsIDOMDocument **aContentDocument);
nsresult GetContentWindow(nsIDOMWindow **aContentWindow);
nsresult GetMozAllowFullScreen(PRBool *aMozAllowFullScreen);
nsresult SetMozAllowFullScreen(PRBool aMozAllowFullScreen);
nsresult GetMozAllowFullScreen(bool *aMozAllowFullScreen);
nsresult SetMozAllowFullScreen(bool aMozAllowFullScreen);
}
[
......@@ -1966,8 +1967,8 @@ interface nsIDOMHTMLFrameElement : nsIDOMHTMLElement
nsresult SetMarginWidth(const nsAString *aMarginWidth);
nsresult GetName(nsAString *aName);
nsresult SetName(const nsAString *aName);
nsresult GetNoResize(PRBool *aNoResize);
nsresult SetNoResize(PRBool aNoResize);
nsresult GetNoResize(bool *aNoResize);
nsresult SetNoResize(bool aNoResize);
nsresult GetScrolling(nsAString *aScrolling);
nsresult SetScrolling(const nsAString *aScrolling);
nsresult GetSrc(nsAString *aSrc);
......@@ -1998,8 +1999,8 @@ interface nsIDOMHTMLObjectElement : nsIDOMHTMLElement
nsresult SetCodeType(const nsAString *aCodeType);
nsresult GetData(nsAString *aData);
nsresult SetData(const nsAString *aData);
nsresult GetDeclare(PRBool *aDeclare);
nsresult SetDeclare(PRBool aDeclare);
nsresult GetDeclare(bool *aDeclare);
nsresult SetDeclare(bool aDeclare);
nsresult GetHeight(nsAString *aHeight);
nsresult SetHeight(const nsAString *aHeight);
nsresult GetHspace(PRInt32 *aHspace);
......@@ -2017,10 +2018,10 @@ interface nsIDOMHTMLObjectElement : nsIDOMHTMLElement
nsresult GetWidth(nsAString *aWidth);
nsresult SetWidth(const nsAString *aWidth);
nsresult GetContentDocument(nsIDOMDocument **aContentDocument);
nsresult GetWillValidate(PRBool *aWillValidate);
nsresult GetWillValidate(bool *aWillValidate);
nsresult GetValidity(nsIDOMValidityState **aValidity);
nsresult GetValidationMessage(nsAString *aValidationMessage);
nsresult CheckValidity(PRBool *_retval);
nsresult CheckValidity(bool *_retval);
nsresult SetCustomValidity(const nsAString *error);
}
......@@ -2048,8 +2049,8 @@ interface nsIDOMHTMLParamElement : nsIDOMHTMLElement
]
interface nsIDOMHTMLStyleElement : nsIDOMHTMLElement
{
nsresult GetDisabled(PRBool *aDisabled);
nsresult SetDisabled(PRBool aDisabled);
nsresult GetDisabled(bool *aDisabled);
nsresult SetDisabled(bool aDisabled);
nsresult GetMedia(nsAString *aMedia);
nsresult SetMedia(const nsAString *aMedia);
nsresult GetType(nsAString *aType);
......@@ -2063,12 +2064,12 @@ interface nsIDOMHTMLStyleElement : nsIDOMHTMLElement
]
interface nsIURIContentListener : nsISupports
{
nsresult OnStartURIOpen(nsIURI *aURI, PRBool *_retval);
nsresult DoContent(const char *aContentType, PRBool aIsContentPreferred, nsIRequest *aRequest,
nsIStreamListener **aContentHandler, PRBool *_retval);
nsresult IsPreferred(const char *aContentType, char **aDesiredContentType, PRBool *_retval);
nsresult CanHandleContent(const char *aContentType, PRBool aIsContentPreferred,
char **aDesiredContentType, PRBool *_retval);
nsresult OnStartURIOpen(nsIURI *aURI, bool *_retval);
nsresult DoContent(const char *aContentType, bool aIsContentPreferred, nsIRequest *aRequest,
nsIStreamListener **aContentHandler, bool *_retval);
nsresult IsPreferred(const char *aContentType, char **aDesiredContentType, bool *_retval);
nsresult CanHandleContent(const char *aContentType, bool aIsContentPreferred,
char **aDesiredContentType, bool *_retval);
nsresult GetLoadCookie(nsISupports **aLoadCookie);
nsresult SetLoadCookie(nsISupports *aLoadCookie);
nsresult GetParentContentListener(nsIURIContentListener **aParentContentListener);
......@@ -2100,8 +2101,8 @@ interface nsIWebBrowser : nsISupports
nsresult GetParentURIContentListener(nsIURIContentListener **aParentURIContentListener);
nsresult SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener);
nsresult GetContentDOMWindow(nsIDOMWindow **aContentDOMWindow);
nsresult GetIsActive(PRBool *aIsActive);
nsresult SetIsActive(PRBool aIsActive);
nsresult GetIsActive(bool *aIsActive);
nsresult SetIsActive(bool aIsActive);
}
cpp_quote("#define SETUP_ALLOW_JAVASCRIPT 2")
......@@ -2132,19 +2133,19 @@ interface nsIBaseWindow : nsISupports
nsresult Destroy();
nsresult SetPosition(PRInt32 x, PRInt32 y);
nsresult GetPosition(PRInt32 *x, PRInt32 *y);
nsresult SetSize(PRInt32 cx, PRInt32 cy, PRBool fRepaint);
nsresult SetSize(PRInt32 cx, PRInt32 cy, bool fRepaint);
nsresult GetSize(PRInt32 *cx, PRInt32 *cy);
nsresult SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, PRBool fRepaint);
nsresult SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, bool fRepaint);
nsresult GetPositionAndSize(PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
nsresult Repaint(PRBool force);
nsresult Repaint(bool force);
nsresult GetParentWidget(nsIWidget **aParentWidget);
nsresult SetParentWidget(nsIWidget *aParentWidget);
nsresult GetParentNativeWindow(nativeWindow *aParentNativeWindow);
nsresult SetParentNativeWindow(nativeWindow aParentNativeWindow);
nsresult GetVisibility(PRBool *aVisibility);
nsresult SetVisibility(PRBool aVisibility);
nsresult GetEnabled(PRBool *aEnabled);
nsresult SetEnabled(PRBool aEnabled);
nsresult GetVisibility(bool *aVisibility);
nsresult SetVisibility(bool aVisibility);
nsresult GetEnabled(bool *aEnabled);
nsresult SetEnabled(bool aEnabled);
nsresult GetMainWidget(nsIWidget **aMainWidget);
nsresult SetFocus();
nsresult GetTitle(PRUnichar **aTitle);
......@@ -2162,8 +2163,8 @@ cpp_quote("#define LOAD_INITIAL_DOCUMENT_URI 0x00080000")
]
interface nsIWebNavigation : nsISupports
{
nsresult GetCanGoBack(PRBool *aCanGoBack);
nsresult GetCanGoForward(PRBool *aCanGoForward);
nsresult GetCanGoBack(bool *aCanGoBack);
nsresult GetCanGoForward(bool *aCanGoForward);
nsresult GoBack();
nsresult GoForward();
nsresult GotoIndex(PRInt32 index);
......@@ -2188,7 +2189,7 @@ interface nsIWebProgress : nsISupports
nsresult AddProgressListener(nsIWebProgressListener *aListener, PRUint32 aNotifyMask);
nsresult RemoveProgressListener(nsIWebProgressListener *aListener);
nsresult GetDOMWindow(nsIDOMWindow **aDOMWindow);
nsresult GetIsLoadingDocument(PRBool *aIsLoadingDocument);
nsresult GetIsLoadingDocument(bool *aIsLoadingDocument);
}
[
......@@ -2200,8 +2201,8 @@ interface nsIPrintSettings : nsISupports
{
typedef struct { char dummy; } nsIntMargin;
nsresult SetPrintOptions(PRInt32 aType, PRBool aTurnOnOff);
nsresult GetPrintOptions(PRInt32 aType, PRBool *_retval);
nsresult SetPrintOptions(PRInt32 aType, bool aTurnOnOff);
nsresult GetPrintOptions(PRInt32 aType, bool *_retval);
nsresult GetPrintOptionsBits(PRInt32 *_retval);
nsresult GetEffectivePageSize(double *aWidth, double *aHeight);
nsresult Clone(nsIPrintSettings **_retval);
......@@ -2238,10 +2239,10 @@ interface nsIPrintSettings : nsISupports
nsresult SetUnwriteableMarginRight(double aUnwriteableMarginRight);
nsresult GetScaling(double *aScaling);
nsresult SetScaling(double aScaling);
nsresult GetPrintBGColors(PRBool *aPrintBGColors);
nsresult SetPrintBGColors(PRBool aPrintBGColors);
nsresult GetPrintBGImages(PRBool *aPrintBGImages);
nsresult SetPrintBGImages(PRBool aPrintBGImages);
nsresult GetPrintBGColors(bool *aPrintBGColors);
nsresult SetPrintBGColors(bool aPrintBGColors);
nsresult GetPrintBGImages(bool *aPrintBGImages);
nsresult SetPrintBGImages(bool aPrintBGImages);
nsresult GetPrintRange(PRInt16 *aPrintRange);
nsresult SetPrintRange(PRInt16 aPrintRange);
nsresult GetTitle(PRUnichar **aTitle);
......@@ -2262,18 +2263,18 @@ interface nsIPrintSettings : nsISupports
nsresult SetFooterStrRight(const PRUnichar *aFooterStrRight);
nsresult GetHowToEnableFrameUI(PRInt16 *aHowToEnableFrameUI);
nsresult SetHowToEnableFrameUI(PRInt16 aHowToEnableFrameUI);
nsresult GetIsCancelled(PRBool *aIsCancelled);
nsresult SetIsCancelled(PRBool aIsCancelled);
nsresult GetIsCancelled(bool *aIsCancelled);
nsresult SetIsCancelled(bool aIsCancelled);
nsresult GetPrintFrameTypeUsage(PRInt16 *aPrintFrameTypeUsage);
nsresult SetPrintFrameTypeUsage(PRInt16 aPrintFrameTypeUsage);
nsresult GetPrintFrameType(PRInt16 *aPrintFrameType);
nsresult SetPrintFrameType(PRInt16 aPrintFrameType);
nsresult GetPrintSilent(PRBool *aPrintSilent);
nsresult SetPrintSilent(PRBool aPrintSilent);
nsresult GetShrinkToFit(PRBool *aShrinkToFit);
nsresult SetShrinkToFit(PRBool aShrinkToFit);
nsresult GetShowPrintProgress(PRBool *aShowPrintProgress);
nsresult SetShowPrintProgress(PRBool aShowPrintProgress);
nsresult GetPrintSilent(bool *aPrintSilent);
nsresult SetPrintSilent(bool aPrintSilent);
nsresult GetShrinkToFit(bool *aShrinkToFit);
nsresult SetShrinkToFit(bool aShrinkToFit);
nsresult GetShowPrintProgress(bool *aShowPrintProgress);
nsresult SetShowPrintProgress(bool aShowPrintProgress);
nsresult GetPaperName(PRUnichar **aPaperName);
nsresult SetPaperName(const PRUnichar *aPaperName);
nsresult GetPaperSizeType(PRInt16 *aPaperSizeType);
......@@ -2292,12 +2293,12 @@ interface nsIPrintSettings : nsISupports
nsresult SetColorspace(const PRUnichar *aColorspace);
nsresult GetResolutionName(PRUnichar **aResolutionName);
nsresult SetResolutionName(const PRUnichar aResolutionName);
nsresult GetDownloadFonts(PRBool *aDownloadFonts);
nsresult SetDownloadFonts(PRBool aDownloadFonts);
nsresult GetPrintReversed(PRBool *aPrintReversed);
nsresult SetPrintReversed(PRBool aPrintReversed);
nsresult GetPrintInColor(PRBool *aPrintInColor);
nsresult SetPrintInColor(PRBool aPrintInColor);
nsresult GetDownloadFonts(bool *aDownloadFonts);
nsresult SetDownloadFonts(bool aDownloadFonts);
nsresult GetPrintReversed(bool *aPrintReversed);
nsresult SetPrintReversed(bool aPrintReversed);
nsresult GetPrintInColor(bool *aPrintInColor);
nsresult SetPrintInColor(bool aPrintInColor);
nsresult GetOrientation(PRInt32 *aOrientation);
nsresult SetOrientation(PRInt32 aOrientation);
nsresult GetPrintCommand(PRUnichar **aPrintCommand);
......@@ -2306,18 +2307,18 @@ interface nsIPrintSettings : nsISupports
nsresult SetNumCopies(PRInt32 aNumCopies);
nsresult GetPrinterName(PRUnichar **aPrinterName);
nsresult SetPrinterName(const PRUnichar *aPrinterName);
nsresult GetPrintToFile(PRBool *aPrintToFile);
nsresult SetPrintToFile(PRBool aPrintToFile);
nsresult GetPrintToFile(bool *aPrintToFile);
nsresult SetPrintToFile(bool aPrintToFile);
nsresult GetToFileName(PRUnichar **aToFileName);
nsresult SetToFileName(const PRUnichar *aToFileName);
nsresult GetOutputFormat(PRInt16 *aOutputFormat);
nsresult SetOutputFormat(PRInt16 aOutputFormat);
nsresult GetPrintPageDelay(PRInt32 *aPrintPageDelay);
nsresult SetPrintPageDelay(PRInt32 aPrintPageDelay);
nsresult GetIsInitializedFromPrinter(PRBool *aIsInitializedFromPrinter);
nsresult SetIsInitializedFromPrinter(PRBool aIsInitializedFromPrinter);
nsresult GetIsInitializedFromPrefs(PRBool *aIsInitializedFromPrefs);
nsresult SetIsInitializedFromPrefs(PRBool aIsInitializedFromPrefs);
nsresult GetIsInitializedFromPrinter(bool *aIsInitializedFromPrinter);
nsresult SetIsInitializedFromPrinter(bool aIsInitializedFromPrinter);
nsresult GetIsInitializedFromPrefs(bool *aIsInitializedFromPrefs);
nsresult SetIsInitializedFromPrefs(bool aIsInitializedFromPrefs);
nsresult SetMarginInTwips(nsIntMargin *aMargin);
nsresult SetEdgeInTwips(nsIntMargin *aEdge);
nsresult GetMarginInTwips(nsIntMargin *aMargin);
......@@ -2338,12 +2339,12 @@ interface nsIWebBrowserPrint : nsISupports
nsresult GetGlobalPrintSettings(nsIPrintSettings **aGlobalPrintSettings);
nsresult GetCurrentPrintSettings(nsIPrintSettings **aCurrentPrintSettings);
nsresult GetCurrentChildDOMWindow(nsIDOMWindow **aCurrentChildDOMWindow);
nsresult GetDoingPrint(PRBool *aDoingPrint);
nsresult GetDoingPrintPreview(PRBool *aDoingPrintPreview);
nsresult GetIsFramesetDocument(PRBool *aIsFramesetDocument);
nsresult GetIsFramesetFrameSelected(PRBool *aIsFramesetFrameSelected);
nsresult GetIsIFrameSelected(PRBool *aIsIFrameSelected);
nsresult GetIsRangeSelection(PRBool *aIsRangeSelection);
nsresult GetDoingPrint(bool *aDoingPrint);
nsresult GetDoingPrintPreview(bool *aDoingPrintPreview);
nsresult GetIsFramesetDocument(bool *aIsFramesetDocument);
nsresult GetIsFramesetFrameSelected(bool *aIsFramesetFrameSelected);
nsresult GetIsIFrameSelected(bool *aIsIFrameSelected);
nsresult GetIsRangeSelection(bool *aIsRangeSelection);
nsresult GetPrintPreviewNumPages(PRInt32 *aPrintPreviewNumPages);
nsresult Print(nsIPrintSettings *aThePrintSettings, nsIWebProgressListener *aWPListener);
nsresult PrintPreview(nsIPrintSettings *aThePrintSettings, nsIDOMWindow *aChildDOMWin,
......@@ -2381,7 +2382,7 @@ interface nsIScrollable : nsISupports
PRInt32 minVerticalPos, PRInt32 maxVerticalPos);
nsresult GetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 *scrollbarPref);
nsresult SetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 scrollbarPref);
nsresult GetScrollbarVisibility(PRBool *verticalVisible, PRBool *horizontalVisible);
nsresult GetScrollbarVisibility(bool *verticalVisible, bool *horizontalVisible);
}
[
......@@ -2405,7 +2406,7 @@ interface nsIFile : nsISupports
nsresult CopyToFollowingLinksNative(nsIFile *newParentDir, const nsAString *newName);
nsresult MoveTo(nsIFile *newParentDir, const nsAString *newName);
nsresult MoveToNative(nsIFile *newParentDir, const nsAString *newName);
nsresult Remove(PRBool recursive);
nsresult Remove(bool recursive);
nsresult GetPermissions(PRUint32 *aPermissions);
nsresult SetPermissions(PRUint32 pPermissions);
nsresult GetPermissionsOfLink(PRUint32 *aPermissions);
......@@ -2421,19 +2422,19 @@ interface nsIFile : nsISupports
nsresult GetNativeTarget(nsACString *aNativeTarget);
nsresult GetPath(nsAString *aPath);
nsresult GetNativePath(nsACString *aNativePath);
nsresult Exists(PRBool *_retval);
nsresult IsWritable(PRBool *_retval);
nsresult IsReadable(PRBool *_retval);
nsresult IsExecutable(PRBool *_retval);
nsresult IsHidden(PRBool *_retval);
nsresult IsDirectory(PRBool *_retval);
nsresult IsFile(PRBool *_retval);
nsresult IsSymlink(PRBool *_retval);
nsresult IsSpecial(PRBool *_retval);
nsresult Exists(bool *_retval);
nsresult IsWritable(bool *_retval);
nsresult IsReadable(bool *_retval);
nsresult IsExecutable(bool *_retval);
nsresult IsHidden(bool *_retval);
nsresult IsDirectory(bool *_retval);
nsresult IsFile(bool *_retval);
nsresult IsSymlink(bool *_retval);
nsresult IsSpecial(bool *_retval);
nsresult CreateUnique(PRUint32 type, PRUint32 permission);
nsresult Clone(nsIFile **_retval);
nsresult Equals(nsIFile *inFile, PRBool *_retval);
nsresult Contains(nsIFile *inFile, PRBool recir, PRBool *_retval);
nsresult Equals(nsIFile *inFile, bool *_retval);
nsresult Contains(nsIFile *inFile, bool recir, bool *_retval);
nsresult GetParent(nsIFile **aParent);
nsresult GetDirectoryEntries(nsISimpleEnumerator **aDirectoryEntries);
}
......@@ -2447,8 +2448,8 @@ interface nsIPrefBranch : nsISupports
{
nsresult GetRoot(char **aRoot);
nsresult GetPrefType(const char *aPrefName, PRInt32 *_retval);
nsresult GetBoolPref(const char *aPrefName, PRBool *_retval);
nsresult SetBoolPref(const char *aPrefName, PRBool aValue);
nsresult GetBoolPref(const char *aPrefName, bool *_retval);
nsresult SetBoolPref(const char *aPrefName, bool aValue);
nsresult GetCharPref(const char *aPrefName, char **_retval);
nsresult SetCharPref(const char *aPrefName, const char *aValue);
nsresult GetIntPref(const char *aPrefName, PRInt32 *_retval);
......@@ -2457,8 +2458,8 @@ interface nsIPrefBranch : nsISupports
nsresult SetComplexValue(const char *aPrefName, const nsIID *aType, nsISupports *aValue);
nsresult ClearUserPref(const char *aPrefName);
nsresult LockPref(const char *aPrefName);
nsresult PrefHasUserValue(const char *aPrefName, PRBool *_retval);
nsresult PrefIsLocked(const char *aPrefName, PRBool *_retval);
nsresult PrefHasUserValue(const char *aPrefName, bool *_retval);
nsresult PrefIsLocked(const char *aPrefName, bool *_retval);
nsresult UnlockPref(const char *aPrefName);
nsresult DeleteBranch(const char *aStartingAt);
nsresult GetChildList(const char *aStartingAt, PRUint32 *aCount, char ***aChildArray);
......@@ -2472,7 +2473,7 @@ interface nsIPrefBranch : nsISupports
]
interface nsIDirectoryServiceProvider : nsISupports
{
nsresult GetFile(const char *prop, PRBool *persistent, nsIFile **_retval);
nsresult GetFile(const char *prop, bool *persistent, nsIFile **_retval);
}
[
......@@ -2488,7 +2489,7 @@ interface nsIProtocolHandler : nsISupports
nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset,
nsIURI *aBaseURI, nsIURI **_retval);
nsresult NewChannel(nsIURI *aURI, nsIChannel **_retval);
nsresult AllowPort(PRInt32 port, const char *scheme, PRBool *_retval);
nsresult AllowPort(PRInt32 port, const char *scheme, bool *_retval);
}
[
......@@ -2498,7 +2499,7 @@ interface nsIProtocolHandler : nsISupports
]
interface nsIExternalProtocolHandler : nsIProtocolHandler
{
nsresult ExternalAppExistsForScheme(const nsACString *scheme, PRBool *_retval);
nsresult ExternalAppExistsForScheme(const nsACString *scheme, bool *_retval);
}
[
......@@ -2516,9 +2517,9 @@ interface nsIIOService : nsISupports
nsresult NewChannelFromURI(nsIURI *aURI, nsIChannel **_retval);
nsresult NewChannel(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
nsIChannel **_retval);
nsresult GetOffline(PRBool *aOffline);
nsresult SetOffline(PRBool aOffline);
nsresult AllowPort(PRInt32 aPort, const char *aScheme, PRBool *_retval);
nsresult GetOffline(bool *aOffline);
nsresult SetOffline(bool aOffline);
nsresult AllowPort(PRInt32 aPort, const char *aScheme, bool *_retval);
nsresult ExtractScheme(const nsACString *urlString, nsACString *_retval);
}
......@@ -2530,16 +2531,16 @@ interface nsIIOService : nsISupports
interface nsINetUtil : nsISupports
{
nsresult ParseContentType(const nsACString *aTypeHeader, nsACString *aCharset,
PRBool *aHadCharset, nsACString *_retval);
nsresult ProtocolHasFlags(nsIURI *aURI, PRUint32 aFlag, PRBool *_retval);
nsresult URIChainHasFlags(nsIURI *aURI, PRUint32 aFlags, PRBool *_retval);
bool *aHadCharset, nsACString *_retval);
nsresult ProtocolHasFlags(nsIURI *aURI, PRUint32 aFlag, bool *_retval);
nsresult URIChainHasFlags(nsIURI *aURI, PRUint32 aFlags, bool *_retval);
nsresult ToImmutableURI(nsIURI *aURI, nsIURI **_retval);
nsresult NewSimpleNestedURI(nsIURI *aURI, nsIURI **_retval);
nsresult EscapeString(const nsACString *aString, PRUint32 aEscapeType, nsACString *_retval);
nsresult EscapeURL(const nsACString *aStr, PRUint32 aFlags, nsACString *_retval);
nsresult UnescapeString(const nsACString *aStr, PRUint32 aFlags, nsACString *_retval);
nsresult ExtractCharsetFromContentType(const nsACString *aTypeHeader, nsACString *aCharset,
PRInt32 *aCharsetStart, PRInt32 *aCharsetEnd, PRBool *_retval);
PRInt32 *aCharsetStart, PRInt32 *aCharsetEnd, bool *_retval);
}
[
......@@ -2574,7 +2575,7 @@ interface nsIWebBrowserChrome : nsISupports
nsresult DestroyBrowserWindow();
nsresult SizeBrowserTo(PRInt32 aCX, PRInt32 aCY);
nsresult ShowAsModal();
nsresult IsWindowModal(PRBool *_retval);
nsresult IsWindowModal(bool *_retval);
nsresult ExitModalEventLoop(nsresult aStatus);
}
......@@ -2595,11 +2596,11 @@ interface nsIDOMEventListener : nsISupports
]
interface nsIDOMEventTarget : nsISupports
{
nsresult AddEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture, PRBool wantsUntrusted, PRUint8 _argc);
nsresult AddSystemEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool aUseCapture, PRBool aWantsUntrusted, PRUint8 _argc);
nsresult RemoveEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
nsresult RemoveSystemEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool aUseCapture);
nsresult DispatchEvent(nsIDOMEvent *evt, PRBool *_retval);
nsresult AddEventListener(const nsAString *type, nsIDOMEventListener *listener, bool useCapture, bool wantsUntrusted, PRUint8 _argc);
nsresult AddSystemEventListener(const nsAString *type, nsIDOMEventListener *listener, bool aUseCapture, bool aWantsUntrusted, PRUint8 _argc);
nsresult RemoveEventListener(const nsAString *type, nsIDOMEventListener *listener, bool useCapture);
nsresult RemoveSystemEventListener(const nsAString *type, nsIDOMEventListener *listener, bool aUseCapture);
nsresult DispatchEvent(nsIDOMEvent *evt, bool *_retval);
/* Followed by methods we should try to avoid using */
}
......@@ -2615,13 +2616,13 @@ interface nsIDOMEvent : nsISupports
nsresult GetTarget(nsIDOMEventTarget **aTarget);
nsresult GetCurrentTarget(nsIDOMEventTarget **aCurrentTarget);
nsresult GetEventPhase(PRUint16 *aEventPhase);
nsresult GetBubbles(PRBool *aBubbles);
nsresult GetCancelable(PRBool *aCancelable);
nsresult GetBubbles(bool *aBubbles);
nsresult GetCancelable(bool *aCancelable);
nsresult GetTimeStamp(DOMTimeStamp *aTimeStamp);
nsresult StopPropagation();
nsresult PreventDefault();
nsresult InitEvent(const nsAString *eventTypeArg, PRBool canBubbleArg, PRBool cancelableArg);
nsresult GetDefaultPrevented(PRBool *aDefaultPrevented);
nsresult InitEvent(const nsAString *eventTypeArg, bool canBubbleArg, bool cancelableArg);
nsresult GetDefaultPrevented(bool *aDefaultPrevented);
nsresult StopImmediatePropagation();
}
......@@ -2652,7 +2653,7 @@ interface nsIDOMUIEvent : nsIDOMEvent
{
nsresult GetView(nsIDOMWindow **aView);
nsresult GetDetail(PRInt32 *aDetail);
nsresult InitUIEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
nsresult InitUIEvent(const nsAString *typeArg, bool canBubbleArg, bool cancelableArg,
nsIDOMWindow *viewArg, PRInt32 detailArg);
nsresult GetLayerX(PRInt32 *aLayerX);
nsresult GetLayerY(PRInt32 *aLayerY);
......@@ -2661,9 +2662,9 @@ interface nsIDOMUIEvent : nsIDOMEvent
nsresult GetWhich(PRUint32 *aWhich);
nsresult GetRangeParent(nsIDOMNode * *aRangeParent);
nsresult GetRangeOffset(PRInt32 *aRangeOffset);
nsresult GetCancelBubble(PRBool *aCancelBubble);
nsresult SetCancelBubble(PRBool aCancelBubble);
nsresult GetIsChar(PRBool *aIsChar);
nsresult GetCancelBubble(bool *aCancelBubble);
nsresult SetCancelBubble(bool aCancelBubble);
nsresult GetIsChar(bool *aIsChar);
}
[
......@@ -2677,23 +2678,23 @@ interface nsIDOMMouseEvent : nsIDOMUIEvent
nsresult GetScreenY(PRInt32 *aScreenY);
nsresult GetClientX(PRInt32 *aClientX);
nsresult GetClientY(PRInt32 *aClientY);
nsresult GetCtrlKey(PRBool *aCtrlKey);
nsresult GetShiftKey(PRBool *aShiftKey);
nsresult GetAltKey(PRBool *aAltKey);
nsresult GetMetaKey(PRBool *aMetaKey);
nsresult GetCtrlKey(bool *aCtrlKey);
nsresult GetShiftKey(bool *aShiftKey);
nsresult GetAltKey(bool *aAltKey);
nsresult GetMetaKey(bool *aMetaKey);
nsresult GetButton(PRUint16 *aButton);
nsresult GetRelatedTarget(nsIDOMEventTarget **aRelatedTarget);
nsresult InitMouseEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
nsresult InitMouseEvent(const nsAString *typeArg, bool canBubbleArg, bool cancelableArg,
nsIDOMWindow *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg,
PRInt32 clientXArg, PRInt32 clientYArg, PRBool ctrlKeyArg, PRBool altKeyArg,
PRBool shiftKeyArg, PRBool metaKeyArg, PRUint16 buttonArg,
PRInt32 clientXArg, PRInt32 clientYArg, bool ctrlKeyArg, bool altKeyArg,
bool shiftKeyArg, bool metaKeyArg, PRUint16 buttonArg,
nsIDOMEventTarget *relatedTargetArg);
nsresult GetMozPressure(float *aMozPressure);
nsresult GetMozInputSource(PRUint16 *aMozInputSource);
nsresult InitNSMouseEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
nsresult InitNSMouseEvent(const nsAString *typeArg, bool canBubbleArg, bool cancelableArg,
nsIDOMWindow *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg,
PRInt32 clientXArg, PRInt32 clientYArg, PRBool ctrlKeyArg, PRBool altKeyArg, PRBool shiftKeyArg,
PRBool metaKeyArg, PRUint16 buttonArg, nsIDOMEventTarget *relatedTargetArg, float pressure,
PRInt32 clientXArg, PRInt32 clientYArg, bool ctrlKeyArg, bool altKeyArg, bool shiftKeyArg,
bool metaKeyArg, PRUint16 buttonArg, nsIDOMEventTarget *relatedTargetArg, float pressure,
PRUint16 inputSourceArg);
}
......@@ -2706,13 +2707,13 @@ interface nsIDOMKeyEvent : nsIDOMUIEvent
{
nsresult GetCharCode(PRUint32 *aCharCode);
nsresult GetKeyCode(PRUint32 *aKeyCode);
nsresult GetAltKey(PRBool *aAltKey);
nsresult GetCtrlKey(PRBool *aCtrlKey);
nsresult GetShiftKey(PRBool *aShiftKey);
nsresult GetMetaKey(PRBool *aMetaKey);
nsresult InitKeyEvent(const nsAString *typeArg, PRBool canBubbleArg,
PRBool cancelableArg, nsIDOMWindow *viewArg, PRBool ctrlKeyArg,
PRBool altKeyArg, PRBool shiftKeyArg, PRBool metaKeyArg, PRUint32 keyCodeArg,
nsresult GetAltKey(bool *aAltKey);
nsresult GetCtrlKey(bool *aCtrlKey);
nsresult GetShiftKey(bool *aShiftKey);
nsresult GetMetaKey(bool *aMetaKey);
nsresult InitKeyEvent(const nsAString *typeArg, bool canBubbleArg,
bool cancelableArg, nsIDOMWindow *viewArg, bool ctrlKeyArg,
bool altKeyArg, bool shiftKeyArg, bool metaKeyArg, PRUint32 keyCodeArg,
PRUint32 charCodeArg);
}
......@@ -2726,8 +2727,8 @@ interface nsIEmbeddingSiteWindow : nsISupports
nsresult SetDimensions(PRUint32 flags, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy);
nsresult GetDimensions(PRUint32 flags, PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
nsresult SetFocus();
nsresult GetVisibility(PRBool *aVisibility);
nsresult SetVisibility(PRBool aVisibility);
nsresult GetVisibility(bool *aVisibility);
nsresult SetVisibility(bool aVisibility);
nsresult GetTitle(PRUnichar **aTitle);
nsresult SetTitle(const PRUnichar *aTitle);
nsresult GetSiteWindow(void **aSiteWindow);
......@@ -2749,8 +2750,8 @@ interface nsIComponentRegistrar : nsISupports
const char *aContractID, nsIFile *aFile, const char *aLoaderStr,
const char *aType);
nsresult UnregisterFactoryLocation(const nsCID *aClass, nsIFile *aFile);
nsresult IsCIDRegistered(const nsCID *aClass, PRBool *_retval);
nsresult IsContractIDRegistered(const char *aContractID, PRBool *_retval);
nsresult IsCIDRegistered(const nsCID *aClass, bool *_retval);
nsresult IsContractIDRegistered(const char *aContractID, bool *_retval);
nsresult EnumerateCIDs(nsISimpleEnumerator **_retval);
nsresult EnumerateContractIDs(nsISimpleEnumerator **_retval);
nsresult CIDToContractID(const nsCID *aClass, char **_retval);
......@@ -2767,28 +2768,28 @@ interface nsIPromptService : nsISupports
nsresult Alert(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
const PRUnichar *aText);
nsresult AlertCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState);
const PRUnichar *aText, const PRUnichar *aCheckMsg, bool *aCheckState);
nsresult Confirm(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
const PRUnichar *aText, PRBool *_retval);
const PRUnichar *aText, bool *_retval);
nsresult ConfirmCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState,
PRBool *_retval);
const PRUnichar *aText, const PRUnichar *aCheckMsg, bool *aCheckState,
bool *_retval);
nsresult ConfirmEx(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
const PRUnichar *aText, PRUint32 aButtonFlags, const PRUnichar *aButton0Title,
const PRUnichar *aButton1Title, const PRUnichar *aButton2Title,
const PRUnichar *aCheckMsg, PRBool *aCheckState, PRInt32 *_retval);
const PRUnichar *aCheckMsg, bool *aCheckState, PRInt32 *_retval);
nsresult Prompt(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
const PRUnichar *aText, PRUnichar **aValue, const PRUnichar *aCheckMsg,
PRBool *aCheckState, PRBool *_retval);
bool *aCheckState, bool *_retval);
nsresult PromptUsernameAndPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
const PRUnichar *aText, PRUnichar **aUsername, PRUnichar **aPassword,
const PRUnichar *aCheckMsg, PRBool *aCheckState, PRBool *_retval);
const PRUnichar *aCheckMsg, bool *aCheckState, bool *_retval);
nsresult PromptPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
const PRUnichar *aText, PRUnichar **aPassword, const PRUnichar *aCheckMsg,
PRBool *aCheckState, PRBool *_retval);
bool *aCheckState, bool *_retval);
nsresult Select(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
const PRUnichar *aText, PRUint32 aCount, const PRUnichar **aSelectList,
PRInt32 *aOutSelection, PRBool *_retval);
PRInt32 *aOutSelection, bool *_retval);
}
[
......@@ -2798,7 +2799,7 @@ interface nsIPromptService : nsISupports
]
interface nsITooltipTextProvider : nsISupports
{
nsresult GetNodeText(nsIDOMNode *aNode, PRUnichar **aText, PRBool *_retval);
nsresult GetNodeText(nsIDOMNode *aNode, PRUnichar **aText, bool *_retval);
}
[
......@@ -2810,15 +2811,15 @@ interface nsIProfile : nsISupports
{
nsresult GetProfileCount(PRInt32 *aProfileCount);
nsresult GetProfileList(PRUint32 *length, PRUnichar ***profileNames);
nsresult ProfileExists(const PRUnichar *profileName, PRBool *_retval);
nsresult ProfileExists(const PRUnichar *profileName, bool *_retval);
nsresult GetCurrentProfile(PRUnichar **aCurrentProfile);
nsresult SetCurrentProfile(const PRUnichar *aCurrentProfile);
nsresult ShutDownCurrentProfile(PRUint32 shutDownType);
nsresult CreateNewProfile(const PRUnichar *profileName,
const PRUnichar *nativeProfileDir, const PRUnichar *langcode,
PRBool useExistingDir);
bool useExistingDir);
nsresult RenameProfile(const PRUnichar *oldName, const PRUnichar *newName);
nsresult DeleteProfile(const PRUnichar *name, PRBool canDeleteFiles);
nsresult DeleteProfile(const PRUnichar *name, bool canDeleteFiles);
nsresult CloneProfile(const PRUnichar *profileName);
}
......@@ -2841,7 +2842,7 @@ interface nsIWindowCreator : nsISupports
interface nsIWindowCreator2 : nsIWindowCreator
{
nsresult CreateChromeWindow2(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
PRUint32 contextFlags, nsIURI *uri, PRBool *cancel,
PRUint32 contextFlags, nsIURI *uri, bool *cancel,
nsIWebBrowserChrome **_retval);
}
......@@ -2876,8 +2877,8 @@ interface nsIEditingSession : nsISupports
{
nsresult GetEditorStatus(PRUint32 *aEditorStatus);
nsresult MakeWindowEditable(nsIDOMWindow *window, const char *aEditorType,
PRBool doAfterUriLoad, PRBool aMakeWholeDocumentEditable, PRBool aInteractive);
nsresult WindowIsEditable(nsIDOMWindow *window, PRBool *_retval);
bool doAfterUriLoad, bool aMakeWholeDocumentEditable, bool aInteractive);
nsresult WindowIsEditable(nsIDOMWindow *window, bool *_retval);
nsresult GetEditorForWindow(nsIDOMWindow *window, nsIEditor **_retval);
nsresult SetupEditorOnWindow(nsIDOMWindow *window);
nsresult TearDownEditorOnWindow(nsIDOMWindow *window);
......@@ -2886,7 +2887,7 @@ interface nsIEditingSession : nsISupports
nsresult RestoreJSAndPlugins(nsIDOMWindow *aWindow);
nsresult DetachFromWindow(nsIDOMWindow *aWindow);
nsresult ReattachToWindow(nsIDOMWindow *aWindow);
nsresult GetJsAndPluginsDisabled(PRBool *aJsAndPluginsDisabled);
nsresult GetJsAndPluginsDisabled(bool *aJsAndPluginsDisabled);
}
[
......@@ -2897,20 +2898,20 @@ interface nsIEditingSession : nsISupports
interface nsICommandParams : nsISupports
{
nsresult GetValueType(const char *name, PRInt16 *_retval);
nsresult GetBooleanValue(const char *name, PRBool *_retval);
nsresult GetBooleanValue(const char *name, bool *_retval);
nsresult GetLongValue(const char *name, PRInt32 *_retval);
nsresult GetDoubleValue(const char *name, double *_retval);
nsresult GetStringValue(const char *name, nsAString *_retval);
nsresult GetCStringValue(const char *name, char **_retval);
nsresult GetISupportsValue(const char *name, nsISupports **_retval);
nsresult SetBooleanValue(const char *name, PRBool value);
nsresult SetBooleanValue(const char *name, bool value);
nsresult SetLongValue(const char *name, PRInt32 value);
nsresult SetDoubleValue(const char *name, double value);
nsresult SetStringValue(const char *name, const nsAString *value);
nsresult SetCStringValue(const char *name, const char *value);
nsresult SetISupportsValue(const char *name, nsISupports *value);
nsresult RemoveValue(const char *name);
nsresult HasMoreElements(PRBool *_retval);
nsresult HasMoreElements(bool *_retval);
nsresult First();
nsresult GetNext(char **_retval);
}
......@@ -2924,8 +2925,8 @@ interface nsICommandManager : nsISupports
{
nsresult AddCommandObserver(nsIObserver *aCommandObserver, const char *aCommandToObserve);
nsresult RemoveCommandObserver(nsIObserver *aCommandObserver, const char *aCommandObserved);
nsresult IsCommandSupported(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
nsresult IsCommandEnabled(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
nsresult IsCommandSupported(const char *aCommandName, nsIDOMWindow *aTargetWindow, bool *_retval);
nsresult IsCommandEnabled(const char *aCommandName, nsIDOMWindow *aTargetWindow, bool *_retval);
nsresult GetCommandState(const char *aCommandName, nsIDOMWindow *aTargetWindow,
nsICommandParams *aCommandParams);
nsresult DoCommand(const char *aCommandName, nsICommandParams *aCommandParams,
......@@ -2950,8 +2951,8 @@ interface nsIControllerContext : nsISupports
]
interface nsIController : nsISupports
{
nsresult IsCommandEnabled(const char *command, PRBool *_retval);
nsresult SupportsCommand(const char *command, PRBool *_retval);
nsresult IsCommandEnabled(const char *command, bool *_retval);
nsresult SupportsCommand(const char *command, bool *_retval);
nsresult DoCommand(const char *command);
nsresult OnEvent(const char *eventName);
}
......@@ -2983,8 +2984,8 @@ interface nsIDocument : nsISupports
]
interface nsIContentSerializer : nsISupports
{
nsresult Init(PRUint32 flags, PRUint32 aWrapColumn, const char *aCharSet, PRBool aIsCopying,
PRBool aIsWholeDocument);
nsresult Init(PRUint32 flags, PRUint32 aWrapColumn, const char *aCharSet, bool aIsCopying,
bool aIsWholeDocument);
nsresult AppendText(nsIContent *aText, PRInt32 aStartOffset, PRInt32 aEndOffset, nsAString *aStr);
nsresult AppendCDATASection(nsIContent *aCDATASection, PRInt32 aStartOffset,
PRInt32 aEndOffset, nsAString *aStr);
......@@ -3011,22 +3012,22 @@ interface nsIEditor : nsISupports
nsresult GetSelection([out] nsISelection *_retval);
nsresult Init([in] nsIDOMDocument *doc, [in] nsIContentPtr aRoot, [in] nsISelectionController *aSelCon, [in] PRUint32 aFlags);
nsresult SetAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] const nsAString *sourceAttrValue, [in] PRBool aSuppressTransaction);
nsresult RemoveAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] PRBool aSuppressTransaction);
nsresult SetAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] const nsAString *sourceAttrValue, [in] bool aSuppressTransaction);
nsresult RemoveAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] bool aSuppressTransaction);
nsresult PostCreate();
nsresult PreDestroy();
nsresult GetFlags([out] PRUint32 *_retval);
nsresult SetFlags([in] PRUint32 val);
nsresult GetContentsMIMEType([out] char **_retval);
nsresult SetContentsMIMEType([in] const char *val);
nsresult GetIsDocumentEditable([out] PRBool *_retval);
nsresult GetIsSelectionEditable(PRBool *aIsSelectionEditable);
nsresult GetIsDocumentEditable([out] bool *_retval);
nsresult GetIsSelectionEditable(bool *aIsSelectionEditable);
nsresult GetDocument([out] nsIDOMDocument **_retval);
nsresult GetRootElement([out] nsIDOMElement **_retval);
nsresult GetSelectionController([out] nsISelectionController **_retval);
nsresult DeleteSelection([in] PRInt16 action);
nsresult GetDocumentIsEmpty([out] PRBool *_retval);
nsresult GetDocumentModified([out] PRBool *_retval);
nsresult GetDocumentIsEmpty([out] bool *_retval);
nsresult GetDocumentModified([out] bool *_retval);
nsresult GetDocumentCharacterSet([out] nsACString *_retval);
nsresult SetDocumentCharacterSet([in] const nsACString *val);
nsresult ResetModificationCount();
......@@ -3035,36 +3036,36 @@ interface nsIEditor : nsISupports
nsresult GetTransactionManager([out] nsITransactionManager **_retval);
nsresult SetTransactionManager(nsITransactionManager *aTransactionManager);
nsresult DoTransaction([in] nsITransaction *txn);
nsresult EnableUndo([in] PRBool enable);
nsresult EnableUndo([in] bool enable);
nsresult Undo([in] PRUint32 count);
nsresult CanUndo([out] PRBool *isEnabled, [out] PRBool *canUndo);
nsresult CanUndo([out] bool *isEnabled, [out] bool *canUndo);
nsresult Redo([in] PRUint32 count);
nsresult CanRedo([out] PRBool *isEnabled, [out] PRBool *canRedo);
nsresult CanRedo([out] bool *isEnabled, [out] bool *canRedo);
nsresult BeginTransaction();
nsresult EndTransaction();
nsresult BeginPlaceHolderTransaction([in] nsIAtom *name);
nsresult EndPlaceHolderTransaction();
nsresult ShouldTxnSetSelection([out] PRBool *_retval);
nsresult SetShouldTxnSetSelection([in] PRBool should);
nsresult ShouldTxnSetSelection([out] bool *_retval);
nsresult SetShouldTxnSetSelection([in] bool should);
nsresult GetInlineSpellChecker([out] nsIInlineSpellChecker **_retval);
nsresult SyncRealTimeSpell();
nsresult SetSpellcheckUserOverride(PRBool enable);
nsresult SetSpellcheckUserOverride(bool enable);
nsresult Cut();
nsresult CanCut([out] PRBool *_retval);
nsresult CanCut([out] bool *_retval);
nsresult Copy();
nsresult CanCopy([out] PRBool *_retval);
nsresult CanCopy([out] bool *_retval);
nsresult Paste([in] PRInt32 aSelectionType);
nsresult PasteTransferable(nsITransferable *aTransferable);
nsresult CanPaste([in] PRInt32 aSelectionType, [out] PRBool *_retval);
nsresult CanPasteTransferable(nsITransferable *aTransferable, PRBool *_retval);
nsresult CanPaste([in] PRInt32 aSelectionType, [out] bool *_retval);
nsresult CanPasteTransferable(nsITransferable *aTransferable, bool *_retval);
nsresult SelectAll();
nsresult BeginningOfDocument();
nsresult EndOfDocument();
nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] PRBool *_retval);
nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] bool *_retval);
nsresult DoDrag([in] nsIDOMEvent *aEvent);
nsresult InsertFromDrop([in] nsIDOMEvent *aEvent);
nsresult SetAttribute([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [in] const nsAString *attvalue);
nsresult GetAttributeValue([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [out] nsAString *resultValue, PRBool *_retval);
nsresult GetAttributeValue([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [out] nsAString *resultValue, bool *_retval);
nsresult RemoveAttribute([in] nsIDOMElement *aElement, [in] const nsAString *aAttribute);
nsresult CloneAttribute([in] const nsAString *aAttribute, [in] nsIDOMNode *aDestNode, [in] nsIDOMNode *aSourceNode);
nsresult CloneAttributes([in] nsIDOMNode *destNode, [in] nsIDOMNode *sourceNode);
......@@ -3086,8 +3087,8 @@ interface nsIEditor : nsISupports
nsresult DumpContentTree();
nsresult DebugDumpContent();
nsresult DebugUnitTests([out] PRInt32 *outNumTests, [out] PRInt32 *outNumTestsFailed);
PRBool IsModifiableNode(nsIDOMNode *aNode);
nsresult GetLastKeypressEventTrusted(PRBool *aLastKeypressEventTrusted);
bool IsModifiableNode(nsIDOMNode *aNode);
nsresult GetLastKeypressEventTrusted(bool *aLastKeypressEventTrusted);
}
[
......@@ -3102,36 +3103,36 @@ interface nsIHTMLEditor : nsISupports
nsresult RemoveAllDefaultProperties();
nsresult SetCSSInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
nsresult SetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
nsresult GetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] PRBool *aFirst, [out] PRBool *aAny, [out] PRBool *aAll);
nsresult GetInlinePropertyWithAttrValue([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] PRBool *aFirst, [out] PRBool *aAny, [out] PRBool *aAll, [out] nsAString *_retval);
nsresult GetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] bool *aFirst, [out] bool *aAny, [out] bool *aAll);
nsresult GetInlinePropertyWithAttrValue([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] bool *aFirst, [out] bool *aAny, [out] bool *aAll, [out] nsAString *_retval);
nsresult RemoveAllInlineProperties();
nsresult RemoveInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute);
nsresult IncreaseFontSize();
nsresult DecreaseFontSize();
nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] PRBool *_retval);
nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] bool *_retval);
nsresult DoDrag([in] nsIDOMEvent *aEvent);
nsresult InsertFromDrop([in] nsIDOMEvent *aEvent);
nsresult NodeIsBlock([in] nsIDOMNode *node, PRBool *_retval);
nsresult NodeIsBlock([in] nsIDOMNode *node, bool *_retval);
nsresult InsertHTML([in] nsAString *aInputString);
nsresult PasteNoFormatting([in] PRInt32 aSelectionType);
nsresult RebuildDocumentFromSource([in] nsAString *aSourceString);
nsresult InsertHTMLWithContext([in] nsAString *aInputString, [in] nsAString *aContextStr, [in] nsAString *aInfoStr, [in] nsAString *aFlavor, [in] nsIDOMDocument *aSourceDoc, [in] nsIDOMNode *aDestinationNode, [in] PRInt32 aDestinationOffset, [in] PRBool aDeleteSelection);
nsresult InsertElementAtSelection([in] nsIDOMElement *aElement, [in] PRBool aDeleteSelection);
nsresult InsertHTMLWithContext([in] nsAString *aInputString, [in] nsAString *aContextStr, [in] nsAString *aInfoStr, [in] nsAString *aFlavor, [in] nsIDOMDocument *aSourceDoc, [in] nsIDOMNode *aDestinationNode, [in] PRInt32 aDestinationOffset, [in] bool aDeleteSelection);
nsresult InsertElementAtSelection([in] nsIDOMElement *aElement, [in] bool aDeleteSelection);
nsresult SetDocumentTitle([in] nsAString *aTitle);
nsresult UpdateBaseURL();
nsresult SelectElement([in] nsIDOMElement *aElement);
nsresult SetCaretAfterElement([in] nsIDOMElement *aElement);
nsresult SetParagraphFormat([in] nsAString *aParagraphFormat);
nsresult GetParagraphState([out] PRBool *aMixed, [out] nsAString *_retval);
nsresult GetFontFaceState([out] PRBool *aMixed, [out] nsAString *_retval);
nsresult GetFontColorState([out] PRBool *aMixed, [out] nsAString *_retval);
nsresult GetBackgroundColorState([out] PRBool *aMixed, [out] nsAString *_retval);
nsresult GetHighlightColorState([out] PRBool *aMixed, [out] nsAString *_retval);
nsresult GetListState([out] PRBool *aMixed, [out] PRBool *aOL, [out] PRBool *aUL, [out] PRBool *aDL);
nsresult GetListItemState([out] PRBool *aMixed, [out] PRBool *aLI, [out] PRBool *aDT, [out] PRBool *aDD);
nsresult GetAlignment([out] PRBool *aMixed, [out] PRInt16 *aAlign);
nsresult GetIndentState([out] PRBool *aCanIndent, [out] PRBool *aCanOutdent);
nsresult MakeOrChangeList([in] nsAString *aListType, [in] PRBool entireList, [in] nsAString *aBulletType);
nsresult GetParagraphState([out] bool *aMixed, [out] nsAString *_retval);
nsresult GetFontFaceState([out] bool *aMixed, [out] nsAString *_retval);
nsresult GetFontColorState([out] bool *aMixed, [out] nsAString *_retval);
nsresult GetBackgroundColorState([out] bool *aMixed, [out] nsAString *_retval);
nsresult GetHighlightColorState([out] bool *aMixed, [out] nsAString *_retval);
nsresult GetListState([out] bool *aMixed, [out] bool *aOL, [out] bool *aUL, [out] bool *aDL);
nsresult GetListItemState([out] bool *aMixed, [out] bool *aLI, [out] bool *aDT, [out] bool *aDD);
nsresult GetAlignment([out] bool *aMixed, [out] PRInt16 *aAlign);
nsresult GetIndentState([out] bool *aCanIndent, [out] bool *aCanOutdent);
nsresult MakeOrChangeList([in] nsAString *aListType, [in] bool entireList, [in] nsAString *aBulletType);
nsresult RemoveList([in] nsAString *aListType);
nsresult Indent([in] nsAString *aIndent);
nsresult Align([in] nsAString *aAlign);
......@@ -3143,19 +3144,19 @@ interface nsIHTMLEditor : nsISupports
nsresult InsertLinkAroundSelection([in] nsIDOMElement *aAnchorElement);
nsresult SetBackgroundColor([in] nsAString *aColor);
nsresult SetBodyAttribute([in] nsAString *aAttr, [in] nsAString *aValue);
nsresult IgnoreSpuriousDragEvent([in] PRBool aIgnoreSpuriousDragEvent);
nsresult IgnoreSpuriousDragEvent([in] bool aIgnoreSpuriousDragEvent);
nsresult GetLinkedObjects([out] nsISupportsArray **_retval);
nsresult GetIsCSSEnabled([out] PRBool *_retval);
nsresult SetIsCSSEnabled([in] PRBool prb);
nsresult GetIsCSSEnabled([out] bool *_retval);
nsresult SetIsCSSEnabled([in] bool prb);
nsresult AddInsertionListener([in] nsIContentFilter *inFilter);
nsresult RemoveInsertionListener([in] nsIContentFilter *inFilter);
nsresult CreateAnonymousElement([in] nsAString *aTag, [in] nsIDOMNode *aParentNode, [in] nsAString *aAnonClass, [in] PRBool aIsCreatedHidden, [out] nsIDOMElement **_retval);
nsresult CreateAnonymousElement([in] nsAString *aTag, [in] nsIDOMNode *aParentNode, [in] nsAString *aAnonClass, [in] bool aIsCreatedHidden, [out] nsIDOMElement **_retval);
nsresult GetSelectionContainer([out] nsIDOMElement **_retval);
nsresult CheckSelectionStateForAnonymousButtons([in] nsISelection *aSelection);
nsresult IsAnonymousElement([in] nsIDOMElement *aElement, [out] PRBool *_retval);
nsresult GetReturnInParagraphCreatesNewParagraph([out] PRBool *_retval);
nsresult SetReturnInParagraphCreatesNewParagraph([in] PRBool prb);
nsresult BreakIsVisible(nsIDOMNode *aNode, PRBool *_retval);
nsresult IsAnonymousElement([in] nsIDOMElement *aElement, [out] bool *_retval);
nsresult GetReturnInParagraphCreatesNewParagraph([out] bool *_retval);
nsresult SetReturnInParagraphCreatesNewParagraph([in] bool prb);
nsresult BreakIsVisible(nsIDOMNode *aNode, bool *_retval);
nsIContent *GetActiveEditingHost();
}
......@@ -3166,17 +3167,17 @@ interface nsIHTMLEditor : nsISupports
]
interface nsIDocShell : nsISupports
{
nsresult LoadURI(nsIURI *uri, nsIDocShellLoadInfo *loadInfo, PRUint32 aLoadFlags, PRBool firstParty);
nsresult LoadURI(nsIURI *uri, nsIDocShellLoadInfo *loadInfo, PRUint32 aLoadFlags, bool firstParty);
nsresult LoadStream(nsIInputStream *aStream, nsIURI *aURI, const nsACString *aContentType,
const nsACString *aContentCharset, nsIDocShellLoadInfo *aLoadInfo);
nsresult InternalLoad(nsIURI *aURI, nsIURI *aReferrer, nsISupports *aOwner, PRUint32 aFlags, const PRUnichar *aWindowTarget,
const char *aTypeHint, nsIInputStream *aPostDataStream, nsIInputStream *aHeadersStream, PRUint32 aLoadFlags,
nsISHEntry *aSHEntry, PRBool firstParty, nsIDocShell **aDocShell, nsIRequest **aRequest);
nsresult AddState(nsIVariant *aData, const nsAString *aTitle, const nsAString *aURL, PRBool aReplace, JSContext *cx);
nsISHEntry *aSHEntry, bool firstParty, nsIDocShell **aDocShell, nsIRequest **aRequest);
nsresult AddState(nsIVariant *aData, const nsAString *aTitle, const nsAString *aURL, bool aReplace, JSContext *cx);
nsresult CreateLoadInfo(nsIDocShellLoadInfo **loadInfo);
nsresult PrepareForNewContentModel();
nsresult SetCurrentURI(nsIURI *aURI);
nsresult FirePageHideNotification(PRBool isUnload);
nsresult FirePageHideNotification(bool isUnload);
nsresult GetPresContext(void /*nsPresContext*/ **aPresContext);
nsresult GetPresShell(nsIPresShell **aPresShell);
nsresult GetEldestPresShell(nsIPresShell **aEldestPresShell);
......@@ -3185,70 +3186,70 @@ interface nsIDocShell : nsISupports
nsresult SetChromeEventHandler(nsIDOMEventTarget *aChromeEventHandler);
nsresult GetDocumentCharsetInfo(nsIDocumentCharsetInfo **aDocumentCharsetInfo);
nsresult SetDocumentCharsetInfo(nsIDocumentCharsetInfo *aDocumentCharsetInfo);
nsresult GetAllowPlugins(PRBool *aAllowPlugins);
nsresult SetAllowPlugins(PRBool aAllowPlugins);
nsresult GetAllowJavascript(PRBool *aAllowJavascript);
nsresult SetAllowJavascript(PRBool aAllowJavascript);
nsresult GetAllowMetaRedirects(PRBool *aAllowMetaRedirects);
nsresult SetAllowMetaRedirects(PRBool aAllowMetaRedirects);
nsresult GetAllowSubframes(PRBool *aAllowSubframes);
nsresult SetAllowSubframes(PRBool aAllowSubframes);
nsresult GetAllowImages(PRBool *aAllowImages);
nsresult SetAllowImages(PRBool aAllowImages);
nsresult GetAllowDNSPrefetch(PRBool *aAllowDNSPrefetch);
nsresult SetAllowDNSPrefetch(PRBool aAllowDNSPrefetch);
nsresult GetAllowWindowControl(PRBool *aAllowWindowControl);
nsresult SetAllowWindowControl(PRBool aAllowWindowControl);
nsresult GetAllowPlugins(bool *aAllowPlugins);
nsresult SetAllowPlugins(bool aAllowPlugins);
nsresult GetAllowJavascript(bool *aAllowJavascript);
nsresult SetAllowJavascript(bool aAllowJavascript);
nsresult GetAllowMetaRedirects(bool *aAllowMetaRedirects);
nsresult SetAllowMetaRedirects(bool aAllowMetaRedirects);
nsresult GetAllowSubframes(bool *aAllowSubframes);
nsresult SetAllowSubframes(bool aAllowSubframes);
nsresult GetAllowImages(bool *aAllowImages);
nsresult SetAllowImages(bool aAllowImages);
nsresult GetAllowDNSPrefetch(bool *aAllowDNSPrefetch);
nsresult SetAllowDNSPrefetch(bool aAllowDNSPrefetch);
nsresult GetAllowWindowControl(bool *aAllowWindowControl);
nsresult SetAllowWindowControl(bool aAllowWindowControl);
nsresult GetDocShellEnumerator(PRInt32 aItemType, PRInt32 aDirection, nsISimpleEnumerator **_retval);
nsresult GetAppType(PRUint32 *aAppType);
nsresult SetAppType(PRUint32 aAppType);
nsresult GetAllowAuth(PRBool *aAllowAuth);
nsresult SetAllowAuth(PRBool aAllowAuth);
nsresult GetAllowAuth(bool *aAllowAuth);
nsresult SetAllowAuth(bool aAllowAuth);
nsresult GetZoom(float *aZoom);
nsresult SetZoom(float aZoom);
nsresult GetMarginWidth(PRInt32 *aMarginWidth);
nsresult SetMarginWidth(PRInt32 aMarginWidth);
nsresult GetMarginHeight(PRInt32 *aMarginHeight);
nsresult SetMarginHeight(PRInt32 aMarginHeight);
nsresult TabToTreeOwner(PRBool forward, PRBool *tookFocus);
nsresult TabToTreeOwner(bool forward, bool *tookFocus);
nsresult GetBusyFlags(PRUint32 *aBusyFlags);
nsresult GetLoadType(PRUint32 *aLoadType);
nsresult SetLoadType(PRUint32 aLoadType);
nsresult IsBeingDestroyed(PRBool *_retval);
nsresult GetIsExecutingOnLoadHandler(PRBool *aIsExecutingOnLoadHandler);
nsresult IsBeingDestroyed(bool *_retval);
nsresult GetIsExecutingOnLoadHandler(bool *aIsExecutingOnLoadHandler);
nsresult GetLayoutHistoryState(nsILayoutHistoryState **aLayoutHistoryState);
nsresult SetLayoutHistoryState(nsILayoutHistoryState *aLayoutHistoryState);
nsresult GetShouldSaveLayoutState(PRBool *aShouldSaveLayoutState);
nsresult GetShouldSaveLayoutState(bool *aShouldSaveLayoutState);
nsresult GetSecurityUI(nsISecureBrowserUI **aSecurityUI);
nsresult SetSecurityUI(nsISecureBrowserUI *aSecurityUI);
nsresult SuspendRefreshURIs();
nsresult ResumeRefreshURIs();
nsresult BeginRestore(nsIContentViewer *viewer, PRBool top);
nsresult BeginRestore(nsIContentViewer *viewer, bool top);
nsresult FinishRestore();
nsresult GetRestoringDocument(PRBool *aRestoringDocument);
nsresult GetUseErrorPages(PRBool *aUseErrorPages);
nsresult SetUseErrorPages(PRBool aUseErrorPages);
nsresult GetRestoringDocument(bool *aRestoringDocument);
nsresult GetUseErrorPages(bool *aUseErrorPages);
nsresult SetUseErrorPages(bool aUseErrorPages);
nsresult GetPreviousTransIndex(PRInt32 *aPreviousTransIndex);
nsresult GetLoadedTransIndex(PRInt32 *aLoadedTransIndex);
nsresult HistoryPurged(PRInt32 numEntries);
nsresult GetSessionStorageForURI(nsIURI *uri, const nsAString *documentURI, nsIDOMStorage **_retval);
nsresult GetSessionStorageForPrincipal(nsIPrincipal *principal, const nsAString *documentURI,
PRBool create, nsIDOMStorage **_retval);
bool create, nsIDOMStorage **_retval);
nsresult AddSessionStorage(nsIPrincipal *principal, nsIDOMStorage *storage);
nsresult GetCurrentDocumentChannel(nsIChannel **aCurrentDocumentChannel);
nsresult SetChildOffset(PRUint32 offset);
nsresult GetIsInUnload(PRBool *aIsInUnload);
nsresult GetChannelIsUnsafe(PRBool *aChannelIsUnsafe);
nsresult GetIsInUnload(bool *aIsInUnload);
nsresult GetChannelIsUnsafe(bool *aChannelIsUnsafe);
void DetachEditorFromWindow();
nsresult GetIsOffScreenBrowser(PRBool *aIsOffScreenBrowser);
nsresult SetIsOffScreenBrowser(PRBool aIsOffScreenBrowser);
nsresult GetIsOffScreenBrowser(bool *aIsOffScreenBrowser);
nsresult SetIsOffScreenBrowser(bool aIsOffScreenBrowser);
nsresult GetPrintPreview(nsIWebBrowserPrint **aPrintPreview);
nsresult GetCanExecuteScripts(PRBool *aCanExecuteScripts);
nsresult GetIsActive(PRBool *aIsActive);
nsresult SetIsActive(PRBool aIsActive);
nsresult GetCanExecuteScripts(bool *aCanExecuteScripts);
nsresult GetIsActive(bool *aIsActive);
nsresult SetIsActive(bool aIsActive);
nsresult GetHistoryID(PRUint64 *aHistoryID);
nsresult GetIsAppTab(PRBool *aIsAppTab);
nsresult SetIsAppTab(PRBool aIsAppTab);
nsresult GetIsAppTab(bool *aIsAppTab);
nsresult SetIsAppTab(bool aIsAppTab);
nsresult CreateAboutBlankContentViewer(nsIPrincipal *aPrincipal);
}
......@@ -3301,22 +3302,22 @@ interface nsIParser : nsISupports
nsresult ContinueInterruptedParsing();
void BlockParser();
void UnblockParser();
PRBool IsParserEnabled();
PRBool IsComplete();
bool IsParserEnabled();
bool IsComplete();
nsresult Parse(nsIURI *aURL, nsIRequestObserver *aListener, void *aKey, nsDTDMode aMode);
nsresult Parse2(const nsAString *aSourceBuffer, void *aKey, const nsACString *aMimeType, PRBool aLastCall, nsDTDMode aMode);
nsresult Parse2(const nsAString *aSourceBuffer, void *aKey, const nsACString *aMimeType, bool aLastCall, nsDTDMode aMode);
void *GetRootContextKey();
nsresult Terminate();
nsresult ParseFragment(const nsAString *aSourceBuffer, void /*nsTArray<nsString>*/ *aTagStack);
nsresult BuildModel();
nsresult CancelParsingEvents();
void Reset();
PRBool CanInterrupt();
PRBool IsInsertionPointDefined();
bool CanInterrupt();
bool IsInsertionPointDefined();
void BeginEvaluatingParserInsertedScript();
void EndEvaluatingParserInsertedScript();
void MarkAsNotScriptCreated(const char *aCommand);
PRBool IsScriptCreated();
bool IsScriptCreated();
}
[
......@@ -3338,16 +3339,16 @@ interface nsIDocumentObserver : nsIMutationObserver
void EndLoad(nsIDocument *aDocument);
void ContentStatesChanged(nsIDocument *aDocument, nsIContent *aContent, nsEventStates *aStateMask);
void DocumentStatesChanged(nsIDocument *aDocument, nsEventStates *aStateMask);
void StyleSheetAdded(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, PRBool aDocumentSheet);
void StyleSheetRemoved(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, PRBool aDocumentSheet);
void StyleSheetAdded(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, bool aDocumentSheet);
void StyleSheetRemoved(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, bool aDocumentSheet);
void StyleSheetApplicableStateChanged(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet,
PRBool aApplicable);
bool aApplicable);
void StyleRuleChanged(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aOldStyleRule,
nsIStyleRule *aNewStyleRule);
void StyleRuleAdded(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aStyleRule);
void StyleRuleRemoved(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aStyleRule);
void BindToDocument(nsIDocument *aDocument, nsIContent *aContent);
void AttemptToExecuteScript(nsIContent *aContent, nsIParser *aParser, PRBool *aBlock);
void AttemptToExecuteScript(nsIContent *aContent, nsIParser *aParser, bool *aBlock);
}
[
......@@ -3357,7 +3358,7 @@ interface nsIDocumentObserver : nsIMutationObserver
]
interface nsIContentUtils : nsISupports
{
PRBool IsSafeToRunScript();
bool IsSafeToRunScript();
nsresult AddDocumentObserver(nsIDocument *aDocument, nsIDocumentObserver *aObserver);
nsresult RemoveDocumentObserver(nsIDocument *aDocument, nsIDocumentObserver *aObserver);
nsresult AddMutationObserver(nsINode *aNode, nsIMutationObserver *aObserver);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment