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 nsIDOMWindow extends nsISupports {
031:
032: static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 17;
033:
034: public static final String NS_IDOMWINDOW_IID_STR = "a6cf906b-15b3-11d2-932e-00805f8add32";
035:
036: public static final nsID NS_IDOMWINDOW_IID = new nsID(
037: NS_IDOMWINDOW_IID_STR);
038:
039: public nsIDOMWindow(int /*long*/address) {
040: super (address);
041: }
042:
043: public int GetDocument(int /*long*/[] aDocument) {
044: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1,
045: getAddress(), aDocument);
046: }
047:
048: public int GetParent(int /*long*/[] aParent) {
049: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 2,
050: getAddress(), aParent);
051: }
052:
053: public int GetTop(int /*long*/[] aTop) {
054: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 3,
055: getAddress(), aTop);
056: }
057:
058: public int GetScrollbars(int /*long*/[] aScrollbars) {
059: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 4,
060: getAddress(), aScrollbars);
061: }
062:
063: public int GetFrames(int /*long*/[] aFrames) {
064: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 5,
065: getAddress(), aFrames);
066: }
067:
068: public int GetName(int /*long*/aName) {
069: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 6,
070: getAddress(), aName);
071: }
072:
073: public int SetName(int /*long*/aName) {
074: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 7,
075: getAddress(), aName);
076: }
077:
078: public int GetTextZoom(float[] aTextZoom) {
079: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 8,
080: getAddress(), aTextZoom);
081: }
082:
083: public int SetTextZoom(float aTextZoom) {
084: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 9,
085: getAddress(), aTextZoom);
086: }
087:
088: public int GetScrollX(int[] aScrollX) {
089: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 10,
090: getAddress(), aScrollX);
091: }
092:
093: public int GetScrollY(int[] aScrollY) {
094: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 11,
095: getAddress(), aScrollY);
096: }
097:
098: public int ScrollTo(int xScroll, int yScroll) {
099: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 12,
100: getAddress(), xScroll, yScroll);
101: }
102:
103: public int ScrollBy(int xScrollDif, int yScrollDif) {
104: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 13,
105: getAddress(), xScrollDif, yScrollDif);
106: }
107:
108: public int GetSelection(int /*long*/[] _retval) {
109: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 14,
110: getAddress(), _retval);
111: }
112:
113: public int ScrollByLines(int numLines) {
114: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 15,
115: getAddress(), numLines);
116: }
117:
118: public int ScrollByPages(int numPages) {
119: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 16,
120: getAddress(), numPages);
121: }
122:
123: public int SizeToContent() {
124: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 17,
125: getAddress());
126: }
127: }
|