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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 [CallWith=ScriptState] readonly attribute DOMHighResTimeStamp timeStamp; | 57 [CallWith=ScriptState] readonly attribute DOMHighResTimeStamp timeStamp; |
58 | 58 |
59 // FIXME: initEvent()'s arguments should not be optional. | 59 // FIXME: initEvent()'s arguments should not be optional. |
60 [Measure] void initEvent([Default=Undefined] optional DOMString type, | 60 [Measure] void initEvent([Default=Undefined] optional DOMString type, |
61 [Default=Undefined] optional boolean bubbles, | 61 [Default=Undefined] optional boolean bubbles, |
62 [Default=Undefined] optional boolean cancelable); | 62 [Default=Undefined] optional boolean cancelable); |
63 | 63 |
64 // Shadow DOM | 64 // Shadow DOM |
65 // https://w3c.github.io/webcomponents/spec/shadow/#extensions-to-event-inte
rface | 65 // https://w3c.github.io/webcomponents/spec/shadow/#extensions-to-event-inte
rface |
66 [MeasureAs=EventPath, CallWith=ScriptState] readonly attribute EventTarget[]
path; | 66 [MeasureAs=EventPath, CallWith=ScriptState] readonly attribute EventTarget[]
path; |
67 | 67 [RuntimeEnabled=ShadowDOMV1, ImplementedAs=path, MeasureAs=EventDeepPath, Ca
llWith=ScriptState] readonly attribute EventTarget[] deepPath; |
68 // Non-standard APIs | 68 // Non-standard APIs |
69 const unsigned short MOUSEDOWN = 1; | 69 const unsigned short MOUSEDOWN = 1; |
70 const unsigned short MOUSEUP = 2; | 70 const unsigned short MOUSEUP = 2; |
71 const unsigned short MOUSEOVER = 4; | 71 const unsigned short MOUSEOVER = 4; |
72 const unsigned short MOUSEOUT = 8; | 72 const unsigned short MOUSEOUT = 8; |
73 const unsigned short MOUSEMOVE = 16; | 73 const unsigned short MOUSEMOVE = 16; |
74 const unsigned short MOUSEDRAG = 32; | 74 const unsigned short MOUSEDRAG = 32; |
75 const unsigned short CLICK = 64; | 75 const unsigned short CLICK = 64; |
76 const unsigned short DBLCLICK = 128; | 76 const unsigned short DBLCLICK = 128; |
77 const unsigned short KEYDOWN = 256; | 77 const unsigned short KEYDOWN = 256; |
78 const unsigned short KEYUP = 512; | 78 const unsigned short KEYUP = 512; |
79 const unsigned short KEYPRESS = 1024; | 79 const unsigned short KEYPRESS = 1024; |
80 const unsigned short DRAGDROP = 2048; | 80 const unsigned short DRAGDROP = 2048; |
81 const unsigned short FOCUS = 4096; | 81 const unsigned short FOCUS = 4096; |
82 const unsigned short BLUR = 8192; | 82 const unsigned short BLUR = 8192; |
83 const unsigned short SELECT = 16384; | 83 const unsigned short SELECT = 16384; |
84 const unsigned short CHANGE = 32768; | 84 const unsigned short CHANGE = 32768; |
85 [MeasureAs=EventSrcElement] readonly attribute EventTarget srcElement; | 85 [MeasureAs=EventSrcElement] readonly attribute EventTarget srcElement; |
86 [MeasureAs=EventReturnValue, CallWith=ExecutionContext, ImplementedAs=legacy
ReturnValue] attribute boolean returnValue; | 86 [MeasureAs=EventReturnValue, CallWith=ExecutionContext, ImplementedAs=legacy
ReturnValue] attribute boolean returnValue; |
87 [MeasureAs=EventCancelBubble] attribute boolean cancelBubble; | 87 [MeasureAs=EventCancelBubble] attribute boolean cancelBubble; |
88 }; | 88 }; |
OLD | NEW |