OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2009, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2009, 2011 Apple Inc. All rights reserved. |
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> | 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 [Unforgeable] readonly attribute boolean isTrusted; | 48 [Unforgeable] readonly attribute boolean isTrusted; |
49 | 49 |
50 [CallWith=ScriptState] readonly attribute DOMHighResTimeStamp timeStamp; | 50 [CallWith=ScriptState] readonly attribute DOMHighResTimeStamp timeStamp; |
51 | 51 |
52 // FIXME: initEvent()'s arguments should not be optional. | 52 // FIXME: initEvent()'s arguments should not be optional. |
53 [Measure] void initEvent([Default=Undefined] optional DOMString type, | 53 [Measure] void initEvent([Default=Undefined] optional DOMString type, |
54 [Default=Undefined] optional boolean bubbles, | 54 [Default=Undefined] optional boolean bubbles, |
55 [Default=Undefined] optional boolean cancelable); | 55 [Default=Undefined] optional boolean cancelable); |
56 | 56 |
57 // Non-standard APIs | 57 // Non-standard APIs |
58 const unsigned short MOUSEDOWN = 1; | |
59 const unsigned short MOUSEUP = 2; | |
60 const unsigned short MOUSEOVER = 4; | |
61 const unsigned short MOUSEOUT = 8; | |
62 const unsigned short MOUSEMOVE = 16; | |
63 const unsigned short MOUSEDRAG = 32; | |
64 const unsigned short CLICK = 64; | |
65 const unsigned short DBLCLICK = 128; | |
66 const unsigned short KEYDOWN = 256; | |
67 const unsigned short KEYUP = 512; | |
68 const unsigned short KEYPRESS = 1024; | |
69 const unsigned short DRAGDROP = 2048; | |
70 const unsigned short FOCUS = 4096; | |
71 const unsigned short BLUR = 8192; | |
72 const unsigned short SELECT = 16384; | |
73 const unsigned short CHANGE = 32768; | |
74 [MeasureAs=EventSrcElement] readonly attribute EventTarget srcElement; | 58 [MeasureAs=EventSrcElement] readonly attribute EventTarget srcElement; |
75 [MeasureAs=EventReturnValue, CallWith=ExecutionContext, ImplementedAs=legacy
ReturnValue] attribute boolean returnValue; | 59 [MeasureAs=EventReturnValue, CallWith=ExecutionContext, ImplementedAs=legacy
ReturnValue] attribute boolean returnValue; |
76 [MeasureAs=EventCancelBubble, CallWith=ExecutionContext] attribute boolean c
ancelBubble; | 60 [MeasureAs=EventCancelBubble, CallWith=ExecutionContext] attribute boolean c
ancelBubble; |
77 [MeasureAs=EventPath, CallWith=ScriptState] readonly attribute EventTarget[]
path; | 61 [MeasureAs=EventPath, CallWith=ScriptState] readonly attribute EventTarget[]
path; |
78 }; | 62 }; |
OLD | NEW |