1 module org.eclipse.swt.internal.mozilla.nsIWebBrowserChrome;
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.nsIWebBrowser; 
10 
11 const char[] NS_IWEBBROWSERCHROME_IID_STR = "ba434c60-9d52-11d3-afb0-00a024ffc08c";
12 
13 const nsIID NS_IWEBBROWSERCHROME_IID= 
14   {0xba434c60, 0x9d52, 0x11d3, 
15     [ 0xaf, 0xb0, 0x00, 0xa0, 0x24, 0xff, 0xc0, 0x8c ]};
16 
17 interface nsIWebBrowserChrome : nsISupports {
18 
19   static const char[] IID_STR = NS_IWEBBROWSERCHROME_IID_STR;
20   static const nsIID IID = NS_IWEBBROWSERCHROME_IID;
21 
22 extern(System):
23   enum { STATUS_SCRIPT = 1U };
24   enum { STATUS_SCRIPT_DEFAULT = 2U };
25   enum { STATUS_LINK = 3U };
26 
27   nsresult SetStatus(PRUint32 statusType, PRUnichar *status);
28   nsresult GetWebBrowser(nsIWebBrowser  *aWebBrowser);
29   nsresult SetWebBrowser(nsIWebBrowser  aWebBrowser);
30 
31   enum { CHROME_DEFAULT = 1U };
32   enum { CHROME_WINDOW_BORDERS = 2U };
33   enum { CHROME_WINDOW_CLOSE = 4U };
34   enum { CHROME_WINDOW_RESIZE = 8U };
35   enum { CHROME_MENUBAR = 16U };
36   enum { CHROME_TOOLBAR = 32U };
37   enum { CHROME_LOCATIONBAR = 64U };
38   enum { CHROME_STATUSBAR = 128U };
39   enum { CHROME_PERSONAL_TOOLBAR = 256U };
40   enum { CHROME_SCROLLBARS = 512U };
41   enum { CHROME_TITLEBAR = 1024U };
42   enum { CHROME_EXTRA = 2048U };
43   enum { CHROME_WITH_SIZE = 4096U };
44   enum { CHROME_WITH_POSITION = 8192U };
45   enum { CHROME_WINDOW_MIN = 16384U };
46   enum { CHROME_WINDOW_POPUP = 32768U };
47   enum { CHROME_WINDOW_RAISED = 33554432U };
48   enum { CHROME_WINDOW_LOWERED = 67108864U };
49   enum { CHROME_CENTER_SCREEN = 134217728U };
50   enum { CHROME_DEPENDENT = 268435456U };
51   enum { CHROME_MODAL = 536870912U };
52   enum { CHROME_OPENAS_DIALOG = 1073741824U };
53   enum { CHROME_OPENAS_CHROME = 2147483648U };
54   enum { CHROME_ALL = 4094U };
55 
56   nsresult GetChromeFlags(PRUint32 *aChromeFlags);
57   nsresult SetChromeFlags(PRUint32 aChromeFlags);
58   nsresult DestroyBrowserWindow();
59   nsresult SizeBrowserTo(PRInt32 aCX, PRInt32 aCY);
60   nsresult ShowAsModal();
61   nsresult IsWindowModal(PRBool *_retval);
62   nsresult ExitModalEventLoop(nsresult aStatus);
63 
64 }
65