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 19 matching lines...) Expand all Loading... |
30 DOMString address(Node node); | 30 DOMString address(Node node); |
31 | 31 |
32 GCObservation observeGC(any observed); | 32 GCObservation observeGC(any observed); |
33 | 33 |
34 [RaisesException] DOMString elementRenderTreeAsText(Element element); | 34 [RaisesException] DOMString elementRenderTreeAsText(Element element); |
35 boolean isPreloaded(DOMString url); | 35 boolean isPreloaded(DOMString url); |
36 boolean isLoadingFromMemoryCache(DOMString url); | 36 boolean isLoadingFromMemoryCache(DOMString url); |
37 | 37 |
38 void crash(); | 38 void crash(); |
39 | 39 |
| 40 void setStyleResolverStatsEnabled(boolean enabled); |
| 41 [RaisesException] DOMString styleResolverStatsReport(); |
| 42 [RaisesException] DOMString styleResolverStatsTotalsReport(); |
| 43 |
40 [RaisesException] unsigned long numberOfScopedHTMLStyleChildren(Node scope); | 44 [RaisesException] unsigned long numberOfScopedHTMLStyleChildren(Node scope); |
41 [RaisesException] CSSStyleDeclaration computedStyleIncludingVisitedInfo(Node
node); | 45 [RaisesException] CSSStyleDeclaration computedStyleIncludingVisitedInfo(Node
node); |
42 | 46 |
43 [RaisesException] ShadowRoot ensureShadowRoot(Element host); | 47 [RaisesException] ShadowRoot ensureShadowRoot(Element host); |
44 [RaisesException] ShadowRoot shadowRoot(Element host); | 48 [RaisesException] ShadowRoot shadowRoot(Element host); |
45 [RaisesException] ShadowRoot youngestShadowRoot(Element host); | 49 [RaisesException] ShadowRoot youngestShadowRoot(Element host); |
46 [RaisesException] ShadowRoot oldestShadowRoot(Element host); | 50 [RaisesException] ShadowRoot oldestShadowRoot(Element host); |
47 [RaisesException] ShadowRoot youngerShadowRoot(Node root); | 51 [RaisesException] ShadowRoot youngerShadowRoot(Node root); |
48 [RaisesException] ShadowRoot olderShadowRoot(Node root); | 52 [RaisesException] ShadowRoot olderShadowRoot(Node root); |
49 | 53 |
50 [RaisesException] DOMString shadowRootType(Node root); | 54 [RaisesException] DOMString shadowRootType(Node root); |
51 [RaisesException] boolean hasShadowInsertionPoint(Node root); | 55 [RaisesException] boolean hasShadowInsertionPoint(Node root); |
52 [RaisesException] boolean hasContentElement(Node root); | 56 [RaisesException] boolean hasContentElement(Node root); |
53 [RaisesException] unsigned long countElementShadow(Node Root); | 57 [RaisesException] unsigned long countElementShadow(Node Root); |
54 [RaisesException] DOMString shadowPseudoId(Element element); | 58 [RaisesException] DOMString shadowPseudoId(Element element); |
55 [RaisesException] void setShadowPseudoId(Element element, DOMString id); | 59 [RaisesException] void setShadowPseudoId(Element element, DOMString id); |
56 [RaisesException] Element createContentElement(); | 60 [RaisesException] Element createContentElement(); |
57 [RaisesException] boolean isValidContentSelect(Element contentElement); | 61 [RaisesException] boolean isValidContentSelect(Element contentElement); |
58 [RaisesException] Node treeScopeRootNode(Node node); | 62 [RaisesException] Node treeScopeRootNode(Node node); |
59 [RaisesException] Node parentTreeScope(Node node); | 63 [RaisesException] Node parentTreeScope(Node node); |
60 [RaisesException] boolean hasSelectorForIdInShadow(Element host, DOMString i
d); | 64 [RaisesException] boolean hasSelectorForIdInShadow(Element host, DOMString i
d); |
61 [RaisesException] boolean hasSelectorForClassInShadow(Element host, DOMStrin
g className); | 65 [RaisesException] boolean hasSelectorForClassInShadow(Element host, DOMStrin
g className); |
62 [RaisesException] boolean hasSelectorForAttributeInShadow(Element host, DOMS
tring attributeName); | 66 [RaisesException] boolean hasSelectorForAttributeInShadow(Element host, DOMS
tring attributeName); |
63 [RaisesException] boolean hasSelectorForPseudoClassInShadow(Element host, DO
MString pseudoClass); | 67 [RaisesException] boolean hasSelectorForPseudoClassInShadow(Element host, DO
MString pseudoClass); |
64 [RaisesException] unsigned short compareTreeScopePosition(Node treeScope1, N
ode treeScope2); | 68 [RaisesException] unsigned short compareTreeScopePosition(Node treeScope1, N
ode treeScope2); |
| 69 [RaisesException] unsigned long updateStyleAndReturnAffectedElementCount(); |
65 | 70 |
66 // CSS Animation and Transition testing. | 71 // CSS Animation and Transition testing. |
67 unsigned long numberOfActiveAnimations(); | 72 unsigned long numberOfActiveAnimations(); |
68 [RaisesException] void pauseAnimations(double pauseTime); | 73 [RaisesException] void pauseAnimations(double pauseTime); |
69 | 74 |
70 [RaisesException] Node nextSiblingByWalker(Node node); | 75 [RaisesException] Node nextSiblingByWalker(Node node); |
71 [RaisesException] Node firstChildByWalker(Node node); | 76 [RaisesException] Node firstChildByWalker(Node node); |
72 [RaisesException] Node lastChildByWalker(Node node); | 77 [RaisesException] Node lastChildByWalker(Node node); |
73 [RaisesException] Node nextNodeByWalker(Node node); | 78 [RaisesException] Node nextNodeByWalker(Node node); |
74 [RaisesException] Node previousNodeByWalker(Node node); | 79 [RaisesException] Node previousNodeByWalker(Node node); |
75 | 80 |
76 DOMString visiblePlaceholder(Element element); | 81 DOMString visiblePlaceholder(Element element); |
77 | 82 |
78 void selectColorInColorChooser(Element element, DOMString colorValue); | 83 void selectColorInColorChooser(Element element, DOMString colorValue); |
79 | 84 |
80 [RaisesException] DOMString[] formControlStateOfPreviousHistoryItem(); | 85 [RaisesException] DOMString[] formControlStateOfHistoryItem(); |
81 [RaisesException] void setFormControlStateOfPreviousHistoryItem(sequence<DOM
String> values); | 86 [RaisesException] void setFormControlStateOfHistoryItem(sequence<DOMString>
values); |
82 [RaisesException] void setEnableMockPagePopup(boolean enabled); | 87 [RaisesException] void setEnableMockPagePopup(boolean enabled); |
83 readonly attribute PagePopupController pagePopupController; | 88 readonly attribute PagePopupController pagePopupController; |
84 | 89 |
85 [RaisesException] ClientRect unscaledViewportRect(); | 90 [RaisesException] ClientRect unscaledViewportRect(); |
86 | 91 |
87 [RaisesException] ClientRect absoluteCaretBounds(); | 92 [RaisesException] ClientRect absoluteCaretBounds(); |
88 | 93 |
89 [RaisesException] ClientRect boundingBox(Element element); | 94 [RaisesException] ClientRect boundingBox(Element element); |
90 | 95 |
91 [RaisesException] ClientRectList inspectorHighlightRects(Document document); | 96 [RaisesException] ClientRectList inspectorHighlightRects(Document document); |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 const unsigned short DO_NOT_FORCE_COMPOSITED_SCROLLING = 0; | 187 const unsigned short DO_NOT_FORCE_COMPOSITED_SCROLLING = 0; |
183 const unsigned short COMPOSITED_SCROLLING_ALWAYS_ON = 1; | 188 const unsigned short COMPOSITED_SCROLLING_ALWAYS_ON = 1; |
184 const unsigned short COMPOSITED_SCROLLING_ALWAYS_OFF = 2; | 189 const unsigned short COMPOSITED_SCROLLING_ALWAYS_OFF = 2; |
185 [RaisesException] void setNeedsCompositedScrolling(Element element, unsigned
short value); | 190 [RaisesException] void setNeedsCompositedScrolling(Element element, unsigned
short value); |
186 | 191 |
187 [RaisesException] DOMString scrollingStateTreeAsText(Document document); | 192 [RaisesException] DOMString scrollingStateTreeAsText(Document document); |
188 [RaisesException] DOMString mainThreadScrollingReasons(Document document); | 193 [RaisesException] DOMString mainThreadScrollingReasons(Document document); |
189 [RaisesException] ClientRectList nonFastScrollableRects(Document document); | 194 [RaisesException] ClientRectList nonFastScrollableRects(Document document); |
190 | 195 |
191 [RaisesException] DOMString repaintRectsAsText(Document document); | 196 [RaisesException] DOMString repaintRectsAsText(Document document); |
| 197 [RaisesException] ClientRectList repaintRects(Element element); |
192 | 198 |
193 [RaisesException] void garbageCollectDocumentResources(Document document); | 199 [RaisesException] void garbageCollectDocumentResources(Document document); |
194 void evictAllResources(); | 200 void evictAllResources(); |
195 | 201 |
196 void allowRoundingHacks(); | 202 void allowRoundingHacks(); |
197 | 203 |
198 void insertAuthorCSS(Document document, DOMString css); | |
199 void insertUserCSS(Document document, DOMString css); | |
200 | |
201 unsigned long numberOfLiveNodes(); | 204 unsigned long numberOfLiveNodes(); |
202 unsigned long numberOfLiveDocuments(); | 205 unsigned long numberOfLiveDocuments(); |
| 206 DOMString dumpRefCountedInstanceCounts(); |
203 sequence<DOMString> consoleMessageArgumentCounts(Document document); | 207 sequence<DOMString> consoleMessageArgumentCounts(Document document); |
204 Window openDummyInspectorFrontend(DOMString url); | 208 Window openDummyInspectorFrontend(DOMString url); |
205 void closeDummyInspectorFrontend(); | 209 void closeDummyInspectorFrontend(); |
206 unsigned long[] setMemoryCacheCapacities(unsigned long minDeadBytes, unsigne
d long maxDeadBytes, unsigned long totalBytes); | 210 unsigned long[] setMemoryCacheCapacities(unsigned long minDeadBytes, unsigne
d long maxDeadBytes, unsigned long totalBytes); |
207 [RaisesException] void setInspectorResourcesDataSizeLimits(long maximumResou
rcesContentSize, long maximumSingleResourceContentSize); | 211 [RaisesException] void setInspectorResourcesDataSizeLimits(long maximumResou
rcesContentSize, long maximumSingleResourceContentSize); |
208 | 212 |
209 DOMString counterValue(Element element); | 213 DOMString counterValue(Element element); |
210 long pageNumber(Element element, optional float pageWidth, optional float pa
geHeight); | 214 long pageNumber(Element element, optional float pageWidth, optional float pa
geHeight); |
211 DOMString[] shortcutIconURLs(Document document); | 215 DOMString[] shortcutIconURLs(Document document); |
212 DOMString[] allIconURLs(Document document); | 216 DOMString[] allIconURLs(Document document); |
(...skipping 16 matching lines...) Expand all Loading... |
229 MallocStatistics mallocStatistics(); | 233 MallocStatistics mallocStatistics(); |
230 TypeConversions typeConversions(); | 234 TypeConversions typeConversions(); |
231 | 235 |
232 DOMString[] getReferencedFilePaths(); | 236 DOMString[] getReferencedFilePaths(); |
233 | 237 |
234 // These functions both reset the tracked repaint rects. They are inteded to
be used in the following order: | 238 // These functions both reset the tracked repaint rects. They are inteded to
be used in the following order: |
235 // startTrackingRepaints, repaintRectsAsText, stopTrackingRepaints. | 239 // startTrackingRepaints, repaintRectsAsText, stopTrackingRepaints. |
236 [RaisesException] void startTrackingRepaints(Document document); | 240 [RaisesException] void startTrackingRepaints(Document document); |
237 [RaisesException] void stopTrackingRepaints(Document document); | 241 [RaisesException] void stopTrackingRepaints(Document document); |
238 | 242 |
| 243 // |node| should be Document, HTMLIFrameElement, or unspecified. |
| 244 // If |node| is an HTMLIFrameElement, it assumes node.contentDocument is |
| 245 // specified without security checks. Unspecified means this document. |
| 246 [RaisesException] void updateLayoutIgnorePendingStylesheetsAndRunPostLayoutT
asks(optional Node node); |
| 247 |
239 // Returns a list of draggable/non-draggable regions in the document. | 248 // Returns a list of draggable/non-draggable regions in the document. |
240 [RaisesException] ClientRectList draggableRegions(Document document); | 249 [RaisesException] ClientRectList draggableRegions(Document document); |
241 [RaisesException] ClientRectList nonDraggableRegions(Document document); | 250 [RaisesException] ClientRectList nonDraggableRegions(Document document); |
242 | 251 |
243 // Returns a string with information about the mouse cursor used at the spec
ified client location. | 252 // Returns a string with information about the mouse cursor used at the spec
ified client location. |
244 [RaisesException] DOMString getCurrentCursorInfo(Document document); | 253 [RaisesException] DOMString getCurrentCursorInfo(Document document); |
245 | 254 |
246 [RaisesException] DOMString markerTextForListItem(Element element); | 255 [RaisesException] DOMString markerTextForListItem(Element element); |
247 | 256 |
248 [RaisesException] DOMString baseURL(Document document); | 257 [RaisesException] DOMString baseURL(Document document); |
249 | 258 |
250 SerializedScriptValue deserializeBuffer(ArrayBuffer buffer); | 259 SerializedScriptValue deserializeBuffer(ArrayBuffer buffer); |
251 ArrayBuffer serializeObject(SerializedScriptValue obj); | 260 ArrayBuffer serializeObject(SerializedScriptValue obj); |
252 | 261 |
253 void forceReload(boolean endToEnd); | 262 void forceReload(boolean endToEnd); |
254 | 263 |
255 [RaisesException] DOMString getImageSourceURL(Element element); | 264 [RaisesException] DOMString getImageSourceURL(Element element); |
256 | 265 |
257 boolean isSelectPopupVisible(Node node); | 266 boolean isSelectPopupVisible(Node node); |
258 | 267 |
259 [RaisesException] ClientRect selectionBounds(); | 268 [RaisesException] ClientRect selectionBounds(); |
260 | 269 |
261 boolean loseSharedGraphicsContext3D(); | 270 boolean loseSharedGraphicsContext3D(); |
262 | 271 |
263 [RaisesException] void forceCompositingUpdate(Document document); | 272 [RaisesException] void forceCompositingUpdate(Document document); |
| 273 |
| 274 void setZoomFactor(float factor); |
264 }; | 275 }; |
OLD | NEW |