Fix compilation of nsiface.idl with midl. Only pointers to interfaces are allowed in typedefs.
Also define nsISupports to IUnknown, because thats what it is and nothing else is allowed.
Please someone pass this to wine.

svn path=/branches/cmake-bringup/; revision=50702
This commit is contained in:
Timo Kreuzer 2011-02-15 13:29:05 +00:00
parent 29e5b3094b
commit 0d94103670

View file

@ -27,6 +27,7 @@ cpp_quote("#define GECKO_VERSION \"1.0.0\"")
cpp_quote("#define GECKO_VERSION_STRING \"Wine Gecko \" GECKO_VERSION") cpp_quote("#define GECKO_VERSION_STRING \"Wine Gecko \" GECKO_VERSION")
import "wtypes.idl"; import "wtypes.idl";
import "unknwn.idl";
cpp_quote("#ifdef WINE_NO_UNICODE_MACROS") cpp_quote("#ifdef WINE_NO_UNICODE_MACROS")
cpp_quote("#undef GetForm") cpp_quote("#undef GetForm")
@ -93,60 +94,50 @@ interface nsIDOMWindow;
interface IMoniker; interface IMoniker;
[ #define nsISupports IUnknown
object,
uuid(00000000-0000-0000-c000-000000000046),
local
]
interface nsISupports
{
nsresult QueryInterface(nsIIDRef riid, nsQIResult result);
nsrefcnt AddRef();
nsrefcnt Release();
}
/* Currently we don't need a full declaration of these interfaces */ /* Currently we don't need a full declaration of these interfaces */
typedef nsISupports nsISHistory; typedef nsISupports *pnsISHistory;
typedef nsISupports nsIWidget; typedef nsISupports *pnsIWidget;
typedef nsISupports nsIHttpHeaderVisitor; typedef nsISupports *pnsIHttpHeaderVisitor;
typedef nsISupports nsIDOMBarProp; typedef nsISupports *pnsIDOMBarProp;
typedef nsISupports nsIPrompt; typedef nsISupports *pnsIPrompt;
typedef nsISupports nsIAuthPrompt; typedef nsISupports *pnsIAuthPrompt;
typedef nsISupports nsIDOMNamedNodeMap; typedef nsISupports *pnsIDOMNamedNodeMap;
typedef nsISupports nsIDOMAttr; typedef nsISupports *pnsIDOMAttr;
typedef nsISupports nsIDOMDocumentType; typedef nsISupports *pnsIDOMDocumentType;
typedef nsISupports nsIDOMDOMImplementation; typedef nsISupports *pnsIDOMDOMImplementation;
typedef nsISupports nsIDOMCDATASection; typedef nsISupports *pnsIDOMCDATASection;
typedef nsISupports nsIDOMProcessingInstruction; typedef nsISupports *pnsIDOMProcessingInstruction;
typedef nsISupports nsIDOMEntityReference; typedef nsISupports *pnsIDOMEntityReference;
typedef nsISupports nsIWebProgressListener; typedef nsISupports *pnsIWebProgressListener;
typedef nsISupports nsIDOMCSSValue; typedef nsISupports *pnsIDOMCSSValue;
typedef nsISupports nsIPrintSession; typedef nsISupports *pnsIPrintSession;
typedef nsISupports nsIControllerCommandTable; typedef nsISupports *pnsIControllerCommandTable;
typedef nsISupports nsIPrincipal; typedef nsISupports *pnsIPrincipal;
typedef nsISupports nsIAtom; typedef nsISupports *pnsIAtom;
typedef nsISupports nsISupportsArray; typedef nsISupports *pnsISupportsArray;
typedef nsISupports nsIContentFilter; typedef nsISupports *pnsIContentFilter;
typedef nsISupports nsIDOMMediaList; typedef nsISupports *pnsIDOMMediaList;
typedef nsISupports nsIDOMHTMLTableCaptionElement; typedef nsISupports *pnsIDOMHTMLTableCaptionElement;
typedef nsISupports nsIDOMHTMLTableSectionElement; typedef nsISupports *pnsIDOMHTMLTableSectionElement;
typedef nsISupports nsIDOMClientRectList; typedef nsISupports *pnsIDOMClientRectList;
typedef nsISupports nsIDOMLocation; typedef nsISupports *pnsIDOMLocation;
typedef nsISupports nsIDocument; typedef nsISupports *pnsIDocument;
typedef nsISupports nsIContent; typedef nsISupports *pnsIContent;
typedef nsISupports nsINode; typedef nsISupports *pnsINode;
typedef nsISupports nsIStyleSheet; typedef nsISupports *pnsIStyleSheet;
typedef nsISupports nsIStyleRule; typedef nsISupports *pnsIStyleRule;
typedef nsISupports nsIVariant; typedef nsISupports *pnsIVariant;
typedef nsISupports nsIDOMUserDataHandler; typedef nsISupports *pnsIDOMUserDataHandler;
typedef nsISupports nsIDocShellLoadInfo; typedef nsISupports *pnsIDocShellLoadInfo;
typedef nsISupports nsISHEntry; typedef nsISupports *pnsISHEntry;
typedef nsISupports nsIPresShell; typedef nsISupports *pnsIPresShell;
typedef nsISupports nsIContentViewer; typedef nsISupports *pnsIContentViewer;
typedef nsISupports nsIDocumentCharsetInfo; typedef nsISupports *pnsIDocumentCharsetInfo;
typedef nsISupports nsILayoutHistoryState; typedef nsISupports *pnsILayoutHistoryState;
typedef nsISupports nsISecureBrowserUI; typedef nsISupports *pnsISecureBrowserUI;
typedef nsISupports nsIDOMStorage; typedef nsISupports *pnsIDOMStorage;
[ [
object, object,
@ -458,7 +449,7 @@ interface nsIHttpChannel : nsIChannel
nsresult SetReferrer(nsIURI *aReferrer); nsresult SetReferrer(nsIURI *aReferrer);
nsresult GetRequestHeader(const nsACString *aHeader, nsACString *_retval); 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, PRBool aMerge);
nsresult VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor); nsresult VisitRequestHeaders(pnsIHttpHeaderVisitor aVisitor);
nsresult GetAllowPipelining(PRBool *aAllowPipelining); nsresult GetAllowPipelining(PRBool *aAllowPipelining);
nsresult SetAllowPipelining(PRBool aAllowPipelining); nsresult SetAllowPipelining(PRBool aAllowPipelining);
nsresult GetRedirectionLimit(PRUint32 *aRedirectionLimit); nsresult GetRedirectionLimit(PRUint32 *aRedirectionLimit);
@ -468,7 +459,7 @@ interface nsIHttpChannel : nsIChannel
nsresult GetRequestSucceeded(PRBool *aRequestSucceeded); nsresult GetRequestSucceeded(PRBool *aRequestSucceeded);
nsresult GetResponseHeader(const nsACString *header, nsACString *_retval); 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, PRBool merge);
nsresult VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor); nsresult VisitResponseHeaders(pnsIHttpHeaderVisitor aVisitor);
nsresult IsNoStoreResponse(PRBool *_retval); nsresult IsNoStoreResponse(PRBool *_retval);
nsresult IsNoCacheResponse(PRBool *_retval); nsresult IsNoCacheResponse(PRBool *_retval);
} }
@ -530,7 +521,7 @@ interface nsIDOMCSSStyleDeclaration : nsISupports
nsresult GetCssText(nsAString *aCssText); nsresult GetCssText(nsAString *aCssText);
nsresult SetCssText(const nsAString *aCssText); nsresult SetCssText(const nsAString *aCssText);
nsresult GetPropertyValue(const nsAString *propertyName, nsAString *_retval); nsresult GetPropertyValue(const nsAString *propertyName, nsAString *_retval);
nsresult GetPropertyCSSValue(const nsAString *propertyName, nsIDOMCSSValue **_retval); nsresult GetPropertyCSSValue(const nsAString *propertyName, pnsIDOMCSSValue *_retval);
nsresult RemoveProperty(const nsAString *propertyName, nsAString *_retval); nsresult RemoveProperty(const nsAString *propertyName, nsAString *_retval);
nsresult GetPropertyPriority(const nsAString *propertyName, nsAString *_retval); nsresult GetPropertyPriority(const nsAString *propertyName, nsAString *_retval);
nsresult SetProperty(const nsAString *propertyName, const nsAString *value, nsresult SetProperty(const nsAString *propertyName, const nsAString *value,
@ -567,7 +558,7 @@ interface nsIDOMStyleSheet : nsISupports
nsresult GetParentStyleSheet(nsIDOMStyleSheet **aParentStyleSheet); nsresult GetParentStyleSheet(nsIDOMStyleSheet **aParentStyleSheet);
nsresult GetHref(nsAString *aHref); nsresult GetHref(nsAString *aHref);
nsresult GetTitle(nsAString *aTitle); nsresult GetTitle(nsAString *aTitle);
nsresult GetMedia(nsIDOMMediaList **aMedia); nsresult GetMedia(pnsIDOMMediaList *aMedia);
} }
[ [
@ -635,8 +626,8 @@ interface nsIDOM3Node : nsISupports
nsresult LookupNamespaceURI(const nsAString *prefix, nsAString _retval); nsresult LookupNamespaceURI(const nsAString *prefix, nsAString _retval);
nsresult IsEqualNode(nsIDOMNode *arg, PRBool *_retval); nsresult IsEqualNode(nsIDOMNode *arg, PRBool *_retval);
nsresult GetFeature(const nsAString *feature, const nsAString *version, nsISupports **_retval); nsresult GetFeature(const nsAString *feature, const nsAString *version, nsISupports **_retval);
nsresult SetUserData(const nsAString *key, nsIVariant *data, nsIDOMUserDataHandler *handler, nsIVariant **_retval); nsresult SetUserData(const nsAString *key, pnsIVariant data, pnsIDOMUserDataHandler handler, pnsIVariant *_retval);
nsresult GetUserData(const nsAString *key, nsIVariant **_retval); nsresult GetUserData(const nsAString *key, pnsIVariant *_retval);
} }
[ [
@ -672,7 +663,7 @@ interface nsIDOMNode : nsISupports
nsresult GetLastChild(nsIDOMNode **aLastChild); nsresult GetLastChild(nsIDOMNode **aLastChild);
nsresult GetPreviousSibling(nsIDOMNode **aPreviousSibling); nsresult GetPreviousSibling(nsIDOMNode **aPreviousSibling);
nsresult GetNextSibling(nsIDOMNode **aNextSibling); nsresult GetNextSibling(nsIDOMNode **aNextSibling);
nsresult GetAttributes(nsIDOMNamedNodeMap **aAttributes); nsresult GetAttributes(pnsIDOMNamedNodeMap *aAttributes);
nsresult GetOwnerDocument(nsIDOMDocument **aOwnerDocument); nsresult GetOwnerDocument(nsIDOMDocument **aOwnerDocument);
nsresult InsertBefore(nsIDOMNode *newChild, nsIDOMNode *refChild, nsIDOMNode **_retval); nsresult InsertBefore(nsIDOMNode *newChild, nsIDOMNode *refChild, nsIDOMNode **_retval);
nsresult ReplaceChild(nsIDOMNode *newChild, nsIDOMNode *oldChild, nsIDOMNode **_retval); nsresult ReplaceChild(nsIDOMNode *newChild, nsIDOMNode *oldChild, nsIDOMNode **_retval);
@ -701,9 +692,9 @@ interface nsIDOMElement : nsIDOMNode
nsresult GetAttribute(const nsAString *name, nsAString *_retval); nsresult GetAttribute(const nsAString *name, nsAString *_retval);
nsresult SetAttribute(const nsAString *name, const nsAString *value); nsresult SetAttribute(const nsAString *name, const nsAString *value);
nsresult RemoveAttribute(const nsAString *name); nsresult RemoveAttribute(const nsAString *name);
nsresult GetAttributeNode(const nsAString *name, nsIDOMAttr **_retval); nsresult GetAttributeNode(const nsAString *name, pnsIDOMAttr *_retval);
nsresult SetAttributeNode(nsIDOMAttr *newAttr, nsIDOMAttr **_retval); nsresult SetAttributeNode(pnsIDOMAttr newAttr, pnsIDOMAttr *_retval);
nsresult RemoveAttributeNode(nsIDOMAttr *oldAttr, nsIDOMAttr **_retval); nsresult RemoveAttributeNode(pnsIDOMAttr oldAttr, pnsIDOMAttr *_retval);
nsresult GetElementsByTagName(const nsAString *name, nsIDOMNodeList **_retval); nsresult GetElementsByTagName(const nsAString *name, nsIDOMNodeList **_retval);
nsresult GetAttributeNS(const nsAString *namespaceURI, const nsAString *localName, nsresult GetAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
nsAString *_retval); nsAString *_retval);
@ -711,8 +702,8 @@ interface nsIDOMElement : nsIDOMNode
const nsAString *value); const nsAString *value);
nsresult RemoveAttributeNS(const nsAString *namespaceURI, const nsAString *localName); nsresult RemoveAttributeNS(const nsAString *namespaceURI, const nsAString *localName);
nsresult GetAttributeNodeNS(const nsAString *namespaceURI, const nsAString *localName, nsresult GetAttributeNodeNS(const nsAString *namespaceURI, const nsAString *localName,
nsIDOMAttr **_retval); pnsIDOMAttr *_retval);
nsresult SetAttributeNodeNS(nsIDOMAttr *newAttr, nsIDOMAttr **_retval); nsresult SetAttributeNodeNS(pnsIDOMAttr newAttr, pnsIDOMAttr *_retval);
nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName, nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
nsIDOMNodeList **_retval); nsIDOMNodeList **_retval);
nsresult HasAttribute(const nsAString *name, PRBool *_retval); nsresult HasAttribute(const nsAString *name, PRBool *_retval);
@ -756,7 +747,7 @@ interface nsIDOMClientRect : nsISupports
interface nsIDOMNSElement : nsISupports interface nsIDOMNSElement : nsISupports
{ {
nsresult GetElementsByClassName(const nsAString *classes, nsIDOMNodeList **_retval); nsresult GetElementsByClassName(const nsAString *classes, nsIDOMNodeList **_retval);
nsresult GetClientRects(nsIDOMClientRectList **_retval); nsresult GetClientRects(pnsIDOMClientRectList *_retval);
nsresult GetBoundingClientRect(nsIDOMClientRect **_retval); nsresult GetBoundingClientRect(nsIDOMClientRect **_retval);
nsresult GetScrollTop(PRInt32 *aScrollTop); nsresult GetScrollTop(PRInt32 *aScrollTop);
nsresult SetScrollTop(PRInt32 aScrollTop); nsresult SetScrollTop(PRInt32 aScrollTop);
@ -918,24 +909,24 @@ interface nsIDOMViewCSS : nsIDOMAbstractView
] ]
interface nsIDOMDocument : nsIDOMNode interface nsIDOMDocument : nsIDOMNode
{ {
nsresult GetDoctype(nsIDOMDocumentType **aDoctype); nsresult GetDoctype(pnsIDOMDocumentType *aDoctype);
nsresult GetImplementation(nsIDOMDOMImplementation **aImplementation); nsresult GetImplementation(pnsIDOMDOMImplementation *aImplementation);
nsresult GetDocumentElement(nsIDOMElement **aDocumentElement); nsresult GetDocumentElement(nsIDOMElement **aDocumentElement);
nsresult CreateElement(const nsAString *tagName, nsIDOMElement **_retval); nsresult CreateElement(const nsAString *tagName, nsIDOMElement **_retval);
nsresult CreateDocumentFragment(nsIDOMDocumentFragment **_retval); nsresult CreateDocumentFragment(nsIDOMDocumentFragment **_retval);
nsresult CreateTextNode(const nsAString *data, nsIDOMText **_retval); nsresult CreateTextNode(const nsAString *data, nsIDOMText **_retval);
nsresult CreateComment(const nsAString *data, nsIDOMComment **_retval); nsresult CreateComment(const nsAString *data, nsIDOMComment **_retval);
nsresult CreateCDATASection(const nsAString *data, nsIDOMCDATASection **_retval); nsresult CreateCDATASection(const nsAString *data, pnsIDOMCDATASection *_retval);
nsresult CreateProcessingInstruction(const nsAString *target, const nsAString *data, nsresult CreateProcessingInstruction(const nsAString *target, const nsAString *data,
nsIDOMProcessingInstruction **_retval); pnsIDOMProcessingInstruction *_retval);
nsresult CreateAttribute(const nsAString *name, nsIDOMAttr **_retval); nsresult CreateAttribute(const nsAString *name, pnsIDOMAttr *_retval);
nsresult CreateEntityReference(const nsAString *name, nsIDOMEntityReference **_retval); nsresult CreateEntityReference(const nsAString *name, pnsIDOMEntityReference *_retval);
nsresult GetElementsByTagName(const nsAString *tagname, nsIDOMNodeList **_retval); nsresult GetElementsByTagName(const nsAString *tagname, nsIDOMNodeList **_retval);
nsresult ImportNode(nsIDOMNode *importedNode, PRBool deep, nsIDOMNode **_retval); nsresult ImportNode(nsIDOMNode *importedNode, PRBool deep, nsIDOMNode **_retval);
nsresult CreateElementNS(const nsAString *namespaceURI, const nsAString *qualifiedName, nsresult CreateElementNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
nsIDOMElement **_retval); nsIDOMElement **_retval);
nsresult CreateAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName, nsresult CreateAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
nsIDOMAttr **_retval); pnsIDOMAttr *_retval);
nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName, nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
nsIDOMNodeList **_retval); nsIDOMNodeList **_retval);
nsresult GetElementById(const nsAString *elementId, nsIDOMElement **_retval); nsresult GetElementById(const nsAString *elementId, nsIDOMElement **_retval);
@ -952,7 +943,7 @@ interface nsIDOMNSDocument : nsISupports
nsresult GetCharacterSet(nsAString *aCharacterSet); nsresult GetCharacterSet(nsAString *aCharacterSet);
nsresult GetDir(nsAString *aDir); nsresult GetDir(nsAString *aDir);
nsresult SetDir(const nsAString *aDir); nsresult SetDir(const nsAString *aDir);
nsresult GetLocation(nsIDOMLocation **aLocation); nsresult GetLocation(pnsIDOMLocation *aLocation);
nsresult GetTitle(nsAString *aTitle); nsresult GetTitle(nsAString *aTitle);
nsresult SetTitle(const nsAString *aTitle); nsresult SetTitle(const nsAString *aTitle);
nsresult GetContentType(nsAString *aContentType); nsresult GetContentType(nsAString *aContentType);
@ -1197,7 +1188,7 @@ interface nsIDOMWindow : nsISupports
nsresult GetDocument(nsIDOMDocument **aDocument); nsresult GetDocument(nsIDOMDocument **aDocument);
nsresult GetParent(nsIDOMWindow **aParent); nsresult GetParent(nsIDOMWindow **aParent);
nsresult GetTop(nsIDOMWindow **aTop); nsresult GetTop(nsIDOMWindow **aTop);
nsresult GetScrollbars(nsIDOMBarProp **aScrollbars); nsresult GetScrollbars(pnsIDOMBarProp *aScrollbars);
nsresult GetFrames(nsIDOMWindowCollection **aFrames); nsresult GetFrames(nsIDOMWindowCollection **aFrames);
nsresult GetName(nsAString *aName); nsresult GetName(nsAString *aName);
nsresult SetName(const nsAString *aName); nsresult SetName(const nsAString *aName);
@ -1515,12 +1506,12 @@ interface nsIDOMHTMLAnchorElement : nsIDOMHTMLElement
] ]
interface nsIDOMHTMLTableElement : nsIDOMHTMLElement interface nsIDOMHTMLTableElement : nsIDOMHTMLElement
{ {
nsresult GetCaption(nsIDOMHTMLTableCaptionElement **aCaption); nsresult GetCaption(pnsIDOMHTMLTableCaptionElement *aCaption);
nsresult SetCaption(nsIDOMHTMLTableCaptionElement *aCaption); nsresult SetCaption(pnsIDOMHTMLTableCaptionElement aCaption);
nsresult GetTHead(nsIDOMHTMLTableSectionElement **aTHead); nsresult GetTHead(pnsIDOMHTMLTableSectionElement *aTHead);
nsresult SetTHead(nsIDOMHTMLTableSectionElement *aTHead); nsresult SetTHead(pnsIDOMHTMLTableSectionElement aTHead);
nsresult GetTFoot(nsIDOMHTMLTableSectionElement **aTFoot); nsresult GetTFoot(pnsIDOMHTMLTableSectionElement *aTFoot);
nsresult SetTFoot(nsIDOMHTMLTableSectionElement *aTFoot); nsresult SetTFoot(pnsIDOMHTMLTableSectionElement aTFoot);
nsresult GetRows(nsIDOMHTMLCollection **aRows); nsresult GetRows(nsIDOMHTMLCollection **aRows);
nsresult GetTBodies(nsIDOMHTMLCollection **aTBodies); nsresult GetTBodies(nsIDOMHTMLCollection **aTBodies);
nsresult GetAlign(nsAString *aAlign); nsresult GetAlign(nsAString *aAlign);
@ -1707,7 +1698,7 @@ typedef void* nativeWindow;
] ]
interface nsIBaseWindow : nsISupports interface nsIBaseWindow : nsISupports
{ {
nsresult InitWindow(nativeWindow parentNativeWindow, nsIWidget *parentWidget, PRInt32 x, nsresult InitWindow(nativeWindow parentNativeWindow, pnsIWidget parentWidget, PRInt32 x,
PRInt32 y, PRInt32 cx, PRInt32 cy); PRInt32 y, PRInt32 cx, PRInt32 cy);
nsresult Create(); nsresult Create();
nsresult Destroy(); nsresult Destroy();
@ -1718,8 +1709,8 @@ interface nsIBaseWindow : nsISupports
nsresult SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, PRBool fRepaint); nsresult SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, PRBool fRepaint);
nsresult GetPositionAndSize(PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy); nsresult GetPositionAndSize(PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
nsresult Repaint(PRBool force); nsresult Repaint(PRBool force);
nsresult GetParentWidget(nsIWidget **aParentWidget); nsresult GetParentWidget(pnsIWidget *aParentWidget);
nsresult SetParentWidget(nsIWidget *aParentWidget); nsresult SetParentWidget(pnsIWidget aParentWidget);
nsresult GetParentNativeWindow(nativeWindow *aParentNativeWindow); nsresult GetParentNativeWindow(nativeWindow *aParentNativeWindow);
nsresult SetParentNativeWindow(nativeWindow aParentNativeWindow); nsresult SetParentNativeWindow(nativeWindow aParentNativeWindow);
nsresult GetVisibility(PRBool *aVisibility); nsresult GetVisibility(PRBool *aVisibility);
@ -1728,7 +1719,7 @@ interface nsIBaseWindow : nsISupports
nsresult SetEnabled(PRBool aEnabled); nsresult SetEnabled(PRBool aEnabled);
nsresult GetBlurSuppression(PRBool *aBlurSuppression); nsresult GetBlurSuppression(PRBool *aBlurSuppression);
nsresult SetBlurSuppression(PRBool aBlurSuppression); nsresult SetBlurSuppression(PRBool aBlurSuppression);
nsresult GetMainWidget(nsIWidget **aMainWidget); nsresult GetMainWidget(pnsIWidget *aMainWidget);
nsresult SetFocus(); nsresult SetFocus();
nsresult GetTitle(PRUnichar **aTitle); nsresult GetTitle(PRUnichar **aTitle);
nsresult SetTitle(const PRUnichar *aTitle); nsresult SetTitle(const PRUnichar *aTitle);
@ -1757,8 +1748,8 @@ interface nsIWebNavigation : nsISupports
nsresult GetDocument(nsIDOMDocument **aDocument); nsresult GetDocument(nsIDOMDocument **aDocument);
nsresult GetCurrentURI(nsIURI **aCurrentURI); nsresult GetCurrentURI(nsIURI **aCurrentURI);
nsresult GetReferringURI(nsIURI **aReferringURI); nsresult GetReferringURI(nsIURI **aReferringURI);
nsresult GetSessionHistory(nsISHistory **aSessionHistory); nsresult GetSessionHistory(pnsISHistory *aSessionHistory);
nsresult SetSessionHistory(nsISHistory *aSessionHistory); nsresult SetSessionHistory(pnsISHistory aSessionHistory);
} }
[ [
@ -1769,8 +1760,8 @@ interface nsIWebNavigation : nsISupports
] ]
interface nsIWebProgress : nsISupports interface nsIWebProgress : nsISupports
{ {
nsresult AddProgressListener(nsIWebProgressListener *aListener, PRUint32 aNotifyMask); nsresult AddProgressListener(pnsIWebProgressListener aListener, PRUint32 aNotifyMask);
nsresult RemoveProgressListener(nsIWebProgressListener *aListener); nsresult RemoveProgressListener(pnsIWebProgressListener aListener);
nsresult GetDOMWindow(nsIDOMWindow **aDOMWindow); nsresult GetDOMWindow(nsIDOMWindow **aDOMWindow);
nsresult GetIsLoadingDocument(PRBool *aIsLoadingDocument); nsresult GetIsLoadingDocument(PRBool *aIsLoadingDocument);
} }
@ -1791,8 +1782,8 @@ interface nsIPrintSettings : nsISupports
nsresult GetEffectivePageSize(double *aWidth, double *aHeight); nsresult GetEffectivePageSize(double *aWidth, double *aHeight);
nsresult Clone(nsIPrintSettings **_retval); nsresult Clone(nsIPrintSettings **_retval);
nsresult Assign(nsIPrintSettings *aPS); nsresult Assign(nsIPrintSettings *aPS);
nsresult GetPrintSession(nsIPrintSession **aPrintSession); nsresult GetPrintSession(pnsIPrintSession *aPrintSession);
nsresult SetPrintSession(nsIPrintSession *aPrintSession); nsresult SetPrintSession(pnsIPrintSession aPrintSession);
nsresult GetStartPageRange(PRInt32 *aStartPageRange); nsresult GetStartPageRange(PRInt32 *aStartPageRange);
nsresult SetStartPageRange(PRInt32 aStartPageRange); nsresult SetStartPageRange(PRInt32 aStartPageRange);
nsresult GetEndPageRange(PRInt32 *aEndPageRange); nsresult GetEndPageRange(PRInt32 *aEndPageRange);
@ -1930,9 +1921,9 @@ interface nsIWebBrowserPrint : nsISupports
nsresult GetIsIFrameSelected(PRBool *aIsIFrameSelected); nsresult GetIsIFrameSelected(PRBool *aIsIFrameSelected);
nsresult GetIsRangeSelection(PRBool *aIsRangeSelection); nsresult GetIsRangeSelection(PRBool *aIsRangeSelection);
nsresult GetPrintPreviewNumPages(PRInt32 *aPrintPreviewNumPages); nsresult GetPrintPreviewNumPages(PRInt32 *aPrintPreviewNumPages);
nsresult Print(nsIPrintSettings *aThePrintSettings, nsIWebProgressListener *aWPListener); nsresult Print(nsIPrintSettings *aThePrintSettings, pnsIWebProgressListener aWPListener);
nsresult PrintPreview(nsIPrintSettings *aThePrintSettings, nsIDOMWindow *aChildDOMWin, nsresult PrintPreview(nsIPrintSettings *aThePrintSettings, nsIDOMWindow *aChildDOMWin,
nsIWebProgressListener *aWPListener); pnsIWebProgressListener aWPListener);
nsresult PrintPreviewNavigate(PRInt16 aNavType, PRInt32 aPageNum); nsresult PrintPreviewNavigate(PRInt16 aNavType, PRInt32 aPageNum);
nsresult Cancel(); nsresult Cancel();
nsresult EnumerateDocumentNames(PRUint32 *aCount, PRUnichar ***aResult); nsresult EnumerateDocumentNames(PRUint32 *aCount, PRUnichar ***aResult);
@ -2430,8 +2421,8 @@ interface nsIWindowWatcher : nsISupports
nsresult RegisterNotification(nsIObserver *aObserver); nsresult RegisterNotification(nsIObserver *aObserver);
nsresult UnregisterNotification(nsIObserver *aObserver); nsresult UnregisterNotification(nsIObserver *aObserver);
nsresult GetWindowEnumerator(nsISimpleEnumerator **_retval); nsresult GetWindowEnumerator(nsISimpleEnumerator **_retval);
nsresult GetNewPrompter(nsIDOMWindow *aParent, nsIPrompt **_retval); nsresult GetNewPrompter(nsIDOMWindow *aParent, pnsIPrompt *_retval);
nsresult GetNewAuthPrompter(nsIDOMWindow *aParent, nsIAuthPrompt **_retval); nsresult GetNewAuthPrompter(nsIDOMWindow *aParent, pnsIAuthPrompt *_retval);
nsresult SetWindowCreator(nsIWindowCreator *creator); nsresult SetWindowCreator(nsIWindowCreator *creator);
nsresult GetChromeForWindow(nsIDOMWindow *aWindow, nsIWebBrowserChrome **_retval); nsresult GetChromeForWindow(nsIDOMWindow *aWindow, nsIWebBrowserChrome **_retval);
nsresult GetWindowByName(const PRUnichar *aTargetName, nsIDOMWindow *aCurrentWindow, nsresult GetWindowByName(const PRUnichar *aTargetName, nsIDOMWindow *aCurrentWindow,
@ -2515,7 +2506,7 @@ interface nsICommandManager : nsISupports
] ]
interface nsIControllerContext : nsISupports interface nsIControllerContext : nsISupports
{ {
nsresult Init(nsIControllerCommandTable *aCommandTable); nsresult Init(pnsIControllerCommandTable aCommandTable);
nsresult SetCommandContext(nsISupports *aCommandContext); nsresult SetCommandContext(nsISupports *aCommandContext);
} }
@ -2544,13 +2535,13 @@ interface nsIContentSerializer : nsISupports
nsresult Init(PRUint32 flags, PRUint32 aWrapColumn, const char* aCharSet, PRBool aIsCopying, nsresult Init(PRUint32 flags, PRUint32 aWrapColumn, const char* aCharSet, PRBool aIsCopying,
PRBool aIsWholeDocument); PRBool aIsWholeDocument);
nsresult AppendText(nsIDOMText *aText, PRInt32 aStartOffset, PRInt32 aEndOffset, nsAString *aStr); nsresult AppendText(nsIDOMText *aText, PRInt32 aStartOffset, PRInt32 aEndOffset, nsAString *aStr);
nsresult AppendCDATASection(nsIDOMCDATASection *aCDATASection, PRInt32 aStartOffset, nsresult AppendCDATASection(pnsIDOMCDATASection aCDATASection, PRInt32 aStartOffset,
PRInt32 aEndOffset, nsAString *aStr); PRInt32 aEndOffset, nsAString *aStr);
nsresult AppendProcessingInstruction(nsIDOMProcessingInstruction* aPI, PRInt32 aStartOffset, nsresult AppendProcessingInstruction(pnsIDOMProcessingInstruction aPI, PRInt32 aStartOffset,
PRInt32 aEndOffset, nsAString *aStr); PRInt32 aEndOffset, nsAString *aStr);
nsresult AppendComment(nsIDOMComment *aComment, PRInt32 aStartOffset, PRInt32 aEndOffset, nsresult AppendComment(nsIDOMComment *aComment, PRInt32 aStartOffset, PRInt32 aEndOffset,
nsAString *aStr); nsAString *aStr);
nsresult AppendDoctype(nsIDOMDocumentType *aDoctype, nsAString *aStr); nsresult AppendDoctype(pnsIDOMDocumentType aDoctype, nsAString *aStr);
nsresult AppendElementStart(nsIDOMElement *aElement, nsIDOMElement *aOriginalElement, nsresult AppendElementStart(nsIDOMElement *aElement, nsIDOMElement *aOriginalElement,
nsAString *aStr); nsAString *aStr);
nsresult AppendElementEnd(nsIDOMElement *aElement, nsAString *aStr); nsresult AppendElementEnd(nsIDOMElement *aElement, nsAString *aStr);
@ -2601,7 +2592,7 @@ interface nsIEditor : nsISupports
nsresult CanRedo([out] PRBool *isEnabled, [out] PRBool *canRedo); nsresult CanRedo([out] PRBool *isEnabled, [out] PRBool *canRedo);
nsresult BeginTransaction(); nsresult BeginTransaction();
nsresult EndTransaction(); nsresult EndTransaction();
nsresult BeginPlaceHolderTransaction([in] nsIAtom *name); nsresult BeginPlaceHolderTransaction([in] pnsIAtom name);
nsresult EndPlaceHolderTransaction(); nsresult EndPlaceHolderTransaction();
nsresult ShouldTxnSetSelection([out] PRBool *_retval); nsresult ShouldTxnSetSelection([out] PRBool *_retval);
nsresult SetShouldTxnSetSelection([in] PRBool should); nsresult SetShouldTxnSetSelection([in] PRBool should);
@ -2654,15 +2645,15 @@ interface nsIEditor : nsISupports
] ]
interface nsIHTMLEditor : nsISupports interface nsIHTMLEditor : nsISupports
{ {
nsresult AddDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue); nsresult AddDefaultProperty([in] pnsIAtom aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
nsresult RemoveDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue); nsresult RemoveDefaultProperty([in] pnsIAtom aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
nsresult RemoveAllDefaultProperties(); nsresult RemoveAllDefaultProperties();
nsresult SetCSSInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue); nsresult SetCSSInlineProperty([in] pnsIAtom aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
nsresult SetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue); nsresult SetInlineProperty([in] pnsIAtom 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 GetInlineProperty([in] pnsIAtom 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 GetInlinePropertyWithAttrValue([in] pnsIAtom aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] PRBool *aFirst, [out] PRBool *aAny, [out] PRBool *aAll, [out] nsAString *_retval);
nsresult RemoveAllInlineProperties(); nsresult RemoveAllInlineProperties();
nsresult RemoveInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute); nsresult RemoveInlineProperty([in] pnsIAtom aProperty, [in] nsAString *aAttribute);
nsresult IncreaseFontSize(); nsresult IncreaseFontSize();
nsresult DecreaseFontSize(); nsresult DecreaseFontSize();
nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] PRBool *_retval); nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] PRBool *_retval);
@ -2701,11 +2692,11 @@ interface nsIHTMLEditor : nsISupports
nsresult SetBackgroundColor([in] nsAString *aColor); nsresult SetBackgroundColor([in] nsAString *aColor);
nsresult SetBodyAttribute([in] nsAString *aAttr, [in] nsAString *aValue); nsresult SetBodyAttribute([in] nsAString *aAttr, [in] nsAString *aValue);
nsresult IgnoreSpuriousDragEvent([in] PRBool aIgnoreSpuriousDragEvent); nsresult IgnoreSpuriousDragEvent([in] PRBool aIgnoreSpuriousDragEvent);
nsresult GetLinkedObjects([out] nsISupportsArray **_retval); nsresult GetLinkedObjects([out] pnsISupportsArray *_retval);
nsresult GetIsCSSEnabled([out] PRBool *_retval); nsresult GetIsCSSEnabled([out] PRBool *_retval);
nsresult SetIsCSSEnabled([in] PRBool prb); nsresult SetIsCSSEnabled([in] PRBool prb);
nsresult AddInsertionListener([in] nsIContentFilter *inFilter); nsresult AddInsertionListener([in] pnsIContentFilter inFilter);
nsresult RemoveInsertionListener([in] nsIContentFilter *inFilter); nsresult RemoveInsertionListener([in] pnsIContentFilter 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] PRBool aIsCreatedHidden, [out] nsIDOMElement **_retval);
nsresult GetSelectionContainer([out] nsIDOMElement **_retval); nsresult GetSelectionContainer([out] nsIDOMElement **_retval);
nsresult CheckSelectionStateForAnonymousButtons([in] nsISelection *aSelection); nsresult CheckSelectionStateForAnonymousButtons([in] nsISelection *aSelection);
@ -2722,24 +2713,24 @@ interface nsIHTMLEditor : nsISupports
] ]
interface nsIDocShell : nsISupports interface nsIDocShell : nsISupports
{ {
nsresult LoadURI(nsIURI *uri, nsIDocShellLoadInfo *loadInfo, PRUint32 aLoadFlags, PRBool firstParty); nsresult LoadURI(nsIURI *uri, pnsIDocShellLoadInfo loadInfo, PRUint32 aLoadFlags, PRBool firstParty);
nsresult LoadStream(nsIInputStream *aStream, nsIURI *aURI, const nsACString *aContentType, nsresult LoadStream(nsIInputStream *aStream, nsIURI *aURI, const nsACString *aContentType,
const nsACString *aContentCharset, nsIDocShellLoadInfo *aLoadInfo); const nsACString *aContentCharset, pnsIDocShellLoadInfo aLoadInfo);
nsresult InternalLoad(nsIURI *aURI, nsIURI *aReferrer, nsISupports *aOwner, PRUint32 aFlags, const PRUnichar *aWindowTarget, nsresult InternalLoad(nsIURI *aURI, nsIURI *aReferrer, nsISupports *aOwner, PRUint32 aFlags, const PRUnichar *aWindowTarget,
const char *aTypeHint, nsIInputStream *aPostDataStream, nsIInputStream *aHeadersStream, PRUint32 aLoadFlags, const char *aTypeHint, nsIInputStream *aPostDataStream, nsIInputStream *aHeadersStream, PRUint32 aLoadFlags,
nsISHEntry *aSHEntry, PRBool firstParty, nsIDocShell **aDocShell, nsIRequest **aRequest); pnsISHEntry aSHEntry, PRBool firstParty, nsIDocShell **aDocShell, nsIRequest **aRequest);
nsresult CreateLoadInfo(nsIDocShellLoadInfo **loadInfo); nsresult CreateLoadInfo(pnsIDocShellLoadInfo *loadInfo);
nsresult PrepareForNewContentModel(); nsresult PrepareForNewContentModel();
nsresult SetCurrentURI(nsIURI *aURI); nsresult SetCurrentURI(nsIURI *aURI);
nsresult FirePageHideNotification(PRBool isUnload); nsresult FirePageHideNotification(PRBool isUnload);
nsresult GetPresContext(void /*nsPresContext*/ **aPresContext); nsresult GetPresContext(void /*nsPresContext*/ **aPresContext);
nsresult GetPresShell(nsIPresShell **aPresShell); nsresult GetPresShell(pnsIPresShell *aPresShell);
nsresult GetEldestPresShell(nsIPresShell **aEldestPresShell); nsresult GetEldestPresShell(pnsIPresShell *aEldestPresShell);
nsresult GetContentViewer(nsIContentViewer **aContentViewer); nsresult GetContentViewer(pnsIContentViewer *aContentViewer);
nsresult GetChromeEventHandler(nsIDOMEventTarget **aChromeEventHandler); nsresult GetChromeEventHandler(nsIDOMEventTarget **aChromeEventHandler);
nsresult SetChromeEventHandler(nsIDOMEventTarget *aChromeEventHandler); nsresult SetChromeEventHandler(nsIDOMEventTarget *aChromeEventHandler);
nsresult GetDocumentCharsetInfo(nsIDocumentCharsetInfo **aDocumentCharsetInfo); nsresult GetDocumentCharsetInfo(pnsIDocumentCharsetInfo *aDocumentCharsetInfo);
nsresult SetDocumentCharsetInfo(nsIDocumentCharsetInfo *aDocumentCharsetInfo); nsresult SetDocumentCharsetInfo(pnsIDocumentCharsetInfo aDocumentCharsetInfo);
nsresult GetAllowPlugins(PRBool *aAllowPlugins); nsresult GetAllowPlugins(PRBool *aAllowPlugins);
nsresult SetAllowPlugins(PRBool aAllowPlugins); nsresult SetAllowPlugins(PRBool aAllowPlugins);
nsresult GetAllowJavascript(PRBool *aAllowJavascript); nsresult GetAllowJavascript(PRBool *aAllowJavascript);
@ -2769,14 +2760,14 @@ interface nsIDocShell : nsISupports
nsresult SetLoadType(PRUint32 aLoadType); nsresult SetLoadType(PRUint32 aLoadType);
nsresult IsBeingDestroyed(PRBool *_retval); nsresult IsBeingDestroyed(PRBool *_retval);
nsresult GetIsExecutingOnLoadHandler(PRBool *aIsExecutingOnLoadHandler); nsresult GetIsExecutingOnLoadHandler(PRBool *aIsExecutingOnLoadHandler);
nsresult GetLayoutHistoryState(nsILayoutHistoryState **aLayoutHistoryState); nsresult GetLayoutHistoryState(pnsILayoutHistoryState *aLayoutHistoryState);
nsresult SetLayoutHistoryState(nsILayoutHistoryState *aLayoutHistoryState); nsresult SetLayoutHistoryState(pnsILayoutHistoryState aLayoutHistoryState);
nsresult GetShouldSaveLayoutState(PRBool *aShouldSaveLayoutState); nsresult GetShouldSaveLayoutState(PRBool *aShouldSaveLayoutState);
nsresult GetSecurityUI(nsISecureBrowserUI **aSecurityUI); nsresult GetSecurityUI(pnsISecureBrowserUI *aSecurityUI);
nsresult SetSecurityUI(nsISecureBrowserUI *aSecurityUI); nsresult SetSecurityUI(pnsISecureBrowserUI aSecurityUI);
nsresult SuspendRefreshURIs(); nsresult SuspendRefreshURIs();
nsresult ResumeRefreshURIs(); nsresult ResumeRefreshURIs();
nsresult BeginRestore(nsIContentViewer *viewer, PRBool top); nsresult BeginRestore(pnsIContentViewer viewer, PRBool top);
nsresult FinishRestore(); nsresult FinishRestore();
nsresult GetRestoringDocument(PRBool *aRestoringDocument); nsresult GetRestoringDocument(PRBool *aRestoringDocument);
nsresult GetUseErrorPages(PRBool *aUseErrorPages); nsresult GetUseErrorPages(PRBool *aUseErrorPages);
@ -2784,9 +2775,9 @@ interface nsIDocShell : nsISupports
nsresult GetPreviousTransIndex(PRInt32 *aPreviousTransIndex); nsresult GetPreviousTransIndex(PRInt32 *aPreviousTransIndex);
nsresult GetLoadedTransIndex(PRInt32 *aLoadedTransIndex); nsresult GetLoadedTransIndex(PRInt32 *aLoadedTransIndex);
nsresult HistoryPurged(PRInt32 numEntries); nsresult HistoryPurged(PRInt32 numEntries);
nsresult GetSessionStorageForURI(nsIURI *uri, nsIDOMStorage **_retval); nsresult GetSessionStorageForURI(nsIURI *uri, pnsIDOMStorage *_retval);
nsresult GetSessionStorageForPrincipal(nsIPrincipal *principal, PRBool create, nsIDOMStorage **_retval); nsresult GetSessionStorageForPrincipal(pnsIPrincipal principal, PRBool create, pnsIDOMStorage *_retval);
nsresult AddSessionStorage(nsIPrincipal *principal, nsIDOMStorage *storage); nsresult AddSessionStorage(pnsIPrincipal principal, pnsIDOMStorage storage);
nsresult GetCurrentDocumentChannel(nsIChannel **aCurrentDocumentChannel); nsresult GetCurrentDocumentChannel(nsIChannel **aCurrentDocumentChannel);
nsresult SetChildOffset(PRUint32 offset); nsresult SetChildOffset(PRUint32 offset);
nsresult GetIsInUnload(PRBool *aIsInUnload); nsresult GetIsInUnload(PRBool *aIsInUnload);
@ -2804,21 +2795,21 @@ interface nsIDocShell : nsISupports
] ]
interface nsIMutationObserver : nsISupports interface nsIMutationObserver : nsISupports
{ {
void CharacterDataWillChange(nsIDocument *aDocument, nsIContent *aContent, void CharacterDataWillChange(pnsIDocument aDocument, pnsIContent aContent,
void /*CharacterDataChangeInfo*/ *aInfo); void /*CharacterDataChangeInfo*/ *aInfo);
void CharacterDataChanged(nsIDocument *aDocument, nsIContent *aContent, void CharacterDataChanged(pnsIDocument aDocument, pnsIContent aContent,
void /*CharacterDataChangeInfo*/ *aInfo); void /*CharacterDataChangeInfo*/ *aInfo);
void AttributeWillChange(nsIDocument *aDocument, nsIContent * aContent, PRInt32 aNameSpaceID, void AttributeWillChange(pnsIDocument aDocument, pnsIContent aContent, PRInt32 aNameSpaceID,
nsIAtom *aAttribute, PRInt32 aModType); pnsIAtom aAttribute, PRInt32 aModType);
void AttributeChanged(nsIDocument *aDocument, nsIContent *aContent, PRInt32 aNameSpaceID, void AttributeChanged(pnsIDocument aDocument, pnsIContent aContent, PRInt32 aNameSpaceID,
nsIAtom *aAttribute, PRInt32 aModType, PRUint32 aStateMask); pnsIAtom aAttribute, PRInt32 aModType, PRUint32 aStateMask);
void ContentAppended(nsIDocument *aDocument, nsIContent *aContainer, PRInt32 aNewIndexInContainer); void ContentAppended(pnsIDocument aDocument, pnsIContent aContainer, PRInt32 aNewIndexInContainer);
void ContentInserted(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild, void ContentInserted(pnsIDocument aDocument, pnsIContent aContainer, pnsIContent aChild,
PRInt32 aIndexInContainer); PRInt32 aIndexInContainer);
void ContentRemoved(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild, void ContentRemoved(pnsIDocument aDocument, pnsIContent aContainer, pnsIContent aChild,
PRInt32 aIndexInContainer); PRInt32 aIndexInContainer);
void NodeWillBeDestroyed(const nsINode *aNode); void NodeWillBeDestroyed(const pnsINode aNode);
void ParentChainChanged(nsIContent *aContent); void ParentChainChanged(pnsIContent aContent);
} }
[ [
@ -2831,20 +2822,20 @@ interface nsIDocumentObserver : nsIMutationObserver
{ {
typedef int nsUpdateType; typedef int nsUpdateType;
void BeginUpdate(nsIDocument *aDocument, nsUpdateType aUpdateType); void BeginUpdate(pnsIDocument aDocument, nsUpdateType aUpdateType);
void EndUpdate(nsIDocument *aDocument, nsUpdateType aUpdateType); void EndUpdate(pnsIDocument aDocument, nsUpdateType aUpdateType);
void BeginLoad(nsIDocument *aDocument); void BeginLoad(pnsIDocument aDocument);
void EndLoad(nsIDocument *aDocument); void EndLoad(pnsIDocument aDocument);
void ContentStatesChanged(nsIDocument *aDocument, nsIContent *aContent1, nsIContent *aContent2, void ContentStatesChanged(pnsIDocument aDocument, pnsIContent aContent1, pnsIContent aContent2,
PRInt32 aStateMask); PRInt32 aStateMask);
void StyleSheetAdded(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, PRBool aDocumentSheet); void StyleSheetAdded(pnsIDocument aDocument, pnsIStyleSheet aStyleSheet, PRBool aDocumentSheet);
void StyleSheetRemoved(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, PRBool aDocumentSheet); void StyleSheetRemoved(pnsIDocument aDocument, pnsIStyleSheet aStyleSheet, PRBool aDocumentSheet);
void StyleSheetApplicableStateChanged(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, void StyleSheetApplicableStateChanged(pnsIDocument aDocument, pnsIStyleSheet aStyleSheet,
PRBool aApplicable); PRBool aApplicable);
void StyleRuleChanged(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aOldStyleRule, void StyleRuleChanged(pnsIDocument aDocument, pnsIStyleSheet aStyleSheet, pnsIStyleRule aOldStyleRule,
nsIStyleRule *aNewStyleRule); pnsIStyleRule aNewStyleRule);
void StyleRuleAdded(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aStyleRule); void StyleRuleAdded(pnsIDocument aDocument, pnsIStyleSheet aStyleSheet, pnsIStyleRule aStyleRule);
void StyleRuleRemoved(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aStyleRule); void StyleRuleRemoved(pnsIDocument aDocument, pnsIStyleSheet aStyleSheet, pnsIStyleRule aStyleRule);
void BindToDocument(nsIDocument *aDocument, nsIContent *aContent); void BindToDocument(pnsIDocument aDocument, pnsIContent aContent);
void DoneAddingChildren(nsIContent *aContent, PRBool aHaveNotified); void DoneAddingChildren(pnsIContent aContent, PRBool aHaveNotified);
} }