001: /* ***** BEGIN LICENSE BLOCK *****
002: * Version: MPL 1.1
003: *
004: * The contents of this file are subject to the Mozilla Public License Version
005: * 1.1 (the "License"); you may not use this file except in compliance with
006: * the License. You may obtain a copy of the License at
007: * http://www.mozilla.org/MPL/
008: *
009: * Software distributed under the License is distributed on an "AS IS" basis,
010: * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
011: * for the specific language governing rights and limitations under the
012: * License.
013: *
014: * The Original Code is Mozilla Communicator client code, released March 31, 1998.
015: *
016: * The Initial Developer of the Original Code is
017: * Netscape Communications Corporation.
018: * Portions created by Netscape are Copyright (C) 1998-1999
019: * Netscape Communications Corporation. All Rights Reserved.
020: *
021: * Contributor(s):
022: *
023: * IBM
024: * - Binding to permit interfacing between Mozilla and SWT
025: * - Copyright (C) 2003, 2005 IBM Corp. All Rights Reserved.
026: *
027: * ***** END LICENSE BLOCK ***** */
028: package org.eclipse.swt.internal.mozilla;
029:
030: public class nsIWebBrowserChrome extends nsISupports {
031:
032: static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 10;
033:
034: public static final String NS_IWEBBROWSERCHROME_IID_STR = "ba434c60-9d52-11d3-afb0-00a024ffc08c";
035:
036: public static final nsID NS_IWEBBROWSERCHROME_IID = new nsID(
037: NS_IWEBBROWSERCHROME_IID_STR);
038:
039: public nsIWebBrowserChrome(int /*long*/address) {
040: super (address);
041: }
042:
043: public static final int STATUS_SCRIPT = 1;
044:
045: public static final int STATUS_SCRIPT_DEFAULT = 2;
046:
047: public static final int STATUS_LINK = 3;
048:
049: public int SetStatus(int statusType, char[] status) {
050: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1,
051: getAddress(), statusType, status);
052: }
053:
054: public int GetWebBrowser(int /*long*/[] aWebBrowser) {
055: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 2,
056: getAddress(), aWebBrowser);
057: }
058:
059: public int SetWebBrowser(int /*long*/aWebBrowser) {
060: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 3,
061: getAddress(), aWebBrowser);
062: }
063:
064: public static final int CHROME_DEFAULT = 1;
065:
066: public static final int CHROME_WINDOW_BORDERS = 2;
067:
068: public static final int CHROME_WINDOW_CLOSE = 4;
069:
070: public static final int CHROME_WINDOW_RESIZE = 8;
071:
072: public static final int CHROME_MENUBAR = 16;
073:
074: public static final int CHROME_TOOLBAR = 32;
075:
076: public static final int CHROME_LOCATIONBAR = 64;
077:
078: public static final int CHROME_STATUSBAR = 128;
079:
080: public static final int CHROME_PERSONAL_TOOLBAR = 256;
081:
082: public static final int CHROME_SCROLLBARS = 512;
083:
084: public static final int CHROME_TITLEBAR = 1024;
085:
086: public static final int CHROME_EXTRA = 2048;
087:
088: public static final int CHROME_WITH_SIZE = 4096;
089:
090: public static final int CHROME_WITH_POSITION = 8192;
091:
092: public static final int CHROME_WINDOW_MIN = 16384;
093:
094: public static final int CHROME_WINDOW_POPUP = 32768;
095:
096: public static final int CHROME_WINDOW_RAISED = 33554432;
097:
098: public static final int CHROME_WINDOW_LOWERED = 67108864;
099:
100: public static final int CHROME_CENTER_SCREEN = 134217728;
101:
102: public static final int CHROME_DEPENDENT = 268435456;
103:
104: public static final int CHROME_MODAL = 536870912;
105:
106: public static final int CHROME_OPENAS_DIALOG = 1073741824;
107:
108: public static final int CHROME_OPENAS_CHROME = -2147483648;
109:
110: public static final int CHROME_ALL = 4094;
111:
112: public int GetChromeFlags(int[] aChromeFlags) {
113: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 4,
114: getAddress(), aChromeFlags);
115: }
116:
117: public int SetChromeFlags(int aChromeFlags) {
118: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 5,
119: getAddress(), aChromeFlags);
120: }
121:
122: public int DestroyBrowserWindow() {
123: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 6,
124: getAddress());
125: }
126:
127: public int SizeBrowserTo(int aCX, int aCY) {
128: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 7,
129: getAddress(), aCX, aCY);
130: }
131:
132: public int ShowAsModal() {
133: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 8,
134: getAddress());
135: }
136:
137: public int IsWindowModal(boolean[] _retval) {
138: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 9,
139: getAddress(), _retval);
140: }
141:
142: public int ExitModalEventLoop(int aStatus) {
143: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 10,
144: getAddress(), aStatus);
145: }
146: }
|