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 28 matching lines...) Expand all Loading... | |
| 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 [RuntimeEnabled=TrustedEvents, Unforgeable] readonly attribute boolean isTru sted; | 46 [RuntimeEnabled=TrustedEvents, Unforgeable] readonly attribute boolean isTru sted; |
| 47 | 47 |
| 48 // TODO(majidvp): At the moment the actual return value type can either | 48 // TODO(majidvp): At the moment the actual return value type can either |
| 49 // be: | 49 // be: |
|
kochi
2016/01/13 09:03:28
Probably your editor trimmed the line-end whitespa
yuzuchan
2016/01/15 04:18:31
Done. I changed the editor settings too.
On 2016/0
| |
| 50 // - DOMTimeStamp (i.e. long long): legacy type | 50 // - DOMTimeStamp (i.e. long long): legacy type |
| 51 // - DOMHighResTimeStamp (i.e. double): HighResEventTimeStamp REF is | 51 // - DOMHighResTimeStamp (i.e. double): HighResEventTimeStamp REF is |
| 52 // enabled | 52 // enabled |
|
kochi
2016/01/13 09:03:28
Ditto
yuzuchan
2016/01/15 04:18:31
Done.
| |
| 53 // Below IDL definition uses DOMHighResTimeStamp because all DOMTimeStamp | 53 // Below IDL definition uses DOMHighResTimeStamp because all DOMTimeStamp |
| 54 // values can be represented in double type without any loss of precision. | 54 // 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 | 55 // Once the feature is enabled by default the return value type will always |
| 56 // match the definition here. | 56 // match the definition here. |
| 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 |