1 28 package org.eclipse.swt.internal.mozilla; 29 30 public class nsIWebBrowserChrome extends nsISupports { 31 32 static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 10; 33 34 public static final String NS_IWEBBROWSERCHROME_IID_STR = 35 "ba434c60-9d52-11d3-afb0-00a024ffc08c"; 36 37 public static final nsID NS_IWEBBROWSERCHROME_IID = 38 new nsID(NS_IWEBBROWSERCHROME_IID_STR); 39 40 public nsIWebBrowserChrome(int address) { 41 super(address); 42 } 43 44 public static final int STATUS_SCRIPT = 1; 45 46 public static final int STATUS_SCRIPT_DEFAULT = 2; 47 48 public static final int STATUS_LINK = 3; 49 50 public int SetStatus(int statusType, char[] status) { 51 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1, getAddress(), statusType, status); 52 } 53 54 public int GetWebBrowser(int [] aWebBrowser) { 55 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 2, getAddress(), aWebBrowser); 56 } 57 58 public int SetWebBrowser(int aWebBrowser) { 59 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 3, getAddress(), aWebBrowser); 60 } 61 62 public static final int CHROME_DEFAULT = 1; 63 64 public static final int CHROME_WINDOW_BORDERS = 2; 65 66 public static final int CHROME_WINDOW_CLOSE = 4; 67 68 public static final int CHROME_WINDOW_RESIZE = 8; 69 70 public static final int CHROME_MENUBAR = 16; 71 72 public static final int CHROME_TOOLBAR = 32; 73 74 public static final int CHROME_LOCATIONBAR = 64; 75 76 public static final int CHROME_STATUSBAR = 128; 77 78 public static final int CHROME_PERSONAL_TOOLBAR = 256; 79 80 public static final int CHROME_SCROLLBARS = 512; 81 82 public static final int CHROME_TITLEBAR = 1024; 83 84 public static final int CHROME_EXTRA = 2048; 85 86 public static final int CHROME_WITH_SIZE = 4096; 87 88 public static final int CHROME_WITH_POSITION = 8192; 89 90 public static final int CHROME_WINDOW_MIN = 16384; 91 92 public static final int CHROME_WINDOW_POPUP = 32768; 93 94 public static final int CHROME_WINDOW_RAISED = 33554432; 95 96 public static final int CHROME_WINDOW_LOWERED = 67108864; 97 98 public static final int CHROME_CENTER_SCREEN = 134217728; 99 100 public static final int CHROME_DEPENDENT = 268435456; 101 102 public static final int CHROME_MODAL = 536870912; 103 104 public static final int CHROME_OPENAS_DIALOG = 1073741824; 105 106 public static final int CHROME_OPENAS_CHROME = -2147483648; 107 108 public static final int CHROME_ALL = 4094; 109 110 public int GetChromeFlags(int[] aChromeFlags) { 111 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 4, getAddress(), aChromeFlags); 112 } 113 114 public int SetChromeFlags(int aChromeFlags) { 115 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 5, getAddress(), aChromeFlags); 116 } 117 118 public int DestroyBrowserWindow() { 119 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 6, getAddress()); 120 } 121 122 public int SizeBrowserTo(int aCX, int aCY) { 123 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 7, getAddress(), aCX, aCY); 124 } 125 126 public int ShowAsModal() { 127 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 8, getAddress()); 128 } 129 130 public int IsWindowModal(boolean[] _retval) { 131 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 9, getAddress(), _retval); 132 } 133 134 public int ExitModalEventLoop(int aStatus) { 135 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 10, getAddress(), aStatus); 136 } 137 } | Popular Tags |