root/dwt/internal/mozilla/nsIContentViewer.d

Revision 327:b0d7eb5bd76c, 2.6 kB (checked in by John Reimer <terminal.node@gmail.com>, 3 years ago)

Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win

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