| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | 114 |
| 115 // dynamic markup insertion | 115 // dynamic markup insertion |
| 116 // FIXME: There are two open() methods in the spec. | 116 // FIXME: There are two open() methods in the spec. |
| 117 [Custom, CustomElementCallbacks, RaisesException] void open(); | 117 [Custom, CustomElementCallbacks, RaisesException] void open(); |
| 118 [RaisesException] void close(); | 118 [RaisesException] void close(); |
| 119 [CallWith=EnteredWindow, CustomElementCallbacks, RaisesException] void write
(DOMString... text); | 119 [CallWith=EnteredWindow, CustomElementCallbacks, RaisesException] void write
(DOMString... text); |
| 120 [CallWith=EnteredWindow, CustomElementCallbacks, RaisesException] void write
ln(DOMString... text); | 120 [CallWith=EnteredWindow, CustomElementCallbacks, RaisesException] void write
ln(DOMString... text); |
| 121 | 121 |
| 122 // user interaction | 122 // user interaction |
| 123 [ImplementedAs=domWindow] readonly attribute Window? defaultView; | 123 [ImplementedAs=domWindow] readonly attribute Window? defaultView; |
| 124 readonly attribute Element? activeElement; | |
| 125 boolean hasFocus(); | 124 boolean hasFocus(); |
| 126 [CustomElementCallbacks, MeasureAs=DocumentDesignMode] attribute DOMString d
esignMode; | 125 [CustomElementCallbacks, MeasureAs=DocumentDesignMode] attribute DOMString d
esignMode; |
| 127 [CustomElementCallbacks, RaisesException] boolean execCommand(DOMString comm
andId, optional boolean showUI = false, optional DOMString value = ""); | 126 [CustomElementCallbacks, RaisesException] boolean execCommand(DOMString comm
andId, optional boolean showUI = false, optional DOMString value = ""); |
| 128 [RaisesException] boolean queryCommandEnabled(DOMString commandId); | 127 [RaisesException] boolean queryCommandEnabled(DOMString commandId); |
| 129 [RaisesException] boolean queryCommandIndeterm(DOMString commandId); | 128 [RaisesException] boolean queryCommandIndeterm(DOMString commandId); |
| 130 [RaisesException] boolean queryCommandState(DOMString commandId); | 129 [RaisesException] boolean queryCommandState(DOMString commandId); |
| 131 [RaisesException] boolean queryCommandSupported(DOMString commandId); | 130 [RaisesException] boolean queryCommandSupported(DOMString commandId); |
| 132 [RaisesException] DOMString queryCommandValue(DOMString commandId); | 131 [RaisesException] DOMString queryCommandValue(DOMString commandId); |
| 133 | 132 |
| 134 [LenientThis] attribute EventHandler onreadystatechange; | 133 [LenientThis] attribute EventHandler onreadystatechange; |
| 135 | 134 |
| 136 // HTML obsolete features | 135 // HTML obsolete features |
| 137 // https://html.spec.whatwg.org/#Document-partial | 136 // https://html.spec.whatwg.org/#Document-partial |
| 138 | 137 |
| 139 // FIXME: *Color are on HTMLDocument. | 138 // FIXME: *Color are on HTMLDocument. |
| 140 | 139 |
| 141 readonly attribute HTMLCollection anchors; | 140 readonly attribute HTMLCollection anchors; |
| 142 readonly attribute HTMLCollection applets; | 141 readonly attribute HTMLCollection applets; |
| 143 | 142 |
| 144 // FIXME: clear(), captureEvents(), releaseEvents() and all are on HTMLDocum
ent. | 143 // FIXME: clear(), captureEvents(), releaseEvents() and all are on HTMLDocum
ent. |
| 145 | 144 |
| 146 // CSS Object Model (CSSOM) | 145 // CSS Object Model (CSSOM) |
| 147 // http://dev.w3.org/csswg/cssom/#extensions-to-the-document-interface | 146 // http://dev.w3.org/csswg/cssom/#extensions-to-the-document-interface |
| 148 [SameObject] readonly attribute StyleSheetList styleSheets; | |
| 149 attribute DOMString? selectedStylesheetSet; | 147 attribute DOMString? selectedStylesheetSet; |
| 150 readonly attribute DOMString? preferredStylesheetSet; | 148 readonly attribute DOMString? preferredStylesheetSet; |
| 151 | 149 |
| 152 // CSSOM View Module | |
| 153 // http://dev.w3.org/csswg/cssom-view/#extensions-to-the-document-interface | |
| 154 // FIXME: The x and y arguments should be of type double. | |
| 155 Element? elementFromPoint(long x, long y); | |
| 156 sequence<Element> elementsFromPoint(long x, long y); | |
| 157 readonly attribute Element? scrollingElement; | 150 readonly attribute Element? scrollingElement; |
| 158 | 151 |
| 159 // Selection API | |
| 160 // http://w3c.github.io/selection-api/#extensions-to-document-interface | |
| 161 Selection? getSelection(); | |
| 162 | 152 |
| 163 // Pointer Lock | 153 // Pointer Lock |
| 164 // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#extensions
-to-the-document-interface | 154 // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#extensions
-to-the-document-interface |
| 165 attribute EventHandler onpointerlockchange; | 155 attribute EventHandler onpointerlockchange; |
| 166 attribute EventHandler onpointerlockerror; | 156 attribute EventHandler onpointerlockerror; |
| 167 [MeasureAs=DocumentPointerLockElement] readonly attribute Element? pointerLo
ckElement; | 157 [MeasureAs=DocumentPointerLockElement] readonly attribute Element? pointerLo
ckElement; |
| 168 [MeasureAs=DocumentExitPointerLock] void exitPointerLock(); | 158 [MeasureAs=DocumentExitPointerLock] void exitPointerLock(); |
| 169 | 159 |
| 170 // Touch Events | 160 // Touch Events |
| 171 // http://rawgit.com/w3c/touch-events/v1-errata/touchevents.html#extensions-
to-the-document-interface | 161 // http://rawgit.com/w3c/touch-events/v1-errata/touchevents.html#extensions-
to-the-document-interface |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 attribute EventHandler onsearch; | 210 attribute EventHandler onsearch; |
| 221 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa
ndler onsecuritypolicyviolation; | 211 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa
ndler onsecuritypolicyviolation; |
| 222 attribute EventHandler onselectionchange; | 212 attribute EventHandler onselectionchange; |
| 223 attribute EventHandler onselectstart; | 213 attribute EventHandler onselectstart; |
| 224 attribute EventHandler onwheel; | 214 attribute EventHandler onwheel; |
| 225 }; | 215 }; |
| 226 | 216 |
| 227 Document implements GlobalEventHandlers; | 217 Document implements GlobalEventHandlers; |
| 228 Document implements ParentNode; | 218 Document implements ParentNode; |
| 229 Document implements NonElementParentNode; | 219 Document implements NonElementParentNode; |
| 220 Document implements DocumentOrShadowRoot; |
| OLD | NEW |