Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2011 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2006, 2007 Samuel Weinig <sam@webkit.org> | 3 * Copyright (C) 2006, 2007 Samuel Weinig <sam@webkit.org> |
| 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 149 readonly attribute Element? scrollingElement; | 149 readonly attribute Element? scrollingElement; |
| 150 | 150 |
| 151 // Pointer Lock | 151 // Pointer Lock |
| 152 // https://w3c.github.io/pointerlock/#extensions-to-the-document-interface | 152 // https://w3c.github.io/pointerlock/#extensions-to-the-document-interface |
| 153 attribute EventHandler onpointerlockchange; | 153 attribute EventHandler onpointerlockchange; |
| 154 attribute EventHandler onpointerlockerror; | 154 attribute EventHandler onpointerlockerror; |
| 155 [MeasureAs=DocumentExitPointerLock] void exitPointerLock(); | 155 [MeasureAs=DocumentExitPointerLock] void exitPointerLock(); |
| 156 | 156 |
| 157 // Touch Events | 157 // Touch Events |
| 158 // https://w3c.github.io/touch-events/#extensions-to-the-document-interface | 158 // https://w3c.github.io/touch-events/#extensions-to-the-document-interface |
| 159 // FIXME: The arguments should not be optional. | 159 // TODO(lunalu): The spec uses the WindowProxy type for view. |
| 160 [RuntimeEnabled=TouchEventFeatureDetection, Measure, LegacyInterfaceTypeChec king, Custom=CallPrologue] | 160 [RuntimeEnabled=TouchEventFeatureDetection, Measure, LegacyInterfaceTypeChec king, Custom=CallPrologue] |
| 161 Touch createTouch([Default=Undefined] optional Window window, | 161 Touch createTouch(Window view, |
| 162 [Default=Undefined] optional EventTarget target, | 162 EventTarget target, |
| 163 [Default=Undefined] optional long identifier, | 163 long identifier, |
| 164 [Default=Undefined] optional unrestricted double pageX, | 164 double pageX, |
| 165 [Default=Undefined] optional unrestricted double pageY, | 165 double pageY, |
| 166 [Default=Undefined] optional unrestricted double screenX, | 166 double screenX, |
| 167 [Default=Undefined] optional unrestricted double screenY, | 167 double screenY, |
| 168 [Default=Undefined] optional unrestricted double radiusX, | 168 [Default=Undefined] optional unrestricted double radiusX, |
|
foolip
2017/03/21 08:01:13
Can you change these to "optional unrestricted dou
lunalu1
2017/03/21 19:19:27
OK. The spec didn't mention these arguments. So ma
foolip
2017/03/22 05:16:24
The generated code will be slightly different, but
| |
| 169 [Default=Undefined] optional unrestricted double radiusY, | 169 [Default=Undefined] optional unrestricted double radiusY, |
| 170 [Default=Undefined] optional unrestricted float rotationAn gle, | 170 [Default=Undefined] optional unrestricted float rotationAn gle, |
| 171 [Default=Undefined] optional unrestricted float force); | 171 [Default=Undefined] optional unrestricted float force); |
| 172 [RuntimeEnabled=TouchEventFeatureDetection] TouchList createTouchList(Touch. .. touches); | 172 [RuntimeEnabled=TouchEventFeatureDetection] TouchList createTouchList(Touch. .. touches); |
| 173 | 173 |
| 174 // Custom Elements | 174 // Custom Elements |
| 175 // https://w3c.github.io/webcomponents/spec/custom/#extensions-to-document-i nterface-to-register | 175 // https://w3c.github.io/webcomponents/spec/custom/#extensions-to-document-i nterface-to-register |
| 176 // FIXME: The registerElement return type should be Function. | 176 // FIXME: The registerElement return type should be Function. |
| 177 [CallWith=ScriptState, CustomElementCallbacks, RaisesException, MeasureAs=Do cumentRegisterElement] CustomElementConstructor registerElement(DOMString type, optional ElementRegistrationOptions options); | 177 [CallWith=ScriptState, CustomElementCallbacks, RaisesException, MeasureAs=Do cumentRegisterElement] CustomElementConstructor registerElement(DOMString type, optional ElementRegistrationOptions options); |
| 178 // https://w3c.github.io/webcomponents/spec/custom/#extensions-to-document-i nterface-to-instantiate | 178 // https://w3c.github.io/webcomponents/spec/custom/#extensions-to-document-i nterface-to-instantiate |
| (...skipping 30 matching lines...) Expand all Loading... | |
| 209 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa ndler onsecuritypolicyviolation; | 209 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa ndler onsecuritypolicyviolation; |
| 210 attribute EventHandler onselectionchange; | 210 attribute EventHandler onselectionchange; |
| 211 attribute EventHandler onselectstart; | 211 attribute EventHandler onselectstart; |
| 212 attribute EventHandler onwheel; | 212 attribute EventHandler onwheel; |
| 213 }; | 213 }; |
| 214 | 214 |
| 215 Document implements GlobalEventHandlers; | 215 Document implements GlobalEventHandlers; |
| 216 Document implements ParentNode; | 216 Document implements ParentNode; |
| 217 Document implements NonElementParentNode; | 217 Document implements NonElementParentNode; |
| 218 Document implements DocumentOrShadowRoot; | 218 Document implements DocumentOrShadowRoot; |
| OLD | NEW |