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. |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 | 78 |
79 DOMString visiblePlaceholder(Element element); | 79 DOMString visiblePlaceholder(Element element); |
80 | 80 |
81 void selectColorInColorChooser(Element element, DOMString colorValue); | 81 void selectColorInColorChooser(Element element, DOMString colorValue); |
82 | 82 |
83 [RaisesException] DOMString[] formControlStateOfPreviousHistoryItem(); | 83 [RaisesException] DOMString[] formControlStateOfPreviousHistoryItem(); |
84 [RaisesException] void setFormControlStateOfPreviousHistoryItem(sequence<DOM
String> values); | 84 [RaisesException] void setFormControlStateOfPreviousHistoryItem(sequence<DOM
String> values); |
85 [RaisesException] void setEnableMockPagePopup(boolean enabled); | 85 [RaisesException] void setEnableMockPagePopup(boolean enabled); |
86 readonly attribute PagePopupController pagePopupController; | 86 readonly attribute PagePopupController pagePopupController; |
87 | 87 |
| 88 [RaisesException] ClientRect unscaledViewportRect(); |
| 89 |
88 [RaisesException] ClientRect absoluteCaretBounds(); | 90 [RaisesException] ClientRect absoluteCaretBounds(); |
89 | 91 |
90 [RaisesException] ClientRect boundingBox(Element element); | 92 [RaisesException] ClientRect boundingBox(Element element); |
91 | 93 |
92 [RaisesException] ClientRectList inspectorHighlightRects(Document document); | 94 [RaisesException] ClientRectList inspectorHighlightRects(Document document); |
93 | 95 |
94 [RaisesException] unsigned long markerCountForNode(Node node, DOMString mark
erType); | 96 [RaisesException] unsigned long markerCountForNode(Node node, DOMString mark
erType); |
95 [RaisesException] Range markerRangeForNode(Node node, DOMString markerType,
unsigned long index); | 97 [RaisesException] Range markerRangeForNode(Node node, DOMString markerType,
unsigned long index); |
96 [RaisesException] DOMString markerDescriptionForNode(Node node, DOMString ma
rkerType, unsigned long index); | 98 [RaisesException] DOMString markerDescriptionForNode(Node node, DOMString ma
rkerType, unsigned long index); |
97 void addTextMatchMarker(Range range, boolean isActive); | 99 void addTextMatchMarker(Range range, boolean isActive); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 [RaisesException] ClientRect bestZoomableAreaForTouchPoint(long x, long y, l
ong width, long height, Document document); | 132 [RaisesException] ClientRect bestZoomableAreaForTouchPoint(long x, long y, l
ong width, long height, Document document); |
131 | 133 |
132 [RaisesException] long lastSpellCheckRequestSequence(Document document); | 134 [RaisesException] long lastSpellCheckRequestSequence(Document document); |
133 [RaisesException] long lastSpellCheckProcessedSequence(Document document); | 135 [RaisesException] long lastSpellCheckProcessedSequence(Document document); |
134 | 136 |
135 sequence<DOMString> userPreferredLanguages(); | 137 sequence<DOMString> userPreferredLanguages(); |
136 void setUserPreferredLanguages(sequence<DOMString> languages); | 138 void setUserPreferredLanguages(sequence<DOMString> languages); |
137 | 139 |
138 [RaisesException] unsigned long wheelEventHandlerCount(Document document); | 140 [RaisesException] unsigned long wheelEventHandlerCount(Document document); |
139 [RaisesException] unsigned long touchEventHandlerCount(Document document); | 141 [RaisesException] unsigned long touchEventHandlerCount(Document document); |
140 [RaisesException] ClientRectList touchEventTargetClientRects(Document docume
nt); | 142 [RaisesException] LayerRectList touchEventTargetLayerRects(Document document
); |
| 143 [RaisesException] unsigned long touchEventTargetLayerRectsUpdateCount(Docume
nt document); |
141 | 144 |
142 [RaisesException] NodeList nodesFromRect(Document document, long x, long y, | 145 [RaisesException] NodeList nodesFromRect(Document document, long x, long y, |
143 unsigned long topPadding, unsigned long rightPadding, unsigned long bott
omPadding, unsigned long leftPadding, | 146 unsigned long topPadding, unsigned long rightPadding, unsigned long bott
omPadding, unsigned long leftPadding, |
144 boolean ignoreClipping, boolean allowShadowContent, boolean allowChildFr
ameContent); | 147 boolean ignoreClipping, boolean allowShadowContent, boolean allowChildFr
ameContent); |
145 | 148 |
146 void emitInspectorDidBeginFrame(); | 149 void emitInspectorDidBeginFrame(); |
147 void emitInspectorDidCancelFrame(); | 150 void emitInspectorDidCancelFrame(); |
148 | 151 |
149 [RaisesException] boolean hasSpellingMarker(Document document, long from, lo
ng length); | 152 [RaisesException] boolean hasSpellingMarker(Document document, long from, lo
ng length); |
150 [RaisesException] boolean hasGrammarMarker(Document document, long from, lon
g length); | 153 [RaisesException] boolean hasGrammarMarker(Document document, long from, lon
g length); |
151 [RaisesException] void setContinuousSpellCheckingEnabled(boolean enabled); | 154 [RaisesException] void setContinuousSpellCheckingEnabled(boolean enabled); |
152 | 155 |
153 [RaisesException] boolean isOverwriteModeEnabled(Document document); | 156 [RaisesException] boolean isOverwriteModeEnabled(Document document); |
154 [RaisesException] void toggleOverwriteModeEnabled(Document document); | 157 [RaisesException] void toggleOverwriteModeEnabled(Document document); |
155 | 158 |
156 [RaisesException] unsigned long numberOfScrollableAreas(Document document); | 159 [RaisesException] unsigned long numberOfScrollableAreas(Document document); |
157 | 160 |
158 [RaisesException] boolean isPageBoxVisible(Document document, long pageNumbe
r); | 161 [RaisesException] boolean isPageBoxVisible(Document document, long pageNumbe
r); |
159 | 162 |
160 readonly attribute InternalSettings settings; | 163 readonly attribute InternalSettings settings; |
| 164 readonly attribute InternalProfilers profilers; |
161 readonly attribute InternalRuntimeFlags runtimeFlags; | 165 readonly attribute InternalRuntimeFlags runtimeFlags; |
162 readonly attribute unsigned long workerThreadCount; | 166 readonly attribute unsigned long workerThreadCount; |
163 | 167 |
164 // Flags for layerTreeAsText. | 168 // Flags for layerTreeAsText. |
165 // The values of these constants must be kept in sync with the values of Lay
erTreeAsTextBehaviorFlags in GraphicsLayerClient.h. | 169 // The values of these constants must be kept in sync with the values of Lay
erTreeAsTextBehaviorFlags in GraphicsLayerClient.h. |
166 const unsigned short LAYER_TREE_INCLUDES_REPAINT_RECTS = 2; | 170 const unsigned short LAYER_TREE_INCLUDES_REPAINT_RECTS = 2; |
167 const unsigned short LAYER_TREE_INCLUDES_PAINTING_PHASES = 4; | 171 const unsigned short LAYER_TREE_INCLUDES_PAINTING_PHASES = 4; |
| 172 const unsigned short LAYER_TREE_INCLUDES_ROOT_LAYER = 8; |
168 [RaisesException] DOMString layerTreeAsText(Document document, optional unsi
gned short flags); | 173 [RaisesException] DOMString layerTreeAsText(Document document, optional unsi
gned short flags); |
169 [RaisesException] DOMString elementLayerTreeAsText(Element element, optional
unsigned short flags); | 174 [RaisesException] DOMString elementLayerTreeAsText(Element element, optional
unsigned short flags); |
170 | 175 |
171 [RaisesException] NodeList paintOrderListBeforePromote(Element element); | 176 [RaisesException] NodeList paintOrderListBeforePromote(Element element); |
172 [RaisesException] NodeList paintOrderListAfterPromote(Element element); | 177 [RaisesException] NodeList paintOrderListAfterPromote(Element element); |
173 | 178 |
174 // The values of these constants must be kept in sync with those in RenderLa
yer. | 179 // The values of these constants must be kept in sync with those in RenderLa
yer. |
175 const unsigned short DO_NOT_FORCE_COMPOSITED_SCROLLING = 0; | 180 const unsigned short DO_NOT_FORCE_COMPOSITED_SCROLLING = 0; |
176 const unsigned short COMPOSITED_SCROLLING_ALWAYS_ON = 1; | 181 const unsigned short COMPOSITED_SCROLLING_ALWAYS_ON = 1; |
177 const unsigned short COMPOSITED_SCROLLING_ALWAYS_OFF = 2; | 182 const unsigned short COMPOSITED_SCROLLING_ALWAYS_OFF = 2; |
178 [RaisesException] void setNeedsCompositedScrolling(Element element, unsigned
short value); | 183 [RaisesException] void setNeedsCompositedScrolling(Element element, unsigned
short value); |
179 | 184 |
180 [RaisesException] DOMString scrollingStateTreeAsText(Document document); | 185 [RaisesException] DOMString scrollingStateTreeAsText(Document document); |
181 [RaisesException] DOMString mainThreadScrollingReasons(Document document); | 186 [RaisesException] DOMString mainThreadScrollingReasons(Document document); |
182 [RaisesException] ClientRectList nonFastScrollableRects(Document document); | 187 [RaisesException] ClientRectList nonFastScrollableRects(Document document); |
183 | 188 |
184 [RaisesException] DOMString repaintRectsAsText(Document document); | 189 [RaisesException] DOMString repaintRectsAsText(Document document); |
185 | 190 |
186 [RaisesException] void garbageCollectDocumentResources(Document document); | 191 [RaisesException] void garbageCollectDocumentResources(Document document); |
| 192 void evictAllResources(); |
187 | 193 |
188 void allowRoundingHacks(); | 194 void allowRoundingHacks(); |
189 | 195 |
190 void insertAuthorCSS(Document document, DOMString css); | 196 void insertAuthorCSS(Document document, DOMString css); |
191 void insertUserCSS(Document document, DOMString css); | 197 void insertUserCSS(Document document, DOMString css); |
192 | 198 |
193 unsigned long numberOfLiveNodes(); | 199 unsigned long numberOfLiveNodes(); |
194 unsigned long numberOfLiveDocuments(); | 200 unsigned long numberOfLiveDocuments(); |
195 sequence<DOMString> consoleMessageArgumentCounts(Document document); | 201 sequence<DOMString> consoleMessageArgumentCounts(Document document); |
196 Window openDummyInspectorFrontend(DOMString url); | 202 Window openDummyInspectorFrontend(DOMString url); |
197 void closeDummyInspectorFrontend(); | 203 void closeDummyInspectorFrontend(); |
| 204 unsigned long[] setMemoryCacheCapacities(unsigned long minDeadBytes, unsigne
d long maxDeadBytes, unsigned long totalBytes); |
198 [RaisesException] void setInspectorResourcesDataSizeLimits(long maximumResou
rcesContentSize, long maximumSingleResourceContentSize); | 205 [RaisesException] void setInspectorResourcesDataSizeLimits(long maximumResou
rcesContentSize, long maximumSingleResourceContentSize); |
199 | 206 |
200 DOMString counterValue(Element element); | 207 DOMString counterValue(Element element); |
201 long pageNumber(Element element, optional float pageWidth, optional float pa
geHeight); | 208 long pageNumber(Element element, optional float pageWidth, optional float pa
geHeight); |
202 DOMString[] shortcutIconURLs(Document document); | 209 DOMString[] shortcutIconURLs(Document document); |
203 DOMString[] allIconURLs(Document document); | 210 DOMString[] allIconURLs(Document document); |
204 long numberOfPages(optional double pageWidthInPixels, optional double pageHe
ightInPixels); | 211 long numberOfPages(optional double pageWidthInPixels, optional double pageHe
ightInPixels); |
205 [RaisesException] DOMString pageProperty(DOMString propertyName, long pageNu
mber); | 212 [RaisesException] DOMString pageProperty(DOMString propertyName, long pageNu
mber); |
206 [RaisesException] DOMString pageSizeAndMarginsInPixels(long pageIndex, long
width, long height, long marginTop, long marginRight, long marginBottom, long ma
rginLeft); | 213 [RaisesException] DOMString pageSizeAndMarginsInPixels(long pageIndex, long
width, long height, long marginTop, long marginRight, long marginBottom, long ma
rginLeft); |
207 | 214 |
(...skipping 18 matching lines...) Expand all Loading... |
226 // These functions both reset the tracked repaint rects. They are inteded to
be used in the following order: | 233 // These functions both reset the tracked repaint rects. They are inteded to
be used in the following order: |
227 // startTrackingRepaints, repaintRectsAsText, stopTrackingRepaints. | 234 // startTrackingRepaints, repaintRectsAsText, stopTrackingRepaints. |
228 [RaisesException] void startTrackingRepaints(Document document); | 235 [RaisesException] void startTrackingRepaints(Document document); |
229 [RaisesException] void stopTrackingRepaints(Document document); | 236 [RaisesException] void stopTrackingRepaints(Document document); |
230 | 237 |
231 // Returns a string with information about the mouse cursor used at the spec
ified client location. | 238 // Returns a string with information about the mouse cursor used at the spec
ified client location. |
232 [RaisesException] DOMString getCurrentCursorInfo(Document document); | 239 [RaisesException] DOMString getCurrentCursorInfo(Document document); |
233 | 240 |
234 [RaisesException] DOMString markerTextForListItem(Element element); | 241 [RaisesException] DOMString markerTextForListItem(Element element); |
235 | 242 |
| 243 [RaisesException] DOMString baseURL(Document document); |
| 244 |
236 SerializedScriptValue deserializeBuffer(ArrayBuffer buffer); | 245 SerializedScriptValue deserializeBuffer(ArrayBuffer buffer); |
237 ArrayBuffer serializeObject(SerializedScriptValue obj); | 246 ArrayBuffer serializeObject(SerializedScriptValue obj); |
238 | 247 |
239 void setUsesOverlayScrollbars(boolean enabled); | 248 void setUsesOverlayScrollbars(boolean enabled); |
240 | 249 |
241 void forceReload(boolean endToEnd); | 250 void forceReload(boolean endToEnd); |
242 | 251 |
243 void enableMockSpeechSynthesizer(); | 252 void enableMockSpeechSynthesizer(); |
244 | 253 |
245 [RaisesException] DOMString getImageSourceURL(Element element); | 254 [RaisesException] DOMString getImageSourceURL(Element element); |
246 | 255 |
247 boolean isSelectPopupVisible(Node node); | 256 boolean isSelectPopupVisible(Node node); |
248 | 257 |
249 [RaisesException] ClientRect selectionBounds(); | 258 [RaisesException] ClientRect selectionBounds(); |
| 259 |
| 260 boolean loseSharedGraphicsContext3D(); |
250 }; | 261 }; |
OLD | NEW |