| 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 ] interface Internals { | 29 ] interface Internals { |
| 29 DOMString address(Node node); | 30 DOMString address(Node node); |
| 30 | 31 |
| 31 [RaisesException] DOMString elementRenderTreeAsText(Element element); | 32 [RaisesException] DOMString elementRenderTreeAsText(Element element); |
| 32 boolean isPreloaded(DOMString url); | 33 boolean isPreloaded(DOMString url); |
| 33 boolean isLoadingFromMemoryCache(DOMString url); | 34 boolean isLoadingFromMemoryCache(DOMString url); |
| 34 | 35 |
| 35 void crash(); | 36 void crash(); |
| 36 | 37 |
| 37 [RaisesException] unsigned long numberOfScopedHTMLStyleChildren(Node scope); | 38 [RaisesException] unsigned long numberOfScopedHTMLStyleChildren(Node scope); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 70 |
| 70 [RaisesException] Node nextSiblingByWalker(Node node); | 71 [RaisesException] Node nextSiblingByWalker(Node node); |
| 71 [RaisesException] Node firstChildByWalker(Node node); | 72 [RaisesException] Node firstChildByWalker(Node node); |
| 72 [RaisesException] Node lastChildByWalker(Node node); | 73 [RaisesException] Node lastChildByWalker(Node node); |
| 73 [RaisesException] Node nextNodeByWalker(Node node); | 74 [RaisesException] Node nextNodeByWalker(Node node); |
| 74 [RaisesException] Node previousNodeByWalker(Node node); | 75 [RaisesException] Node previousNodeByWalker(Node node); |
| 75 | 76 |
| 76 [RaisesException] boolean attached(Node node); | 77 [RaisesException] boolean attached(Node node); |
| 77 | 78 |
| 78 DOMString visiblePlaceholder(Element element); | 79 DOMString visiblePlaceholder(Element element); |
| 79 #if defined(ENABLE_INPUT_TYPE_COLOR) && ENABLE_INPUT_TYPE_COLOR | 80 |
| 80 void selectColorInColorChooser(Element element, DOMString colorValue); | 81 void selectColorInColorChooser(Element element, DOMString colorValue); |
| 81 #endif | 82 |
| 82 [RaisesException] DOMString[] formControlStateOfPreviousHistoryItem(); | 83 [RaisesException] DOMString[] formControlStateOfPreviousHistoryItem(); |
| 83 [RaisesException] void setFormControlStateOfPreviousHistoryItem(sequence<DOM
String> values); | 84 [RaisesException] void setFormControlStateOfPreviousHistoryItem(sequence<DOM
String> values); |
| 84 [RaisesException] void setEnableMockPagePopup(boolean enabled); | 85 [RaisesException] void setEnableMockPagePopup(boolean enabled); |
| 85 readonly attribute PagePopupController pagePopupController; | 86 readonly attribute PagePopupController pagePopupController; |
| 86 | 87 |
| 87 [RaisesException] ClientRect absoluteCaretBounds(); | 88 [RaisesException] ClientRect absoluteCaretBounds(); |
| 88 | 89 |
| 89 [RaisesException] ClientRect boundingBox(Element element); | 90 [RaisesException] ClientRect boundingBox(Element element); |
| 90 | 91 |
| 91 [RaisesException] ClientRectList inspectorHighlightRects(Document document); | 92 [RaisesException] ClientRectList inspectorHighlightRects(Document document); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 115 | 116 |
| 116 [RaisesException] void paintControlTints(Document document); | 117 [RaisesException] void paintControlTints(Document document); |
| 117 | 118 |
| 118 [RaisesException] void scrollElementToRect(Element element, long x, long y,
long w, long h); | 119 [RaisesException] void scrollElementToRect(Element element, long x, long y,
long w, long h); |
| 119 | 120 |
| 120 [RaisesException] Range rangeFromLocationAndLength(Element scope, long range
Location, long rangeLength); | 121 [RaisesException] Range rangeFromLocationAndLength(Element scope, long range
Location, long rangeLength); |
| 121 [RaisesException] unsigned long locationFromRange(Element scope, Range range
); | 122 [RaisesException] unsigned long locationFromRange(Element scope, Range range
); |
| 122 [RaisesException] unsigned long lengthFromRange(Element scope, Range range); | 123 [RaisesException] unsigned long lengthFromRange(Element scope, Range range); |
| 123 [RaisesException] DOMString rangeAsText(Range range); | 124 [RaisesException] DOMString rangeAsText(Range range); |
| 124 | 125 |
| 125 [RaisesException] DOMPoint touchPositionAdjustedToBestClickableNode(long x,
long y, long width, long height, Document document); | 126 [RaisesException] WebKitPoint touchPositionAdjustedToBestClickableNode(long
x, long y, long width, long height, Document document); |
| 126 [RaisesException] Node touchNodeAdjustedToBestClickableNode(long x, long y,
long width, long height, Document document); | 127 [RaisesException] Node touchNodeAdjustedToBestClickableNode(long x, long y,
long width, long height, Document document); |
| 127 [RaisesException] DOMPoint touchPositionAdjustedToBestContextMenuNode(long x
, long y, long width, long height, Document document); | 128 [RaisesException] WebKitPoint touchPositionAdjustedToBestContextMenuNode(lon
g x, long y, long width, long height, Document document); |
| 128 [RaisesException] Node touchNodeAdjustedToBestContextMenuNode(long x, long y
, long width, long height, Document document); | 129 [RaisesException] Node touchNodeAdjustedToBestContextMenuNode(long x, long y
, long width, long height, Document document); |
| 129 [RaisesException] ClientRect bestZoomableAreaForTouchPoint(long x, long y, l
ong width, long height, Document document); | 130 [RaisesException] ClientRect bestZoomableAreaForTouchPoint(long x, long y, l
ong width, long height, Document document); |
| 130 | 131 |
| 131 [RaisesException] long lastSpellCheckRequestSequence(Document document); | 132 [RaisesException] long lastSpellCheckRequestSequence(Document document); |
| 132 [RaisesException] long lastSpellCheckProcessedSequence(Document document); | 133 [RaisesException] long lastSpellCheckProcessedSequence(Document document); |
| 133 | 134 |
| 134 sequence<DOMString> userPreferredLanguages(); | 135 sequence<DOMString> userPreferredLanguages(); |
| 135 void setUserPreferredLanguages(sequence<DOMString> languages); | 136 void setUserPreferredLanguages(sequence<DOMString> languages); |
| 136 | 137 |
| 137 [RaisesException] unsigned long wheelEventHandlerCount(Document document); | 138 [RaisesException] unsigned long wheelEventHandlerCount(Document document); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 154 | 155 |
| 155 [RaisesException] unsigned long numberOfScrollableAreas(Document document); | 156 [RaisesException] unsigned long numberOfScrollableAreas(Document document); |
| 156 | 157 |
| 157 [RaisesException] boolean isPageBoxVisible(Document document, long pageNumbe
r); | 158 [RaisesException] boolean isPageBoxVisible(Document document, long pageNumbe
r); |
| 158 | 159 |
| 159 readonly attribute InternalSettings settings; | 160 readonly attribute InternalSettings settings; |
| 160 readonly attribute InternalRuntimeFlags runtimeFlags; | 161 readonly attribute InternalRuntimeFlags runtimeFlags; |
| 161 readonly attribute unsigned long workerThreadCount; | 162 readonly attribute unsigned long workerThreadCount; |
| 162 | 163 |
| 163 // Flags for layerTreeAsText. | 164 // Flags for layerTreeAsText. |
| 164 const unsigned short LAYER_TREE_INCLUDES_VISIBLE_RECTS = 1; | 165 // The values of these constants must be kept in sync with the values of Lay
erTreeAsTextBehaviorFlags in GraphicsLayerClient.h. |
| 165 const unsigned short LAYER_TREE_INCLUDES_TILE_CACHES = 2; | 166 const unsigned short LAYER_TREE_INCLUDES_REPAINT_RECTS = 2; |
| 166 const unsigned short LAYER_TREE_INCLUDES_REPAINT_RECTS = 4; | 167 const unsigned short LAYER_TREE_INCLUDES_PAINTING_PHASES = 4; |
| 167 const unsigned short LAYER_TREE_INCLUDES_PAINTING_PHASES = 8; | |
| 168 [RaisesException] DOMString layerTreeAsText(Document document, optional unsi
gned short flags); | 168 [RaisesException] DOMString layerTreeAsText(Document document, optional unsi
gned short flags); |
| 169 [RaisesException] DOMString elementLayerTreeAsText(Element element, optional
unsigned short flags); |
| 169 | 170 |
| 170 [RaisesException] NodeList paintOrderListBeforePromote(Element element); | 171 [RaisesException] NodeList paintOrderListBeforePromote(Element element); |
| 171 [RaisesException] NodeList paintOrderListAfterPromote(Element element); | 172 [RaisesException] NodeList paintOrderListAfterPromote(Element element); |
| 172 | 173 |
| 173 // The values of these constants must be kept in sync with those in RenderLa
yer. | 174 // The values of these constants must be kept in sync with those in RenderLa
yer. |
| 174 const unsigned short DoNotForceCompositedScrolling = 0; | 175 const unsigned short DO_NOT_FORCE_COMPOSITED_SCROLLING = 0; |
| 175 const unsigned short CompositedScrollingAlwaysOn = 1; | 176 const unsigned short COMPOSITED_SCROLLING_ALWAYS_ON = 1; |
| 176 const unsigned short CompositedScrollingAlwaysOff = 2; | 177 const unsigned short COMPOSITED_SCROLLING_ALWAYS_OFF = 2; |
| 177 [RaisesException] void setNeedsCompositedScrolling(Element element, unsigned
short value); | 178 [RaisesException] void setNeedsCompositedScrolling(Element element, unsigned
short value); |
| 178 | 179 |
| 179 [RaisesException] DOMString scrollingStateTreeAsText(Document document); | 180 [RaisesException] DOMString scrollingStateTreeAsText(Document document); |
| 180 [RaisesException] DOMString mainThreadScrollingReasons(Document document); | 181 [RaisesException] DOMString mainThreadScrollingReasons(Document document); |
| 181 [RaisesException] ClientRectList nonFastScrollableRects(Document document); | 182 [RaisesException] ClientRectList nonFastScrollableRects(Document document); |
| 182 | 183 |
| 183 [RaisesException] DOMString repaintRectsAsText(Document document); | 184 [RaisesException] DOMString repaintRectsAsText(Document document); |
| 184 | 185 |
| 185 [RaisesException] void garbageCollectDocumentResources(Document document); | 186 [RaisesException] void garbageCollectDocumentResources(Document document); |
| 186 | 187 |
| 187 void allowRoundingHacks(); | 188 void allowRoundingHacks(); |
| 188 | 189 |
| 189 void insertAuthorCSS(Document document, DOMString css); | 190 void insertAuthorCSS(Document document, DOMString css); |
| 190 void insertUserCSS(Document document, DOMString css); | 191 void insertUserCSS(Document document, DOMString css); |
| 191 | 192 |
| 192 #if defined(ENABLE_BATTERY_STATUS) && ENABLE_BATTERY_STATUS | |
| 193 [RaisesException] void setBatteryStatus(Document document, DOMString eventTy
pe, boolean charging, double chargingTime, double dischargingTime, double level)
; | |
| 194 #endif | |
| 195 | |
| 196 unsigned long numberOfLiveNodes(); | 193 unsigned long numberOfLiveNodes(); |
| 197 unsigned long numberOfLiveDocuments(); | 194 unsigned long numberOfLiveDocuments(); |
| 198 sequence<DOMString> consoleMessageArgumentCounts(Document document); | 195 sequence<DOMString> consoleMessageArgumentCounts(Document document); |
| 199 DOMWindow openDummyInspectorFrontend(DOMString url); | 196 Window openDummyInspectorFrontend(DOMString url); |
| 200 void closeDummyInspectorFrontend(); | 197 void closeDummyInspectorFrontend(); |
| 201 [RaisesException] void setInspectorResourcesDataSizeLimits(long maximumResou
rcesContentSize, long maximumSingleResourceContentSize); | 198 [RaisesException] void setInspectorResourcesDataSizeLimits(long maximumResou
rcesContentSize, long maximumSingleResourceContentSize); |
| 202 | 199 |
| 203 DOMString counterValue(Element element); | 200 DOMString counterValue(Element element); |
| 204 long pageNumber(Element element, optional float pageWidth, optional float pa
geHeight); | 201 long pageNumber(Element element, optional float pageWidth, optional float pa
geHeight); |
| 205 DOMString[] shortcutIconURLs(Document document); | 202 DOMString[] shortcutIconURLs(Document document); |
| 206 DOMString[] allIconURLs(Document document); | 203 DOMString[] allIconURLs(Document document); |
| 207 long numberOfPages(optional double pageWidthInPixels, optional double pageHe
ightInPixels); | 204 long numberOfPages(optional double pageWidthInPixels, optional double pageHe
ightInPixels); |
| 208 [RaisesException] DOMString pageProperty(DOMString propertyName, long pageNu
mber); | 205 [RaisesException] DOMString pageProperty(DOMString propertyName, long pageNu
mber); |
| 209 [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); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 236 | 233 |
| 237 [RaisesException] DOMString markerTextForListItem(Element element); | 234 [RaisesException] DOMString markerTextForListItem(Element element); |
| 238 | 235 |
| 239 SerializedScriptValue deserializeBuffer(ArrayBuffer buffer); | 236 SerializedScriptValue deserializeBuffer(ArrayBuffer buffer); |
| 240 ArrayBuffer serializeObject(SerializedScriptValue obj); | 237 ArrayBuffer serializeObject(SerializedScriptValue obj); |
| 241 | 238 |
| 242 void setUsesOverlayScrollbars(boolean enabled); | 239 void setUsesOverlayScrollbars(boolean enabled); |
| 243 | 240 |
| 244 void forceReload(boolean endToEnd); | 241 void forceReload(boolean endToEnd); |
| 245 | 242 |
| 246 [Conditional=ENCRYPTED_MEDIA_V2] void initializeMockCDM(); | |
| 247 | |
| 248 void enableMockSpeechSynthesizer(); | 243 void enableMockSpeechSynthesizer(); |
| 249 | 244 |
| 250 [RaisesException] DOMString getImageSourceURL(Element element); | 245 [RaisesException] DOMString getImageSourceURL(Element element); |
| 251 | 246 |
| 252 boolean isSelectPopupVisible(Node node); | 247 boolean isSelectPopupVisible(Node node); |
| 248 |
| 249 [RaisesException] ClientRect selectionBounds(); |
| 253 }; | 250 }; |
| OLD | NEW |