Back to index

lightning-sunbird  0.9+nobinonly
nsIDOMNSEvent.idl
Go to the documentation of this file.
00001 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
00002 /* ***** BEGIN LICENSE BLOCK *****
00003  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00004  *
00005  * The contents of this file are subject to the Mozilla Public License Version
00006  * 1.1 (the "License"); you may not use this file except in compliance with
00007  * the License. You may obtain a copy of the License at
00008  * http://www.mozilla.org/MPL/
00009  *
00010  * Software distributed under the License is distributed on an "AS IS" basis,
00011  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00012  * for the specific language governing rights and limitations under the
00013  * License.
00014  *
00015  * The Original Code is mozilla.org code.
00016  *
00017  * The Initial Developer of the Original Code is
00018  * Netscape Communications Corporation.
00019  * Portions created by the Initial Developer are Copyright (C) 2000
00020  * the Initial Developer. All Rights Reserved.
00021  *
00022  * Contributor(s):
00023  *   Johnny Stenback <jst@netscape.com> (original author)
00024  *
00025  * Alternatively, the contents of this file may be used under the terms of
00026  * either of the GNU General Public License Version 2 or later (the "GPL"),
00027  * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00028  * in which case the provisions of the GPL or the LGPL are applicable instead
00029  * of those above. If you wish to allow use of your version of this file only
00030  * under the terms of either the GPL or the LGPL, and not to allow others to
00031  * use your version of this file under the terms of the MPL, indicate your
00032  * decision by deleting the provisions above and replace them with the notice
00033  * and other provisions required by the GPL or the LGPL. If you do not delete
00034  * the provisions above, a recipient may use your version of this file under
00035  * the terms of any one of the MPL, the GPL or the LGPL.
00036  *
00037  * ***** END LICENSE BLOCK ***** */
00038 
00039 #include "domstubs.idl"
00040 
00041 %{C++
00042 #ifdef WINCE
00043 #undef ERROR
00044 #endif
00045 %}
00046 
00047 [scriptable, uuid(e565d518-4510-407f-a3d9-3b4107549c6d)]
00048 interface nsIDOMNSEvent : nsISupports
00049 {
00050   const long MOUSEDOWN    = 0x00000001;
00051   const long MOUSEUP      = 0x00000002;
00052   const long MOUSEOVER    = 0x00000004;
00053   const long MOUSEOUT     = 0x00000008;
00054   const long MOUSEMOVE    = 0x00000010;
00055   const long MOUSEDRAG    = 0x00000020;
00056   const long CLICK        = 0x00000040;
00057   const long DBLCLICK     = 0x00000080;
00058   const long KEYDOWN      = 0x00000100;
00059   const long KEYUP        = 0x00000200;
00060   const long KEYPRESS     = 0x00000400;
00061   const long DRAGDROP     = 0x00000800;
00062   const long FOCUS        = 0x00001000;
00063   const long BLUR         = 0x00002000;
00064   const long SELECT       = 0x00004000;
00065   const long CHANGE       = 0x00008000;
00066   const long RESET        = 0x00010000;
00067   const long SUBMIT       = 0x00020000;
00068   const long SCROLL       = 0x00040000;
00069   const long LOAD         = 0x00080000;
00070   const long UNLOAD       = 0x00100000;
00071   const long XFER_DONE    = 0x00200000;
00072   const long ABORT        = 0x00400000;
00073   const long ERROR        = 0x00800000;
00074   const long LOCATE       = 0x01000000;
00075   const long MOVE         = 0x02000000;
00076   const long RESIZE       = 0x04000000;
00077   const long FORWARD      = 0x08000000;
00078   const long HELP         = 0x10000000;
00079   const long BACK         = 0x20000000;
00080   const long TEXT         = 0x40000000;
00081 
00082   const long ALT_MASK     = 0x00000001;
00083   const long CONTROL_MASK = 0x00000002;
00084   const long SHIFT_MASK   = 0x00000004;
00085   const long META_MASK    = 0x00000008;
00086 
00088   readonly attribute nsIDOMEventTarget  originalTarget;
00099   readonly attribute nsIDOMEventTarget  explicitOriginalTarget;
00100   /* XXX This is TEMPORARY.  
00101    * The original target, without any retargeting (like textnode retargeting).
00102    * This really needs to be in .originalTarget, but this is a less risky way of
00103    * fixing it.
00104    */
00105   [noscript] readonly attribute nsIDOMEventTarget  tmpRealOriginalTarget;
00106 
00110   void                      preventBubble();
00111 
00115   void                      preventCapture();
00116 
00117   readonly attribute boolean isTrusted;
00118 };