~ubuntu-branches/debian/sid/swt-gtk/sid

« back to all changes in this revision

Viewing changes to org/eclipse/swt/internal/mozilla/nsIWebBrowserChrome.java

  • Committer: Bazaar Package Importer
  • Author(s): Adrian Perez
  • Date: 2009-12-07 10:22:24 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20091207102224-70w2tax575mcks1w
Tags: 3.5.1-1
* New upstream release. Closes: #558663.
* debian/control: 
  - Add Vcs-* fields for Git repository.
  - Allow DM-Uploads.
  - Remove "Conflicts", package should live with eclipse.
* debian/rules: Fix default-java path around AWT_LIB_PATH.
* debian/copyright: Minor update.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* ***** BEGIN LICENSE BLOCK *****
2
 
 * Version: MPL 1.1
3
 
 *
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/
8
 
 *
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
12
 
 * License.
13
 
 *
14
 
 * The Original Code is Mozilla Communicator client code, released March 31, 1998.
15
 
 *
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.
20
 
 *
21
 
 * Contributor(s):
22
 
 *
23
 
 * IBM
24
 
 * -  Binding to permit interfacing between Mozilla and SWT
25
 
 * -  Copyright (C) 2003, 2008 IBM Corp.  All Rights Reserved.
26
 
 *
27
 
 * ***** END LICENSE BLOCK ***** */
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 /*long*/ 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 /*long*/[] aWebBrowser) {
55
 
                return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 2, getAddress(), aWebBrowser);
56
 
        }
57
 
 
58
 
        public int SetWebBrowser(int /*long*/ 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
 
 
 
1
/* ***** BEGIN LICENSE BLOCK *****
 
2
 * Version: MPL 1.1
 
3
 *
 
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/
 
8
 *
 
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
 
12
 * License.
 
13
 *
 
14
 * The Original Code is Mozilla Communicator client code, released March 31, 1998.
 
15
 *
 
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.
 
20
 *
 
21
 * Contributor(s):
 
22
 *
 
23
 * IBM
 
24
 * -  Binding to permit interfacing between Mozilla and SWT
 
25
 * -  Copyright (C) 2003, 2008 IBM Corp.  All Rights Reserved.
 
26
 *
 
27
 * ***** END LICENSE BLOCK ***** */
 
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 /*long*/ 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 /*long*/[] aWebBrowser) {
 
55
                return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 2, getAddress(), aWebBrowser);
 
56
        }
 
57
 
 
58
        public int SetWebBrowser(int /*long*/ 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
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(int[] _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
 
}
 
 
b'\\ No newline at end of file'
 
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(int[] _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
}