| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| 11 * 2. Redistributions in binary form must reproduce the above copyright | 11 * 2. Redistributions in binary form must reproduce the above copyright |
| 12 * notice, this list of conditions and the following disclaimer in the | 12 * notice, this list of conditions and the following disclaimer in the |
| 13 * documentation and/or other materials provided with the distribution. | 13 * documentation and/or other materials provided with the distribution. |
| 14 * | 14 * |
| 15 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY | 15 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY |
| 16 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | 16 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 17 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | 17 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 18 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY | 18 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY |
| 19 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | 19 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 20 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 20 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 21 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 21 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 22 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 22 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 [ | 27 [ |
| 28 DoNotCheckConstants, | 28 DoNotCheckConstants, |
| 29 NoInterfaceObject, // testing interfaces do not appear on global objects | 29 WillBeGarbageCollected, |
| 30 ] interface Internals { | 30 ] interface Internals { |
| 31 DOMString address(Node node); | 31 DOMString address(Node node); |
| 32 | 32 |
| 33 GCObservation observeGC(any observed); | 33 GCObservation observeGC(any observed); |
| 34 | 34 |
| 35 [RaisesException] DOMString elementRenderTreeAsText(Element element); | 35 [RaisesException] DOMString elementRenderTreeAsText(Element element); |
| 36 boolean isPreloaded(DOMString url); | 36 boolean isPreloaded(DOMString url); |
| 37 boolean isLoadingFromMemoryCache(DOMString url); | 37 boolean isLoadingFromMemoryCache(DOMString url); |
| 38 | 38 |
| 39 void crash(); | 39 void crash(); |
| 40 | 40 |
| 41 void setStyleResolverStatsEnabled(boolean enabled); | 41 void setStyleResolverStatsEnabled(boolean enabled); |
| 42 [RaisesException] DOMString styleResolverStatsReport(); | 42 [RaisesException] DOMString styleResolverStatsReport(); |
| 43 [RaisesException] DOMString styleResolverStatsTotalsReport(); | 43 [RaisesException] DOMString styleResolverStatsTotalsReport(); |
| 44 | 44 |
| 45 [RaisesException] boolean isSharingStyle(Element element1, Element element2)
; | 45 [RaisesException] boolean isSharingStyle(Element element1, Element element2)
; |
| 46 | 46 |
| 47 [RaisesException] unsigned long numberOfScopedHTMLStyleChildren(Node scope); | |
| 48 [RaisesException] CSSStyleDeclaration computedStyleIncludingVisitedInfo(Node
node); | 47 [RaisesException] CSSStyleDeclaration computedStyleIncludingVisitedInfo(Node
node); |
| 49 | 48 |
| 50 [RaisesException] ShadowRoot shadowRoot(Element host); | 49 [RaisesException] ShadowRoot shadowRoot(Element host); |
| 51 [RaisesException] ShadowRoot youngestShadowRoot(Element host); | 50 [RaisesException] ShadowRoot youngestShadowRoot(Element host); |
| 52 [RaisesException] ShadowRoot oldestShadowRoot(Element host); | 51 [RaisesException] ShadowRoot oldestShadowRoot(Element host); |
| 53 [RaisesException] ShadowRoot youngerShadowRoot(Node root); | 52 [RaisesException] ShadowRoot youngerShadowRoot(Node root); |
| 54 | 53 |
| 55 [RaisesException] DOMString shadowRootType(Node root); | 54 [RaisesException] DOMString shadowRootType(Node root); |
| 56 [RaisesException] boolean hasShadowInsertionPoint(Node root); | 55 [RaisesException] boolean hasShadowInsertionPoint(Node root); |
| 57 [RaisesException] boolean hasContentElement(Node root); | 56 [RaisesException] boolean hasContentElement(Node root); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 [RaisesException] void setFormControlStateOfHistoryItem(sequence<DOMString>
values); | 88 [RaisesException] void setFormControlStateOfHistoryItem(sequence<DOMString>
values); |
| 90 [RaisesException] void setEnableMockPagePopup(boolean enabled); | 89 [RaisesException] void setEnableMockPagePopup(boolean enabled); |
| 91 readonly attribute PagePopupController pagePopupController; | 90 readonly attribute PagePopupController pagePopupController; |
| 92 | 91 |
| 93 [RaisesException] ClientRect unscaledViewportRect(); | 92 [RaisesException] ClientRect unscaledViewportRect(); |
| 94 | 93 |
| 95 [RaisesException] ClientRect absoluteCaretBounds(); | 94 [RaisesException] ClientRect absoluteCaretBounds(); |
| 96 | 95 |
| 97 [RaisesException] ClientRect boundingBox(Element element); | 96 [RaisesException] ClientRect boundingBox(Element element); |
| 98 | 97 |
| 99 [RaisesException] ClientRectList inspectorHighlightRects(Document document); | |
| 100 | |
| 101 [RaisesException] unsigned long markerCountForNode(Node node, DOMString mark
erType); | 98 [RaisesException] unsigned long markerCountForNode(Node node, DOMString mark
erType); |
| 102 [RaisesException] unsigned long activeMarkerCountForNode(Node node); | 99 [RaisesException] unsigned long activeMarkerCountForNode(Node node); |
| 103 [RaisesException] Range markerRangeForNode(Node node, DOMString markerType,
unsigned long index); | 100 [RaisesException] Range markerRangeForNode(Node node, DOMString markerType,
unsigned long index); |
| 104 [RaisesException] DOMString markerDescriptionForNode(Node node, DOMString ma
rkerType, unsigned long index); | 101 [RaisesException] DOMString markerDescriptionForNode(Node node, DOMString ma
rkerType, unsigned long index); |
| 105 void addTextMatchMarker(Range range, boolean isActive); | 102 void addTextMatchMarker(Range range, boolean isActive); |
| 106 [RaisesException] void setMarkersActive(Node node, unsigned long startOffset
, unsigned long endOffset, boolean active); | 103 [RaisesException] void setMarkersActive(Node node, unsigned long startOffset
, unsigned long endOffset, boolean active); |
| 107 [RaisesException] void setMarkedTextMatchesAreHighlighted(Document document,
boolean highlight); | 104 [RaisesException] void setMarkedTextMatchesAreHighlighted(Document document,
boolean highlight); |
| 108 | 105 |
| 109 [RaisesException] void setScrollViewPosition(Document document, long x, long
y); | 106 [RaisesException] void setScrollViewPosition(Document document, long x, long
y); |
| 110 | 107 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 132 [RaisesException] WebKitPoint touchPositionAdjustedToBestContextMenuNode(lon
g x, long y, long width, long height, Document document); | 129 [RaisesException] WebKitPoint touchPositionAdjustedToBestContextMenuNode(lon
g x, long y, long width, long height, Document document); |
| 133 [RaisesException] Node touchNodeAdjustedToBestContextMenuNode(long x, long y
, long width, long height, Document document); | 130 [RaisesException] Node touchNodeAdjustedToBestContextMenuNode(long x, long y
, long width, long height, Document document); |
| 134 [RaisesException] ClientRect bestZoomableAreaForTouchPoint(long x, long y, l
ong width, long height, Document document); | 131 [RaisesException] ClientRect bestZoomableAreaForTouchPoint(long x, long y, l
ong width, long height, Document document); |
| 135 | 132 |
| 136 [RaisesException] long lastSpellCheckRequestSequence(Document document); | 133 [RaisesException] long lastSpellCheckRequestSequence(Document document); |
| 137 [RaisesException] long lastSpellCheckProcessedSequence(Document document); | 134 [RaisesException] long lastSpellCheckProcessedSequence(Document document); |
| 138 | 135 |
| 139 sequence<DOMString> userPreferredLanguages(); | 136 sequence<DOMString> userPreferredLanguages(); |
| 140 void setUserPreferredLanguages(sequence<DOMString> languages); | 137 void setUserPreferredLanguages(sequence<DOMString> languages); |
| 141 | 138 |
| 139 [RaisesException] unsigned long activeDOMObjectCount(Document document); |
| 142 [RaisesException] unsigned long wheelEventHandlerCount(Document document); | 140 [RaisesException] unsigned long wheelEventHandlerCount(Document document); |
| 141 [RaisesException] unsigned long scrollEventHandlerCount(Document document); |
| 143 [RaisesException] unsigned long touchEventHandlerCount(Document document); | 142 [RaisesException] unsigned long touchEventHandlerCount(Document document); |
| 144 [RaisesException] LayerRectList touchEventTargetLayerRects(Document document
); | 143 [RaisesException] LayerRectList touchEventTargetLayerRects(Document document
); |
| 145 | 144 |
| 146 | 145 |
| 147 [RaisesException] NodeList nodesFromRect(Document document, long x, long y, | 146 [RaisesException] NodeList nodesFromRect(Document document, long x, long y, |
| 148 unsigned long topPadding, unsigned long rightPadding, unsigned long bott
omPadding, unsigned long leftPadding, | 147 unsigned long topPadding, unsigned long rightPadding, unsigned long bott
omPadding, unsigned long leftPadding, |
| 149 boolean ignoreClipping, boolean allowShadowContent, boolean allowChildFr
ameContent); | 148 boolean ignoreClipping, boolean allowShadowContent, boolean allowChildFr
ameContent); |
| 150 | 149 |
| 151 void emitInspectorDidBeginFrame(optional long frameId); | 150 void emitInspectorDidBeginFrame(optional long frameId); |
| 152 void emitInspectorDidCancelFrame(); | 151 void emitInspectorDidCancelFrame(); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 169 | 168 |
| 170 // Flags for layerTreeAsText. | 169 // Flags for layerTreeAsText. |
| 171 // The values of these constants must be kept in sync with the values of Lay
erTreeAsTextBehaviorFlags in GraphicsLayerClient.h. | 170 // The values of these constants must be kept in sync with the values of Lay
erTreeAsTextBehaviorFlags in GraphicsLayerClient.h. |
| 172 const unsigned short LAYER_TREE_INCLUDES_REPAINT_RECTS = 2; | 171 const unsigned short LAYER_TREE_INCLUDES_REPAINT_RECTS = 2; |
| 173 const unsigned short LAYER_TREE_INCLUDES_PAINTING_PHASES = 4; | 172 const unsigned short LAYER_TREE_INCLUDES_PAINTING_PHASES = 4; |
| 174 const unsigned short LAYER_TREE_INCLUDES_ROOT_LAYER = 8; | 173 const unsigned short LAYER_TREE_INCLUDES_ROOT_LAYER = 8; |
| 175 const unsigned short LAYER_TREE_INCLUDES_CLIP_AND_SCROLL_PARENTS = 16; | 174 const unsigned short LAYER_TREE_INCLUDES_CLIP_AND_SCROLL_PARENTS = 16; |
| 176 [RaisesException] DOMString layerTreeAsText(Document document, optional unsi
gned short flags); | 175 [RaisesException] DOMString layerTreeAsText(Document document, optional unsi
gned short flags); |
| 177 [RaisesException] DOMString elementLayerTreeAsText(Element element, optional
unsigned short flags); | 176 [RaisesException] DOMString elementLayerTreeAsText(Element element, optional
unsigned short flags); |
| 178 | 177 |
| 179 [RaisesException] NodeList paintOrderListBeforePromote(Element element); | |
| 180 [RaisesException] NodeList paintOrderListAfterPromote(Element element); | |
| 181 | |
| 182 [RaisesException] boolean scrollsWithRespectTo(Element element1, Element ele
ment2); | 178 [RaisesException] boolean scrollsWithRespectTo(Element element1, Element ele
ment2); |
| 183 [RaisesException] boolean isUnclippedDescendant(Element element); | 179 [RaisesException] boolean isUnclippedDescendant(Element element); |
| 184 [RaisesException] boolean needsCompositedScrolling(Element element); | |
| 185 | |
| 186 // The values of these constants must be kept in sync with those in RenderLa
yer. | |
| 187 const unsigned short DO_NOT_FORCE_COMPOSITED_SCROLLING = 0; | |
| 188 const unsigned short COMPOSITED_SCROLLING_ALWAYS_ON = 1; | |
| 189 const unsigned short COMPOSITED_SCROLLING_ALWAYS_OFF = 2; | |
| 190 [RaisesException] void setNeedsCompositedScrolling(Element element, unsigned
short value); | |
| 191 | 180 |
| 192 [RaisesException] DOMString scrollingStateTreeAsText(Document document); | 181 [RaisesException] DOMString scrollingStateTreeAsText(Document document); |
| 193 [RaisesException] DOMString mainThreadScrollingReasons(Document document); | 182 [RaisesException] DOMString mainThreadScrollingReasons(Document document); |
| 194 [RaisesException] ClientRectList nonFastScrollableRects(Document document); | 183 [RaisesException] ClientRectList nonFastScrollableRects(Document document); |
| 195 | 184 |
| 196 [RaisesException] DOMString repaintRectsAsText(Document document); | 185 [RaisesException] DOMString repaintRectsAsText(Document document); |
| 197 [RaisesException] ClientRectList repaintRects(Element element); | 186 [RaisesException] ClientRectList repaintRects(Element element); |
| 198 | 187 |
| 199 [RaisesException] void garbageCollectDocumentResources(Document document); | 188 [RaisesException] void garbageCollectDocumentResources(Document document); |
| 200 void evictAllResources(); | 189 void evictAllResources(); |
| 201 | 190 |
| 202 void allowRoundingHacks(); | 191 void allowRoundingHacks(); |
| 203 | 192 |
| 204 unsigned long numberOfLiveNodes(); | 193 unsigned long numberOfLiveNodes(); |
| 205 unsigned long numberOfLiveDocuments(); | 194 unsigned long numberOfLiveDocuments(); |
| 206 DOMString dumpRefCountedInstanceCounts(); | 195 DOMString dumpRefCountedInstanceCounts(); |
| 207 sequence<DOMString> consoleMessageArgumentCounts(Document document); | 196 sequence<DOMString> consoleMessageArgumentCounts(Document document); |
| 208 Window openDummyInspectorFrontend(DOMString url); | |
| 209 void closeDummyInspectorFrontend(); | |
| 210 unsigned long[] setMemoryCacheCapacities(unsigned long minDeadBytes, unsigne
d long maxDeadBytes, unsigned long totalBytes); | 197 unsigned long[] setMemoryCacheCapacities(unsigned long minDeadBytes, unsigne
d long maxDeadBytes, unsigned long totalBytes); |
| 211 [RaisesException] void setInspectorResourcesDataSizeLimits(long maximumResou
rcesContentSize, long maximumSingleResourceContentSize); | 198 [RaisesException] void setInspectorResourcesDataSizeLimits(long maximumResou
rcesContentSize, long maximumSingleResourceContentSize); |
| 212 | 199 |
| 213 DOMString counterValue(Element element); | 200 DOMString counterValue(Element element); |
| 214 long pageNumber(Element element, optional float pageWidth, optional float pa
geHeight); | 201 long pageNumber(Element element, optional float pageWidth, optional float pa
geHeight); |
| 215 DOMString[] shortcutIconURLs(Document document); | 202 DOMString[] shortcutIconURLs(Document document); |
| 216 DOMString[] allIconURLs(Document document); | 203 DOMString[] allIconURLs(Document document); |
| 217 long numberOfPages(optional double pageWidthInPixels, optional double pageHe
ightInPixels); | 204 long numberOfPages(optional double pageWidthInPixels, optional double pageHe
ightInPixels); |
| 218 [RaisesException] DOMString pageProperty(DOMString propertyName, long pageNu
mber); | 205 [RaisesException] DOMString pageProperty(DOMString propertyName, long pageNu
mber); |
| 219 [RaisesException] DOMString pageSizeAndMarginsInPixels(long pageIndex, long
width, long height, long marginTop, long marginRight, long marginBottom, long ma
rginLeft); | 206 [RaisesException] DOMString pageSizeAndMarginsInPixels(long pageIndex, long
width, long height, long marginTop, long marginRight, long marginBottom, long ma
rginLeft); |
| 220 | 207 |
| 221 [RaisesException] void setDeviceScaleFactor(float scaleFactor); | 208 [RaisesException] void setDeviceScaleFactor(float scaleFactor); |
| 222 | 209 |
| 223 [RaisesException] void setIsCursorVisible(Document document, boolean isVisib
le); | 210 [RaisesException] void setIsCursorVisible(Document document, boolean isVisib
le); |
| 224 | 211 |
| 225 void webkitWillEnterFullScreenForElement(Document document, Element element)
; | 212 void webkitWillEnterFullScreenForElement(Document document, Element element)
; |
| 226 void webkitDidEnterFullScreenForElement(Document document, Element element); | 213 void webkitDidEnterFullScreenForElement(Document document, Element element); |
| 227 void webkitWillExitFullScreenForElement(Document document, Element element); | 214 void webkitWillExitFullScreenForElement(Document document, Element element); |
| 228 void webkitDidExitFullScreenForElement(Document document, Element element); | 215 void webkitDidExitFullScreenForElement(Document document, Element element); |
| 229 | 216 |
| 217 void mediaPlayerRequestFullscreen(HTMLMediaElement mediaElement); |
| 218 |
| 230 void registerURLSchemeAsBypassingContentSecurityPolicy(DOMString scheme); | 219 void registerURLSchemeAsBypassingContentSecurityPolicy(DOMString scheme); |
| 231 void removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(DOMString sch
eme); | 220 void removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(DOMString sch
eme); |
| 232 | 221 |
| 233 MallocStatistics mallocStatistics(); | 222 MallocStatistics mallocStatistics(); |
| 234 TypeConversions typeConversions(); | 223 TypeConversions typeConversions(); |
| 235 | 224 |
| 236 DOMString[] getReferencedFilePaths(); | 225 DOMString[] getReferencedFilePaths(); |
| 237 | 226 |
| 238 // These functions both reset the tracked repaint rects. They are inteded to
be used in the following order: | 227 // These functions both reset the tracked repaint rects. They are inteded to
be used in the following order: |
| 239 // startTrackingRepaints, repaintRectsAsText, stopTrackingRepaints. | 228 // startTrackingRepaints, repaintRectsAsText, stopTrackingRepaints. |
| 240 [RaisesException] void startTrackingRepaints(Document document); | 229 [RaisesException] void startTrackingRepaints(Document document); |
| 241 [RaisesException] void stopTrackingRepaints(Document document); | 230 [RaisesException] void stopTrackingRepaints(Document document); |
| 242 | 231 |
| 243 // |node| should be Document, HTMLIFrameElement, or unspecified. | 232 // |node| should be Document, HTMLIFrameElement, or unspecified. |
| 244 // If |node| is an HTMLIFrameElement, it assumes node.contentDocument is | 233 // If |node| is an HTMLIFrameElement, it assumes node.contentDocument is |
| 245 // specified without security checks. Unspecified means this document. | 234 // specified without security checks. Unspecified means this document. |
| 246 [RaisesException] void updateLayoutIgnorePendingStylesheetsAndRunPostLayoutT
asks(optional Node node); | 235 [RaisesException] void updateLayoutIgnorePendingStylesheetsAndRunPostLayoutT
asks(optional Node node); |
| 247 | 236 |
| 237 [RaisesException] void forceFullRepaint(Document document); |
| 238 |
| 248 // Returns a list of draggable/non-draggable regions in the document. | 239 // Returns a list of draggable/non-draggable regions in the document. |
| 249 [RaisesException] ClientRectList draggableRegions(Document document); | 240 [RaisesException] ClientRectList draggableRegions(Document document); |
| 250 [RaisesException] ClientRectList nonDraggableRegions(Document document); | 241 [RaisesException] ClientRectList nonDraggableRegions(Document document); |
| 251 | 242 |
| 252 // Returns a string with information about the mouse cursor used at the spec
ified client location. | 243 // Returns a string with information about the mouse cursor used at the spec
ified client location. |
| 253 [RaisesException] DOMString getCurrentCursorInfo(Document document); | 244 [RaisesException] DOMString getCurrentCursorInfo(Document document); |
| 254 | 245 |
| 255 [RaisesException] DOMString markerTextForListItem(Element element); | 246 [RaisesException] DOMString markerTextForListItem(Element element); |
| 256 | 247 |
| 257 [RaisesException] DOMString baseURL(Document document); | 248 [RaisesException] DOMString baseURL(Document document); |
| 258 | 249 |
| 259 SerializedScriptValue deserializeBuffer(ArrayBuffer buffer); | 250 SerializedScriptValue deserializeBuffer(ArrayBuffer buffer); |
| 260 ArrayBuffer serializeObject(SerializedScriptValue obj); | 251 ArrayBuffer serializeObject(SerializedScriptValue obj); |
| 261 | 252 |
| 262 void forceReload(boolean endToEnd); | 253 void forceReload(boolean endToEnd); |
| 263 | 254 |
| 264 [RaisesException] DOMString getImageSourceURL(Element element); | 255 [RaisesException] DOMString getImageSourceURL(Element element); |
| 265 | 256 |
| 266 boolean isSelectPopupVisible(Node node); | 257 boolean isSelectPopupVisible(Node node); |
| 267 | 258 |
| 268 [RaisesException] ClientRect selectionBounds(); | 259 [RaisesException] ClientRect selectionBounds(); |
| 269 | 260 |
| 270 boolean loseSharedGraphicsContext3D(); | 261 boolean loseSharedGraphicsContext3D(); |
| 271 | 262 |
| 272 [RaisesException] void forceCompositingUpdate(Document document); | 263 [RaisesException] void forceCompositingUpdate(Document document); |
| 273 [RaisesException] boolean isCompositorFramePending(Document document); | |
| 274 | 264 |
| 275 void setZoomFactor(float factor); | 265 void setZoomFactor(float factor); |
| 276 | 266 |
| 277 [RaisesException] void setShouldRevealPassword(Element element, boolean reve
al); | 267 [RaisesException] void setShouldRevealPassword(Element element, boolean reve
al); |
| 278 | 268 |
| 269 [CallWith=ScriptState] Promise createPromise(); |
| 270 [CallWith=ScriptState] Promise createResolvedPromise(any value); |
| 271 [CallWith=ScriptState] Promise createRejectedPromise(any reason); |
| 279 [CallWith=ExecutionContext] Promise addOneToPromise(Promise promise); | 272 [CallWith=ExecutionContext] Promise addOneToPromise(Promise promise); |
| 273 |
| 274 void setValueForUser(Element element, DOMString value); |
| 275 |
| 276 DOMString textSurroundingNode(Node node, long x, long y, unsigned long maxLe
ngth); |
| 277 |
| 278 void setFocused(boolean focused); |
| 279 |
| 280 [RaisesException] boolean ignoreLayoutWithPendingStylesheets(Document docume
nt); |
| 281 |
| 282 // These functions are for testing NetInfo. You must call setNetworkStateNot
ifierTestOnly(true) |
| 283 // before calling setNetworkConnectionInfo. |
| 284 void setNetworkStateNotifierTestOnly(boolean testOnly); |
| 285 [RaisesException] void setNetworkConnectionInfo(DOMString type); |
| 280 }; | 286 }; |
| OLD | NEW |