Chromium Code Reviews| 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 25 matching lines...) Expand all Loading... | |
| 36 readonly attribute unsigned short eventPhase; | 36 readonly attribute unsigned short eventPhase; |
| 37 | 37 |
| 38 void stopPropagation(); | 38 void stopPropagation(); |
| 39 void stopImmediatePropagation(); | 39 void stopImmediatePropagation(); |
| 40 | 40 |
| 41 readonly attribute boolean bubbles; | 41 readonly attribute boolean bubbles; |
| 42 readonly attribute boolean cancelable; | 42 readonly attribute boolean cancelable; |
| 43 void preventDefault(); | 43 void preventDefault(); |
| 44 readonly attribute boolean defaultPrevented; | 44 readonly attribute boolean defaultPrevented; |
| 45 | 45 |
| 46 // TODO(yuzus): Add scoped in stats file, implement scoped in C++ files, | |
| 47 // and add a [] statement here. | |
| 48 readonly attribute boolean scoped; | |
|
hayato
2016/01/15 03:59:52
You have to guard this by [RuntimeEnabled=ShadowDO
yuzuchan
2016/01/15 05:32:27
Done.
| |
| 49 | |
| 46 [RuntimeEnabled=TrustedEvents, Unforgeable] readonly attribute boolean isTru sted; | 50 [RuntimeEnabled=TrustedEvents, Unforgeable] readonly attribute boolean isTru sted; |
| 47 | 51 |
| 48 // TODO(majidvp): At the moment the actual return value type can either | 52 // TODO(majidvp): At the moment the actual return value type can either |
| 49 // be: | 53 // be: |
|
hayato
2016/01/15 03:59:52
Unintentional change?
yuzuchan
2016/01/15 05:32:27
Done.
| |
| 50 // - DOMTimeStamp (i.e. long long): legacy type | 54 // - DOMTimeStamp (i.e. long long): legacy type |
| 51 // - DOMHighResTimeStamp (i.e. double): HighResEventTimeStamp REF is | 55 // - DOMHighResTimeStamp (i.e. double): HighResEventTimeStamp REF is |
|
hayato
2016/01/15 03:59:52
Ditto.
yuzuchan
2016/01/15 05:32:27
Done.
| |
| 52 // enabled | 56 // enabled |
| 53 // Below IDL definition uses DOMHighResTimeStamp because all DOMTimeStamp | 57 // Below IDL definition uses DOMHighResTimeStamp because all DOMTimeStamp |
| 54 // values can be represented in double type without any loss of precision. | 58 // values can be represented in double type without any loss of precision. |
| 55 // Once the feature is enabled by default the return value type will always | 59 // Once the feature is enabled by default the return value type will always |
| 56 // match the definition here. | 60 // match the definition here. |
| 57 [CallWith=ScriptState] readonly attribute DOMHighResTimeStamp timeStamp; | 61 [CallWith=ScriptState] readonly attribute DOMHighResTimeStamp timeStamp; |
| 58 | 62 |
| 59 // FIXME: initEvent()'s arguments should not be optional. | 63 // FIXME: initEvent()'s arguments should not be optional. |
| 60 [Measure] void initEvent([Default=Undefined] optional DOMString type, | 64 [Measure] void initEvent([Default=Undefined] optional DOMString type, |
| 61 [Default=Undefined] optional boolean bubbles, | 65 [Default=Undefined] optional boolean bubbles, |
| 62 [Default=Undefined] optional boolean cancelable); | 66 [Default=Undefined] optional boolean cancelable) ; |
|
hayato
2016/01/15 03:59:52
Ditto.
yuzuchan
2016/01/15 05:32:27
Done.
| |
| 63 | 67 |
| 64 // Shadow DOM | 68 // Shadow DOM |
| 65 // https://w3c.github.io/webcomponents/spec/shadow/#extensions-to-event-inte rface | 69 // https://w3c.github.io/webcomponents/spec/shadow/#extensions-to-event-inte rface |
| 66 [MeasureAs=EventPath, CallWith=ScriptState] readonly attribute EventTarget[] path; | 70 [MeasureAs=EventPath, CallWith=ScriptState] readonly attribute EventTarget[] path; |
| 67 | 71 |
| 68 // Non-standard APIs | 72 // Non-standard APIs |
| 69 const unsigned short MOUSEDOWN = 1; | 73 const unsigned short MOUSEDOWN = 1; |
| 70 const unsigned short MOUSEUP = 2; | 74 const unsigned short MOUSEUP = 2; |
| 71 const unsigned short MOUSEOVER = 4; | 75 const unsigned short MOUSEOVER = 4; |
| 72 const unsigned short MOUSEOUT = 8; | 76 const unsigned short MOUSEOUT = 8; |
| 73 const unsigned short MOUSEMOVE = 16; | 77 const unsigned short MOUSEMOVE = 16; |
| 74 const unsigned short MOUSEDRAG = 32; | 78 const unsigned short MOUSEDRAG = 32; |
| 75 const unsigned short CLICK = 64; | 79 const unsigned short CLICK = 64; |
| 76 const unsigned short DBLCLICK = 128; | 80 const unsigned short DBLCLICK = 128; |
| 77 const unsigned short KEYDOWN = 256; | 81 const unsigned short KEYDOWN = 256; |
| 78 const unsigned short KEYUP = 512; | 82 const unsigned short KEYUP = 512; |
| 79 const unsigned short KEYPRESS = 1024; | 83 const unsigned short KEYPRESS = 1024; |
| 80 const unsigned short DRAGDROP = 2048; | 84 const unsigned short DRAGDROP = 2048; |
| 81 const unsigned short FOCUS = 4096; | 85 const unsigned short FOCUS = 4096; |
| 82 const unsigned short BLUR = 8192; | 86 const unsigned short BLUR = 8192; |
| 83 const unsigned short SELECT = 16384; | 87 const unsigned short SELECT = 16384; |
| 84 const unsigned short CHANGE = 32768; | 88 const unsigned short CHANGE = 32768; |
| 85 [MeasureAs=EventSrcElement] readonly attribute EventTarget srcElement; | 89 [MeasureAs=EventSrcElement] readonly attribute EventTarget srcElement; |
| 86 [MeasureAs=EventReturnValue, CallWith=ExecutionContext, ImplementedAs=legacy ReturnValue] attribute boolean returnValue; | 90 [MeasureAs=EventReturnValue, CallWith=ExecutionContext, ImplementedAs=legacy ReturnValue] attribute boolean returnValue; |
| 87 [MeasureAs=EventCancelBubble] attribute boolean cancelBubble; | 91 [MeasureAs=EventCancelBubble] attribute boolean cancelBubble; |
| 88 }; | 92 }; |
| OLD | NEW |