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 nsIWindowWatcher extends nsISupports {
031:
032: static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 11;
033:
034: public static final String NS_IWINDOWWATCHER_IID_STR = "002286a8-494b-43b3-8ddd-49e3fc50622b";
035:
036: public static final nsID NS_IWINDOWWATCHER_IID = new nsID(
037: NS_IWINDOWWATCHER_IID_STR);
038:
039: public nsIWindowWatcher(int /*long*/address) {
040: super (address);
041: }
042:
043: public int OpenWindow(int /*long*/aParent, byte[] aUrl,
044: byte[] aName, byte[] aFeatures, int /*long*/aArguments,
045: int /*long*/[] _retval) {
046: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1,
047: getAddress(), aParent, aUrl, aName, aFeatures,
048: aArguments, _retval);
049: }
050:
051: public int RegisterNotification(int /*long*/aObserver) {
052: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 2,
053: getAddress(), aObserver);
054: }
055:
056: public int UnregisterNotification(int /*long*/aObserver) {
057: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 3,
058: getAddress(), aObserver);
059: }
060:
061: public int GetWindowEnumerator(int /*long*/[] _retval) {
062: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 4,
063: getAddress(), _retval);
064: }
065:
066: public int GetNewPrompter(int /*long*/aParent,
067: int /*long*/[] _retval) {
068: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 5,
069: getAddress(), aParent, _retval);
070: }
071:
072: public int GetNewAuthPrompter(int /*long*/aParent,
073: int /*long*/[] _retval) {
074: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 6,
075: getAddress(), aParent, _retval);
076: }
077:
078: public int SetWindowCreator(int /*long*/creator) {
079: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 7,
080: getAddress(), creator);
081: }
082:
083: public int GetChromeForWindow(int /*long*/aWindow,
084: int /*long*/[] _retval) {
085: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 8,
086: getAddress(), aWindow, _retval);
087: }
088:
089: public int GetWindowByName(char[] aTargetName,
090: int /*long*/aCurrentWindow, int /*long*/[] _retval) {
091: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 9,
092: getAddress(), aTargetName, aCurrentWindow, _retval);
093: }
094:
095: public int GetActiveWindow(int /*long*/[] aActiveWindow) {
096: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 10,
097: getAddress(), aActiveWindow);
098: }
099:
100: public int SetActiveWindow(int /*long*/aActiveWindow) {
101: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 11,
102: getAddress(), aActiveWindow);
103: }
104: }
|