|
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
|
2 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
3 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
5 |
|
6 #include "nsIDOMEvent.idl" |
|
7 |
|
8 /** |
|
9 * The nsIDOMUIEvent interface is the datatype for all UI events in the |
|
10 * Document Object Model. |
|
11 * |
|
12 * For more information on this interface please see |
|
13 * http://www.w3.org/TR/DOM-Level-2-Events/ |
|
14 */ |
|
15 |
|
16 [scriptable, builtinclass, uuid(d73852f8-7bd6-477d-8233-117dbf83860b)] |
|
17 interface nsIDOMUIEvent : nsIDOMEvent |
|
18 { |
|
19 readonly attribute nsIDOMWindow view; |
|
20 readonly attribute long detail; |
|
21 void initUIEvent(in DOMString typeArg, |
|
22 in boolean canBubbleArg, |
|
23 in boolean cancelableArg, |
|
24 in nsIDOMWindow viewArg, |
|
25 in long detailArg); |
|
26 |
|
27 const long SCROLL_PAGE_UP = -32768; |
|
28 const long SCROLL_PAGE_DOWN = 32768; |
|
29 |
|
30 readonly attribute long layerX; |
|
31 readonly attribute long layerY; |
|
32 readonly attribute long pageX; |
|
33 readonly attribute long pageY; |
|
34 readonly attribute unsigned long which; |
|
35 readonly attribute nsIDOMNode rangeParent; |
|
36 readonly attribute long rangeOffset; |
|
37 |
|
38 attribute boolean cancelBubble; |
|
39 |
|
40 readonly attribute boolean isChar; |
|
41 }; |