1
/* ***** BEGIN LICENSE BLOCK *****
4
* The contents of this file are subject to the Mozilla Public License Version
5
* 1.1 (the "License"); you may not use this file except in compliance with
6
* the License. You may obtain a copy of the License at
7
* http://www.mozilla.org/MPL/
9
* Software distributed under the License is distributed on an "AS IS" basis,
10
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11
* for the specific language governing rights and limitations under the
14
* The Original Code is Mozilla Communicator client code, released March 31, 1998.
16
* The Initial Developer of the Original Code is
17
* Netscape Communications Corporation.
18
* Portions created by Netscape are Copyright (C) 1998-1999
19
* Netscape Communications Corporation. All Rights Reserved.
24
* - Binding to permit interfacing between Mozilla and SWT
25
* - Copyright (C) 2003, 2008 IBM Corp. All Rights Reserved.
27
* ***** END LICENSE BLOCK ***** */
28
package org.eclipse.swt.internal.mozilla;
30
public class nsIWebBrowserChrome extends nsISupports {
32
static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 10;
34
public static final String NS_IWEBBROWSERCHROME_IID_STR =
35
"ba434c60-9d52-11d3-afb0-00a024ffc08c";
37
public static final nsID NS_IWEBBROWSERCHROME_IID =
38
new nsID(NS_IWEBBROWSERCHROME_IID_STR);
40
public nsIWebBrowserChrome(int /*long*/ address) {
44
public static final int STATUS_SCRIPT = 1;
46
public static final int STATUS_SCRIPT_DEFAULT = 2;
48
public static final int STATUS_LINK = 3;
50
public int SetStatus(int statusType, char[] status) {
51
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1, getAddress(), statusType, status);
54
public int GetWebBrowser(int /*long*/[] aWebBrowser) {
55
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 2, getAddress(), aWebBrowser);
58
public int SetWebBrowser(int /*long*/ aWebBrowser) {
59
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 3, getAddress(), aWebBrowser);
62
public static final int CHROME_DEFAULT = 1;
64
public static final int CHROME_WINDOW_BORDERS = 2;
66
public static final int CHROME_WINDOW_CLOSE = 4;
68
public static final int CHROME_WINDOW_RESIZE = 8;
70
public static final int CHROME_MENUBAR = 16;
72
public static final int CHROME_TOOLBAR = 32;
74
public static final int CHROME_LOCATIONBAR = 64;
76
public static final int CHROME_STATUSBAR = 128;
78
public static final int CHROME_PERSONAL_TOOLBAR = 256;
80
public static final int CHROME_SCROLLBARS = 512;
82
public static final int CHROME_TITLEBAR = 1024;
84
public static final int CHROME_EXTRA = 2048;
86
public static final int CHROME_WITH_SIZE = 4096;
88
public static final int CHROME_WITH_POSITION = 8192;
90
public static final int CHROME_WINDOW_MIN = 16384;
92
public static final int CHROME_WINDOW_POPUP = 32768;
94
public static final int CHROME_WINDOW_RAISED = 33554432;
96
public static final int CHROME_WINDOW_LOWERED = 67108864;
98
public static final int CHROME_CENTER_SCREEN = 134217728;
100
public static final int CHROME_DEPENDENT = 268435456;
102
public static final int CHROME_MODAL = 536870912;
104
public static final int CHROME_OPENAS_DIALOG = 1073741824;
1
/* ***** BEGIN LICENSE BLOCK *****
4
* The contents of this file are subject to the Mozilla Public License Version
5
* 1.1 (the "License"); you may not use this file except in compliance with
6
* the License. You may obtain a copy of the License at
7
* http://www.mozilla.org/MPL/
9
* Software distributed under the License is distributed on an "AS IS" basis,
10
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11
* for the specific language governing rights and limitations under the
14
* The Original Code is Mozilla Communicator client code, released March 31, 1998.
16
* The Initial Developer of the Original Code is
17
* Netscape Communications Corporation.
18
* Portions created by Netscape are Copyright (C) 1998-1999
19
* Netscape Communications Corporation. All Rights Reserved.
24
* - Binding to permit interfacing between Mozilla and SWT
25
* - Copyright (C) 2003, 2008 IBM Corp. All Rights Reserved.
27
* ***** END LICENSE BLOCK ***** */
28
package org.eclipse.swt.internal.mozilla;
30
public class nsIWebBrowserChrome extends nsISupports {
32
static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 10;
34
public static final String NS_IWEBBROWSERCHROME_IID_STR =
35
"ba434c60-9d52-11d3-afb0-00a024ffc08c";
37
public static final nsID NS_IWEBBROWSERCHROME_IID =
38
new nsID(NS_IWEBBROWSERCHROME_IID_STR);
40
public nsIWebBrowserChrome(int /*long*/ address) {
44
public static final int STATUS_SCRIPT = 1;
46
public static final int STATUS_SCRIPT_DEFAULT = 2;
48
public static final int STATUS_LINK = 3;
50
public int SetStatus(int statusType, char[] status) {
51
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1, getAddress(), statusType, status);
54
public int GetWebBrowser(int /*long*/[] aWebBrowser) {
55
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 2, getAddress(), aWebBrowser);
58
public int SetWebBrowser(int /*long*/ aWebBrowser) {
59
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 3, getAddress(), aWebBrowser);
62
public static final int CHROME_DEFAULT = 1;
64
public static final int CHROME_WINDOW_BORDERS = 2;
66
public static final int CHROME_WINDOW_CLOSE = 4;
68
public static final int CHROME_WINDOW_RESIZE = 8;
70
public static final int CHROME_MENUBAR = 16;
72
public static final int CHROME_TOOLBAR = 32;
74
public static final int CHROME_LOCATIONBAR = 64;
76
public static final int CHROME_STATUSBAR = 128;
78
public static final int CHROME_PERSONAL_TOOLBAR = 256;
80
public static final int CHROME_SCROLLBARS = 512;
82
public static final int CHROME_TITLEBAR = 1024;
84
public static final int CHROME_EXTRA = 2048;
86
public static final int CHROME_WITH_SIZE = 4096;
88
public static final int CHROME_WITH_POSITION = 8192;
90
public static final int CHROME_WINDOW_MIN = 16384;
92
public static final int CHROME_WINDOW_POPUP = 32768;
94
public static final int CHROME_WINDOW_RAISED = 33554432;
96
public static final int CHROME_WINDOW_LOWERED = 67108864;
98
public static final int CHROME_CENTER_SCREEN = 134217728;
100
public static final int CHROME_DEPENDENT = 268435456;
102
public static final int CHROME_MODAL = 536870912;
104
public static final int CHROME_OPENAS_DIALOG = 1073741824;
106
106
public static final int CHROME_OPENAS_CHROME = -2147483648;
108
public static final int CHROME_ALL = 4094;
110
public int GetChromeFlags(int[] aChromeFlags) {
111
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 4, getAddress(), aChromeFlags);
114
public int SetChromeFlags(int aChromeFlags) {
115
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 5, getAddress(), aChromeFlags);
118
public int DestroyBrowserWindow() {
119
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 6, getAddress());
122
public int SizeBrowserTo(int aCX, int aCY) {
123
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 7, getAddress(), aCX, aCY);
126
public int ShowAsModal() {
127
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 8, getAddress());
130
public int IsWindowModal(int[] _retval) {
131
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 9, getAddress(), _retval);
134
public int ExitModalEventLoop(int aStatus) {
135
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 10, getAddress(), aStatus);
b'\\ No newline at end of file'
108
public static final int CHROME_ALL = 4094;
110
public int GetChromeFlags(int[] aChromeFlags) {
111
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 4, getAddress(), aChromeFlags);
114
public int SetChromeFlags(int aChromeFlags) {
115
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 5, getAddress(), aChromeFlags);
118
public int DestroyBrowserWindow() {
119
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 6, getAddress());
122
public int SizeBrowserTo(int aCX, int aCY) {
123
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 7, getAddress(), aCX, aCY);
126
public int ShowAsModal() {
127
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 8, getAddress());
130
public int IsWindowModal(int[] _retval) {
131
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 9, getAddress(), _retval);
134
public int ExitModalEventLoop(int aStatus) {
135
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 10, getAddress(), aStatus);