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