Mercurial > projects > dwt-win
diff dwt/internal/mozilla/nsIContentViewer.d @ 327:b0d7eb5bd76c
Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
author | John Reimer <terminal.node@gmail.com> |
---|---|
date | Fri, 02 Jan 2009 17:45:10 -0800 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dwt/internal/mozilla/nsIContentViewer.d Fri Jan 02 17:45:10 2009 -0800 @@ -0,0 +1,74 @@ +module dwt.internal.mozilla.nsIContentViewer; + +import dwt.internal.mozilla.Common; +import dwt.internal.mozilla.nsID; +import dwt.internal.mozilla.nsISupports; + +import dwt.internal.mozilla.nsIDOMDocument; +import dwt.internal.mozilla.nsISHEntry; + +/****************************************************************************** + +******************************************************************************/ + +const char[] NS_ICONTENTVIEWER_IID_STR = "6a7ddb40-8a9e-4576-8ad1-71c5641d8780"; + +const nsIID NS_ICONTENTVIEWER_IID= + {0x6a7ddb40, 0x8a9e, 0x4576, + [ 0x8a, 0xd1, 0x71, 0xc5, 0x64, 0x1d, 0x87, 0x80 ]}; + +interface nsIContentViewer : nsISupports { + + static const char[] IID_STR = NS_ICONTENTVIEWER_IID_STR; + static const nsIID IID = NS_ICONTENTVIEWER_IID; + +extern(System): + nsresult Init(nsIWidget * aParentWidget, nsIDeviceContext * aDeviceContext, nsRect * aBounds); + nsresult GetContainer(nsISupports *aContainer); + nsresult SetContainer(nsISupports aContainer); + nsresult LoadStart(nsISupports aDoc); + nsresult LoadComplete(PRUint32 aStatus); + nsresult PermitUnload(PRBool *_retval); + nsresult PageHide(PRBool isUnload); + nsresult Close(nsISHEntry historyEntry); + nsresult Destroy(); + nsresult Stop(); + nsresult GetDOMDocument(nsIDOMDocument *aDOMDocument); + nsresult SetDOMDocument(nsIDOMDocument aDOMDocument); + nsresult GetBounds(nsRect * aBounds); + nsresult SetBounds(nsRect * aBounds); + nsresult GetPreviousViewer(nsIContentViewer *aPreviousViewer); + nsresult SetPreviousViewer(nsIContentViewer aPreviousViewer); + nsresult Move(PRInt32 aX, PRInt32 aY); + nsresult Show(); + nsresult Hide(); + nsresult GetEnableRendering(PRBool *aEnableRendering); + nsresult SetEnableRendering(PRBool aEnableRendering); + nsresult GetSticky(PRBool *aSticky); + nsresult SetSticky(PRBool aSticky); + nsresult RequestWindowClose(PRBool *_retval); + nsresult Open(nsISupports aState); + nsresult ClearHistoryEntry(); + +} + +/****************************************************************************** + +******************************************************************************/ + +const char[] NS_ICONTENTVIEWER_MOZILLA_1_8_BRANCH_IID_STR = "51341ed4-a3bf-4fd5-ae17-5fd3ec59dcab"; + +const nsIID NS_ICONTENTVIEWER_MOZILLA_1_8_BRANCH_IID= + {0x51341ed4, 0xa3bf, 0x4fd5, + [ 0xae, 0x17, 0x5f, 0xd3, 0xec, 0x59, 0xdc, 0xab ]}; + +interface nsIContentViewer_MOZILLA_1_8_BRANCH : nsISupports { + + static const char[] IID_STR = NS_ICONTENTVIEWER_MOZILLA_1_8_BRANCH_IID_STR; + static const nsIID IID = NS_ICONTENTVIEWER_MOZILLA_1_8_BRANCH_IID; + +extern(System): + nsresult OpenWithEntry(nsISupports aState, nsISHEntry aSHEntry); + +} +