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) 2004, 2005 IBM Corp. All Rights Reserved.
026: *
027: * ***** END LICENSE BLOCK ***** */
028: package org.eclipse.swt.internal.mozilla;
029:
030: public class nsIDOMEvent extends nsISupports {
031:
032: static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 10;
033:
034: public static final String NS_IDOMEVENT_IID_STR = "a66b7b80-ff46-bd97-0080-5f8ae38add32";
035:
036: public static final nsID NS_IDOMEVENT_IID = new nsID(
037: NS_IDOMEVENT_IID_STR);
038:
039: public nsIDOMEvent(int /*long*/address) {
040: super (address);
041: }
042:
043: public static final int CAPTURING_PHASE = 1;
044:
045: public static final int AT_TARGET = 2;
046:
047: public static final int BUBBLING_PHASE = 3;
048:
049: public int GetType(int /*long*/aType) {
050: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1,
051: getAddress(), aType);
052: }
053:
054: public int GetTarget(int /*long*/[] aTarget) {
055: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 2,
056: getAddress(), aTarget);
057: }
058:
059: public int GetCurrentTarget(int /*long*/[] aCurrentTarget) {
060: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 3,
061: getAddress(), aCurrentTarget);
062: }
063:
064: public int GetEventPhase(short[] aEventPhase) {
065: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 4,
066: getAddress(), aEventPhase);
067: }
068:
069: public int GetBubbles(boolean[] aBubbles) {
070: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 5,
071: getAddress(), aBubbles);
072: }
073:
074: public int GetCancelable(boolean[] aCancelable) {
075: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 6,
076: getAddress(), aCancelable);
077: }
078:
079: public int GetTimeStamp(int /*long*/[] aTimeStamp) {
080: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 7,
081: getAddress(), aTimeStamp);
082: }
083:
084: public int StopPropagation() {
085: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 8,
086: getAddress());
087: }
088:
089: public int PreventDefault() {
090: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 9,
091: getAddress());
092: }
093:
094: public int InitEvent(int /*long*/eventTypeArg,
095: boolean canBubbleArg, boolean cancelableArg) {
096: return XPCOM
097: .VtblCall(nsISupports.LAST_METHOD_ID + 10,
098: getAddress(), eventTypeArg, canBubbleArg,
099: cancelableArg);
100: }
101: }
|