Event.idl

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2006 Apple Computer, Inc.
00003  * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Library General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2 of the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Library General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU Library General Public License
00016  * along with this library; see the file COPYING.LIB.  If not, write to
00017  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00018  * Boston, MA 02111-1307, USA.
00019  */
00020 
00021 module events {
00022 
00023     // Introduced in DOM Level 2:
00024     interface  Event {
00025 
00026         // DOM PhaseType
00027         const unsigned short CAPTURING_PHASE     = 1;
00028         const unsigned short AT_TARGET           = 2;
00029         const unsigned short BUBBLING_PHASE      = 3;
00030 
00031 #if !defined(LANGUAGE_OBJECTIVE_C)
00032         // Reverse-engineered from Netscape
00033         const unsigned short MOUSEDOWN           = 1;
00034         const unsigned short MOUSEUP             = 2;
00035         const unsigned short MOUSEOVER           = 4;
00036         const unsigned short MOUSEOUT            = 8;
00037         const unsigned short MOUSEMOVE           = 16;
00038         const unsigned short MOUSEDRAG           = 32;
00039         const unsigned short CLICK               = 64;
00040         const unsigned short DBLCLICK            = 128;
00041         const unsigned short KEYDOWN             = 256;
00042         const unsigned short KEYUP               = 512;
00043         const unsigned short KEYPRESS            = 1024;
00044         const unsigned short DRAGDROP            = 2048;
00045         const unsigned short FOCUS               = 4096;
00046         const unsigned short BLUR                = 8192;
00047         const unsigned short SELECT              = 16384;
00048         const unsigned short CHANGE              = 32768;
00049 #endif
00050 
00051 #if !defined(LANGUAGE_JAVASCRIPT)
00052         readonly attribute DOMString        type;
00053         readonly attribute EventTarget      target;
00054         readonly attribute EventTarget      currentTarget;
00055         readonly attribute unsigned short   eventPhase;
00056         readonly attribute boolean          bubbles;
00057         readonly attribute boolean          cancelable;
00058         readonly attribute DOMTimeStamp     timeStamp;
00059         void               stopPropagation();
00060         void               preventDefault();
00061         [OldStyleObjC] void initEvent(in DOMString eventTypeArg, 
00062                                       in boolean canBubbleArg, 
00063                                       in boolean cancelableArg);
00064 #endif
00065 
00066     };
00067 
00068 }

Generated on Fri Feb 9 15:10:25 2007 for Web Kit DOM by  doxygen 1.5.1