1 module org.eclipse.swt.internal.mozilla.nsIContentViewer; 2 3 import java.lang.all; 4 5 import org.eclipse.swt.internal.mozilla.Common; 6 import org.eclipse.swt.internal.mozilla.nsID; 7 import org.eclipse.swt.internal.mozilla.nsISupports; 8 9 import org.eclipse.swt.internal.mozilla.nsIDOMDocument; 10 import org.eclipse.swt.internal.mozilla.nsISHEntry; 11 12 /****************************************************************************** 13 14 ******************************************************************************/ 15 16 const char[] NS_ICONTENTVIEWER_IID_STR = "6a7ddb40-8a9e-4576-8ad1-71c5641d8780"; 17 18 const nsIID NS_ICONTENTVIEWER_IID= 19 {0x6a7ddb40, 0x8a9e, 0x4576, 20 [ 0x8a, 0xd1, 0x71, 0xc5, 0x64, 0x1d, 0x87, 0x80 ]}; 21 22 interface nsIContentViewer : nsISupports { 23 24 static const char[] IID_STR = NS_ICONTENTVIEWER_IID_STR; 25 static const nsIID IID = NS_ICONTENTVIEWER_IID; 26 27 extern(System): 28 nsresult Init(nsIWidget * aParentWidget, nsIDeviceContext * aDeviceContext, nsRect * aBounds); 29 nsresult GetContainer(nsISupports *aContainer); 30 nsresult SetContainer(nsISupports aContainer); 31 nsresult LoadStart(nsISupports aDoc); 32 nsresult LoadComplete(PRUint32 aStatus); 33 nsresult PermitUnload(PRBool *_retval); 34 nsresult PageHide(PRBool isUnload); 35 nsresult Close(nsISHEntry historyEntry); 36 nsresult Destroy(); 37 nsresult Stop(); 38 nsresult GetDOMDocument(nsIDOMDocument *aDOMDocument); 39 nsresult SetDOMDocument(nsIDOMDocument aDOMDocument); 40 nsresult GetBounds(nsRect * aBounds); 41 nsresult SetBounds(nsRect * aBounds); 42 nsresult GetPreviousViewer(nsIContentViewer *aPreviousViewer); 43 nsresult SetPreviousViewer(nsIContentViewer aPreviousViewer); 44 nsresult Move(PRInt32 aX, PRInt32 aY); 45 nsresult Show(); 46 nsresult Hide(); 47 nsresult GetEnableRendering(PRBool *aEnableRendering); 48 nsresult SetEnableRendering(PRBool aEnableRendering); 49 nsresult GetSticky(PRBool *aSticky); 50 nsresult SetSticky(PRBool aSticky); 51 nsresult RequestWindowClose(PRBool *_retval); 52 nsresult Open(nsISupports aState); 53 nsresult ClearHistoryEntry(); 54 55 } 56 57 /****************************************************************************** 58 59 ******************************************************************************/ 60 61 const char[] NS_ICONTENTVIEWER_MOZILLA_1_8_BRANCH_IID_STR = "51341ed4-a3bf-4fd5-ae17-5fd3ec59dcab"; 62 63 const nsIID NS_ICONTENTVIEWER_MOZILLA_1_8_BRANCH_IID= 64 {0x51341ed4, 0xa3bf, 0x4fd5, 65 [ 0xae, 0x17, 0x5f, 0xd3, 0xec, 0x59, 0xdc, 0xab ]}; 66 67 interface nsIContentViewer_MOZILLA_1_8_BRANCH : nsISupports { 68 69 static const char[] IID_STR = NS_ICONTENTVIEWER_MOZILLA_1_8_BRANCH_IID_STR; 70 static const nsIID IID = NS_ICONTENTVIEWER_MOZILLA_1_8_BRANCH_IID; 71 72 extern(System): 73 nsresult OpenWithEntry(nsISupports aState, nsISHEntry aSHEntry); 74 75 } 76