Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(383)

Side by Side Diff: core/testing/Internals.idl

Issue 581453002: Dartium Roll 38 roll (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Sync'd w/ r 182210 Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « core/testing/InternalSettings.idl ('k') | core/testing/MallocStatistics.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 14 matching lines...) Expand all
25 */ 25 */
26 26
27 [ 27 [
28 DoNotCheckConstants, 28 DoNotCheckConstants,
29 WillBeGarbageCollected, 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, TypeChecking=Interface] 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 [TypeChecking=Interface] boolean isSharingStyle(Element element1, Element el ement2);
46 46
47 [RaisesException] CSSStyleDeclaration computedStyleIncludingVisitedInfo(Node node); 47 [TypeChecking=Interface] CSSStyleDeclaration computedStyleIncludingVisitedIn fo(Node node);
48 48
49 [RaisesException] ShadowRoot shadowRoot(Element host); 49 [TypeChecking=Interface] ShadowRoot shadowRoot(Element host);
50 [RaisesException] ShadowRoot youngestShadowRoot(Element host); 50 [TypeChecking=Interface] ShadowRoot youngestShadowRoot(Element host);
51 [RaisesException] ShadowRoot oldestShadowRoot(Element host); 51 [TypeChecking=Interface] ShadowRoot oldestShadowRoot(Element host);
52 [RaisesException] ShadowRoot youngerShadowRoot(Node root); 52 [RaisesException, TypeChecking=Interface] ShadowRoot youngerShadowRoot(Node root);
53 53
54 [RaisesException] DOMString shadowRootType(Node root); 54 [RaisesException, TypeChecking=Interface] DOMString shadowRootType(Node root );
55 [RaisesException] boolean hasShadowInsertionPoint(Node root); 55 [RaisesException] boolean hasShadowInsertionPoint(Node root);
56 [RaisesException] boolean hasContentElement(Node root); 56 [RaisesException] boolean hasContentElement(Node root);
57 [RaisesException] unsigned long countElementShadow(Node Root); 57 [RaisesException, TypeChecking=Interface] unsigned long countElementShadow(N ode Root);
58 [RaisesException] DOMString shadowPseudoId(Element element); 58 [TypeChecking=Interface] DOMString shadowPseudoId(Element element);
59 [RaisesException] void setShadowPseudoId(Element element, DOMString id); 59 [TypeChecking=Interface] void setShadowPseudoId(Element element, DOMString i d);
60 [RaisesException] boolean isValidContentSelect(Element contentElement); 60 [RaisesException, TypeChecking=Interface] boolean isValidContentSelect(Eleme nt contentElement);
61 [RaisesException] Node treeScopeRootNode(Node node); 61 [TypeChecking=Interface] Node treeScopeRootNode(Node node);
62 [RaisesException] Node parentTreeScope(Node node); 62 [TypeChecking=Interface] Node parentTreeScope(Node node);
63 [RaisesException] boolean hasSelectorForIdInShadow(Element host, DOMString i d); 63 [RaisesException, TypeChecking=Interface] boolean hasSelectorForIdInShadow(E lement host, DOMString id);
64 [RaisesException] boolean hasSelectorForClassInShadow(Element host, DOMStrin g className); 64 [RaisesException, TypeChecking=Interface] boolean hasSelectorForClassInShado w(Element host, DOMString className);
65 [RaisesException] boolean hasSelectorForAttributeInShadow(Element host, DOMS tring attributeName); 65 [RaisesException, TypeChecking=Interface] boolean hasSelectorForAttributeInS hadow(Element host, DOMString attributeName);
66 [RaisesException] boolean hasSelectorForPseudoClassInShadow(Element host, DO MString pseudoClass); 66 [RaisesException, TypeChecking=Interface] boolean hasSelectorForPseudoClassI nShadow(Element host, DOMString pseudoClass);
67 [RaisesException] unsigned short compareTreeScopePosition(Node treeScope1, N ode treeScope2); 67 [RaisesException, TypeChecking=Interface] unsigned short compareTreeScopePos ition(Node treeScope1, Node treeScope2);
68 [RaisesException] unsigned long updateStyleAndReturnAffectedElementCount(); 68 [RaisesException] unsigned long updateStyleAndReturnAffectedElementCount();
69 [RaisesException] unsigned long needsLayoutCount(); 69 [RaisesException] unsigned long needsLayoutCount();
70 [RaisesException] unsigned long hitTestCount(Document document);
70 71
71 // CSS Animation and Transition testing. 72 // CSS Animation and Transition testing.
72 unsigned long numberOfActiveAnimations();
73 [RaisesException] void pauseAnimations(double pauseTime); 73 [RaisesException] void pauseAnimations(double pauseTime);
74 74
75 [RaisesException] Node nextSiblingByWalker(Node node); 75 [TypeChecking=Interface] Node nextSiblingByWalker(Node node);
76 [RaisesException] Node firstChildByWalker(Node node); 76 [TypeChecking=Interface] Node firstChildByWalker(Node node);
77 [RaisesException] Node lastChildByWalker(Node node); 77 [TypeChecking=Interface] Node lastChildByWalker(Node node);
78 [RaisesException] Node nextNodeByWalker(Node node); 78 [TypeChecking=Interface] Node nextNodeByWalker(Node node);
79 [RaisesException] Node previousNodeByWalker(Node node); 79 [TypeChecking=Interface] Node previousNodeByWalker(Node node);
80 80
81 DOMString visiblePlaceholder(Element element); 81 DOMString visiblePlaceholder(Element element);
82 82
83 void selectColorInColorChooser(Element element, DOMString colorValue); 83 [TypeChecking=Interface] void selectColorInColorChooser(Element element, DOM String colorValue);
84 84
85 // If the argument is omitted, the top-level document is used. 85 // If the argument is omitted, the top-level document is used.
86 boolean hasAutofocusRequest(optional Document document); 86 boolean hasAutofocusRequest(optional Document document);
87 [RaisesException] DOMString[] formControlStateOfHistoryItem(); 87 [RaisesException] DOMString[] formControlStateOfHistoryItem();
88 [RaisesException] void setFormControlStateOfHistoryItem(sequence<DOMString> values); 88 [RaisesException] void setFormControlStateOfHistoryItem(sequence<DOMString> values);
89 [RaisesException] void setEnableMockPagePopup(boolean enabled); 89 [RaisesException] void setEnableMockPagePopup(boolean enabled);
90 readonly attribute PagePopupController pagePopupController; 90 readonly attribute PagePopupController pagePopupController;
91 91
92 [RaisesException] ClientRect unscaledViewportRect(); 92 [RaisesException] ClientRect unscaledViewportRect();
93 93
94 [RaisesException] ClientRect absoluteCaretBounds(); 94 [RaisesException] ClientRect absoluteCaretBounds();
95 95
96 [RaisesException] ClientRect boundingBox(Element element); 96 [TypeChecking=Interface] ClientRect boundingBox(Element element);
97 97
98 [RaisesException] unsigned long markerCountForNode(Node node, DOMString mark erType); 98 [RaisesException, TypeChecking=Interface] unsigned long markerCountForNode(N ode node, DOMString markerType);
99 [RaisesException] unsigned long activeMarkerCountForNode(Node node); 99 [TypeChecking=Interface] unsigned long activeMarkerCountForNode(Node node);
100 [RaisesException] Range markerRangeForNode(Node node, DOMString markerType, unsigned long index); 100 [RaisesException, TypeChecking=Interface] Range markerRangeForNode(Node node , DOMString markerType, unsigned long index);
101 [RaisesException] DOMString markerDescriptionForNode(Node node, DOMString ma rkerType, unsigned long index); 101 [RaisesException, TypeChecking=Interface] DOMString markerDescriptionForNode (Node node, DOMString markerType, unsigned long index);
102 void addTextMatchMarker(Range range, boolean isActive); 102 [TypeChecking=Interface] void addTextMatchMarker(Range range, boolean isActi ve);
103 [RaisesException] void setMarkersActive(Node node, unsigned long startOffset , unsigned long endOffset, boolean active); 103 [TypeChecking=Interface] void setMarkersActive(Node node, unsigned long star tOffset, unsigned long endOffset, boolean active);
104 [RaisesException] void setMarkedTextMatchesAreHighlighted(Document document, boolean highlight); 104 void setMarkedTextMatchesAreHighlighted(Document document, boolean highlight );
105 105
106 [RaisesException] void setScrollViewPosition(Document document, long x, long y); 106 [RaisesException, TypeChecking=Interface] void setScrollViewPosition(Documen t document, long x, long y);
107 107
108 [RaisesException] DOMString viewportAsText(Document document, 108 [RaisesException, TypeChecking=Interface] DOMString viewportAsText(Document document,
109 float devicePixelRatio, 109 float dev icePixelRatio,
110 long availableWidth, 110 long avai lableWidth,
111 long availableHeight); 111 long avai lableHeight);
112 112
113 [RaisesException] boolean wasLastChangeUserEdit(Element textField); 113 [RaisesException, TypeChecking=Interface] boolean wasLastChangeUserEdit(Elem ent textField);
114 [RaisesException] boolean elementShouldAutoComplete(Element inputElement); 114 [RaisesException, TypeChecking=Interface] boolean elementShouldAutoComplete( Element inputElement);
115 [RaisesException] DOMString suggestedValue(Element inputElement); 115 [RaisesException, TypeChecking=Interface] DOMString suggestedValue(Element i nputElement);
116 [RaisesException] void setSuggestedValue(Element inputElement, DOMString val ue); 116 [RaisesException, TypeChecking=Interface] void setSuggestedValue(Element inp utElement, DOMString value);
117 [RaisesException] void setEditingValue(Element inputElement, DOMString value ); 117 [RaisesException, TypeChecking=Interface] void setEditingValue(Element input Element, DOMString value);
118 [RaisesException] void setAutofilled(Element inputElement, boolean enabled); 118 [RaisesException, TypeChecking=Interface] void setAutofilled(Element inputEl ement, boolean enabled);
119 119
120 [RaisesException] void scrollElementToRect(Element element, long x, long y, long w, long h); 120 [RaisesException, TypeChecking=Interface] void scrollElementToRect(Element e lement, long x, long y, long w, long h);
121 121
122 [RaisesException] Range rangeFromLocationAndLength(Element scope, long range Location, long rangeLength); 122 [TypeChecking=Interface] Range rangeFromLocationAndLength(Element scope, lon g rangeLocation, long rangeLength);
123 [RaisesException] unsigned long locationFromRange(Element scope, Range range ); 123 [TypeChecking=Interface] unsigned long locationFromRange(Element scope, Rang e range);
124 [RaisesException] unsigned long lengthFromRange(Element scope, Range range); 124 [TypeChecking=Interface] unsigned long lengthFromRange(Element scope, Range range);
125 [RaisesException] DOMString rangeAsText(Range range); 125 [TypeChecking=Interface] DOMString rangeAsText(Range range);
126 126
127 [RaisesException] WebKitPoint touchPositionAdjustedToBestClickableNode(long x, long y, long width, long height, Document document); 127 [RaisesException, TypeChecking=Interface] WebKitPoint touchPositionAdjustedT oBestClickableNode(long x, long y, long width, long height, Document document);
128 [RaisesException] Node touchNodeAdjustedToBestClickableNode(long x, long y, long width, long height, Document document); 128 [RaisesException, TypeChecking=Interface] Node touchNodeAdjustedToBestClicka bleNode(long x, long y, long width, long height, Document document);
129 [RaisesException] WebKitPoint touchPositionAdjustedToBestContextMenuNode(lon g x, long y, long width, long height, Document document); 129 [RaisesException, TypeChecking=Interface] WebKitPoint touchPositionAdjustedT oBestContextMenuNode(long x, long y, long width, long height, Document document) ;
130 [RaisesException] Node touchNodeAdjustedToBestContextMenuNode(long x, long y , long width, long height, Document document); 130 [RaisesException, TypeChecking=Interface] Node touchNodeAdjustedToBestContex tMenuNode(long x, long y, long width, long height, Document document);
131 [RaisesException] ClientRect bestZoomableAreaForTouchPoint(long x, long y, l ong width, long height, Document document); 131 [RaisesException, TypeChecking=Interface] ClientRect bestZoomableAreaForTouc hPoint(long x, long y, long width, long height, Document document);
132 132
133 [RaisesException] long lastSpellCheckRequestSequence(Document document); 133 [RaisesException] long lastSpellCheckRequestSequence(Document document);
134 [RaisesException] long lastSpellCheckProcessedSequence(Document document); 134 [RaisesException] long lastSpellCheckProcessedSequence(Document document);
135 135
136 sequence<DOMString> userPreferredLanguages(); 136 sequence<DOMString> userPreferredLanguages();
137 void setUserPreferredLanguages(sequence<DOMString> languages); 137 void setUserPreferredLanguages(sequence<DOMString> languages);
138 138
139 [RaisesException] unsigned long activeDOMObjectCount(Document document); 139 [TypeChecking=Interface] unsigned long activeDOMObjectCount(Document documen t);
140 [RaisesException] unsigned long wheelEventHandlerCount(Document document); 140 [TypeChecking=Interface] unsigned long wheelEventHandlerCount(Document docum ent);
141 [RaisesException] unsigned long scrollEventHandlerCount(Document document); 141 [TypeChecking=Interface] unsigned long scrollEventHandlerCount(Document docu ment);
142 [RaisesException] unsigned long touchEventHandlerCount(Document document); 142 [TypeChecking=Interface] unsigned long touchEventHandlerCount(Document docum ent);
143 [RaisesException] LayerRectList touchEventTargetLayerRects(Document document ); 143 [RaisesException, TypeChecking=Interface] LayerRectList touchEventTargetLaye rRects(Document document);
144 144
145 145
146 [RaisesException] NodeList nodesFromRect(Document document, long x, long y, 146 [RaisesException, TypeChecking=Interface] NodeList nodesFromRect(Document do cument, long x, long y,
147 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,
148 boolean ignoreClipping, boolean allowShadowContent, boolean allowChildFr ameContent); 148 boolean ignoreClipping, boolean allowChildFrameContent);
149 149
150 void emitInspectorDidBeginFrame(optional long frameId); 150 void emitInspectorDidBeginFrame(optional long frameId);
151 void emitInspectorDidCancelFrame(); 151 void emitInspectorDidCancelFrame();
152 152
153 [RaisesException] boolean hasSpellingMarker(Document document, long from, lo ng length); 153 [TypeChecking=Interface] boolean hasSpellingMarker(Document document, long f rom, long length);
154 [RaisesException] boolean hasGrammarMarker(Document document, long from, lon g length); 154 [TypeChecking=Interface] boolean hasGrammarMarker(Document document, long fr om, long length);
155 [RaisesException] void setContinuousSpellCheckingEnabled(boolean enabled); 155 void setContinuousSpellCheckingEnabled(boolean enabled);
156 156
157 [RaisesException] boolean isOverwriteModeEnabled(Document document); 157 [TypeChecking=Interface] boolean isOverwriteModeEnabled(Document document);
158 [RaisesException] void toggleOverwriteModeEnabled(Document document); 158 [TypeChecking=Interface] void toggleOverwriteModeEnabled(Document document);
159 159
160 [RaisesException] unsigned long numberOfScrollableAreas(Document document); 160 [TypeChecking=Interface] unsigned long numberOfScrollableAreas(Document docu ment);
161 161
162 [RaisesException] boolean isPageBoxVisible(Document document, long pageNumbe r); 162 [TypeChecking=Interface] boolean isPageBoxVisible(Document document, long pa geNumber);
163 163
164 readonly attribute InternalSettings settings; 164 readonly attribute InternalSettings settings;
165 readonly attribute InternalProfilers profilers; 165 readonly attribute InternalProfilers profilers;
166 readonly attribute InternalRuntimeFlags runtimeFlags; 166 readonly attribute InternalRuntimeFlags runtimeFlags;
167 readonly attribute unsigned long workerThreadCount; 167 readonly attribute unsigned long workerThreadCount;
168 168
169 // Flags for layerTreeAsText. 169 // Flags for layerTreeAsText.
170 // 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.
171 const unsigned short LAYER_TREE_INCLUDES_REPAINT_RECTS = 2; 171 const unsigned short LAYER_TREE_INCLUDES_REPAINT_RECTS = 2;
172 const unsigned short LAYER_TREE_INCLUDES_PAINTING_PHASES = 4; 172 const unsigned short LAYER_TREE_INCLUDES_PAINTING_PHASES = 4;
173 const unsigned short LAYER_TREE_INCLUDES_ROOT_LAYER = 8; 173 const unsigned short LAYER_TREE_INCLUDES_ROOT_LAYER = 8;
174 const unsigned short LAYER_TREE_INCLUDES_CLIP_AND_SCROLL_PARENTS = 16; 174 const unsigned short LAYER_TREE_INCLUDES_CLIP_AND_SCROLL_PARENTS = 16;
175 [RaisesException] DOMString layerTreeAsText(Document document, optional unsi gned short flags); 175 [RaisesException, TypeChecking=Interface] DOMString layerTreeAsText(Document document, optional unsigned short flags);
176 [RaisesException] DOMString elementLayerTreeAsText(Element element, optional unsigned short flags); 176 [RaisesException, TypeChecking=Interface] DOMString elementLayerTreeAsText(E lement element, optional unsigned short flags);
177 177
178 [RaisesException] boolean scrollsWithRespectTo(Element element1, Element ele ment2); 178 [RaisesException, TypeChecking=Interface] boolean scrollsWithRespectTo(Eleme nt element1, Element element2);
179 [RaisesException] boolean isUnclippedDescendant(Element element); 179 [RaisesException, TypeChecking=Interface] boolean isUnclippedDescendant(Elem ent element);
180 180
181 [RaisesException] DOMString scrollingStateTreeAsText(Document document); 181 [TypeChecking=Interface] DOMString scrollingStateTreeAsText(Document documen t);
182 [RaisesException] DOMString mainThreadScrollingReasons(Document document); 182 [RaisesException, TypeChecking=Interface] DOMString mainThreadScrollingReaso ns(Document document);
183 [RaisesException] ClientRectList nonFastScrollableRects(Document document); 183 [RaisesException, TypeChecking=Interface] ClientRectList nonFastScrollableRe cts(Document document);
184 184
185 [RaisesException] DOMString repaintRectsAsText(Document document); 185 [TypeChecking=Interface] void garbageCollectDocumentResources(Document docum ent);
186 [RaisesException] ClientRectList repaintRects(Element element);
187
188 [RaisesException] void garbageCollectDocumentResources(Document document);
189 void evictAllResources(); 186 void evictAllResources();
190 187
191 void allowRoundingHacks();
192
193 unsigned long numberOfLiveNodes(); 188 unsigned long numberOfLiveNodes();
194 unsigned long numberOfLiveDocuments(); 189 unsigned long numberOfLiveDocuments();
195 DOMString dumpRefCountedInstanceCounts(); 190 DOMString dumpRefCountedInstanceCounts();
196 sequence<DOMString> consoleMessageArgumentCounts(Document document); 191 sequence<DOMString> consoleMessageArgumentCounts(Document document);
197 unsigned long[] setMemoryCacheCapacities(unsigned long minDeadBytes, unsigne d long maxDeadBytes, unsigned long totalBytes); 192 unsigned long[] setMemoryCacheCapacities(unsigned long minDeadBytes, unsigne d long maxDeadBytes, unsigned long totalBytes);
198 [RaisesException] void setInspectorResourcesDataSizeLimits(long maximumResou rcesContentSize, long maximumSingleResourceContentSize); 193 [RaisesException] void setInspectorResourcesDataSizeLimits(long maximumResou rcesContentSize, long maximumSingleResourceContentSize);
199 194
200 DOMString counterValue(Element element); 195 DOMString counterValue(Element element);
201 long pageNumber(Element element, optional float pageWidth, optional float pa geHeight); 196 long pageNumber(Element element, optional float pageWidth, optional float pa geHeight);
202 DOMString[] shortcutIconURLs(Document document); 197 DOMString[] shortcutIconURLs(Document document);
203 DOMString[] allIconURLs(Document document); 198 DOMString[] allIconURLs(Document document);
204 long numberOfPages(optional double pageWidthInPixels, optional double pageHe ightInPixels); 199 long numberOfPages(optional double pageWidthInPixels, optional double pageHe ightInPixels);
205 [RaisesException] DOMString pageProperty(DOMString propertyName, long pageNu mber); 200 [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); 201 [RaisesException] DOMString pageSizeAndMarginsInPixels(long pageIndex, long width, long height, long marginTop, long marginRight, long marginBottom, long ma rginLeft);
207 202
208 [RaisesException] void setDeviceScaleFactor(float scaleFactor); 203 [RaisesException] void setDeviceScaleFactor(float scaleFactor);
209 204
210 [RaisesException] void setIsCursorVisible(Document document, boolean isVisib le); 205 [RaisesException, TypeChecking=Interface] void setIsCursorVisible(Document d ocument, boolean isVisible);
211
212 void webkitWillEnterFullScreenForElement(Document document, Element element) ;
213 void webkitDidEnterFullScreenForElement(Document document, Element element);
214 void webkitWillExitFullScreenForElement(Document document, Element element);
215 void webkitDidExitFullScreenForElement(Document document, Element element);
216 206
217 void mediaPlayerRequestFullscreen(HTMLMediaElement mediaElement); 207 void mediaPlayerRequestFullscreen(HTMLMediaElement mediaElement);
208 double effectiveMediaVolume(HTMLMediaElement mediaElement);
218 209
219 void registerURLSchemeAsBypassingContentSecurityPolicy(DOMString scheme); 210 void registerURLSchemeAsBypassingContentSecurityPolicy(DOMString scheme);
220 void removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(DOMString sch eme); 211 void removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(DOMString sch eme);
221 212
222 MallocStatistics mallocStatistics();
223 TypeConversions typeConversions(); 213 TypeConversions typeConversions();
224 214
215 // This is enabled only in Debug builds.
216 // This is because we want to avoid putting the byte stream of testing priva te scripts
217 // into the binary of Release builds.
218 PrivateScriptTest privateScriptTest();
219
225 DOMString[] getReferencedFilePaths(); 220 DOMString[] getReferencedFilePaths();
226 221
227 // These functions both reset the tracked repaint rects. They are inteded to be used in the following order: 222 // These functions both reset the tracked repaint rects. They are inteded to be used in the following order:
228 // startTrackingRepaints, repaintRectsAsText, stopTrackingRepaints. 223 // startTrackingRepaints, repaintRectsAsText, stopTrackingRepaints.
229 [RaisesException] void startTrackingRepaints(Document document); 224 [RaisesException, TypeChecking=Interface] void startTrackingRepaints(Documen t document);
230 [RaisesException] void stopTrackingRepaints(Document document); 225 [RaisesException, TypeChecking=Interface] void stopTrackingRepaints(Document document);
231 226
232 // |node| should be Document, HTMLIFrameElement, or unspecified. 227 // |node| should be Document, HTMLIFrameElement, or unspecified.
233 // If |node| is an HTMLIFrameElement, it assumes node.contentDocument is 228 // If |node| is an HTMLIFrameElement, it assumes node.contentDocument is
234 // specified without security checks. Unspecified means this document. 229 // specified without security checks. Unspecified means this document.
235 [RaisesException] void updateLayoutIgnorePendingStylesheetsAndRunPostLayoutT asks(optional Node node); 230 [RaisesException] void updateLayoutIgnorePendingStylesheetsAndRunPostLayoutT asks(optional Node node);
236 231
237 [RaisesException] void forceFullRepaint(Document document); 232 [RaisesException, TypeChecking=Interface] void forceFullRepaint(Document doc ument);
238 233
239 // Returns a list of draggable/non-draggable regions in the document. 234 // Returns a list of draggable/non-draggable regions in the document.
240 [RaisesException] ClientRectList draggableRegions(Document document); 235 [RaisesException, TypeChecking=Interface] ClientRectList draggableRegions(Do cument document);
241 [RaisesException] ClientRectList nonDraggableRegions(Document document); 236 [RaisesException, TypeChecking=Interface] ClientRectList nonDraggableRegions (Document document);
242 237
243 // 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.
244 [RaisesException] DOMString getCurrentCursorInfo(Document document); 239 [RaisesException, TypeChecking=Interface] DOMString getCurrentCursorInfo(Doc ument document);
245 240
246 [RaisesException] DOMString markerTextForListItem(Element element); 241 [TypeChecking=Interface] DOMString markerTextForListItem(Element element);
247 242
248 [RaisesException] DOMString baseURL(Document document); 243 [TypeChecking=Interface] DOMString baseURL(Document document);
249 244
250 SerializedScriptValue deserializeBuffer(ArrayBuffer buffer); 245 SerializedScriptValue deserializeBuffer(ArrayBuffer buffer);
251 ArrayBuffer serializeObject(SerializedScriptValue obj); 246 ArrayBuffer serializeObject(SerializedScriptValue obj);
252 247
253 void forceReload(boolean endToEnd); 248 void forceReload(boolean endToEnd);
254 249
255 [RaisesException] DOMString getImageSourceURL(Element element); 250 [TypeChecking=Interface] DOMString getImageSourceURL(Element element);
256 251
257 boolean isSelectPopupVisible(Node node); 252 [TypeChecking=Interface] boolean isSelectPopupVisible(Node node);
253 boolean selectPopupItemStyleIsRtl(Node select, long itemIndex);
254 long selectPopupItemStyleFontHeight(Node select, long itemIndex);
258 255
259 [RaisesException] ClientRect selectionBounds(); 256 [RaisesException] ClientRect selectionBounds();
260 257
261 boolean loseSharedGraphicsContext3D(); 258 boolean loseSharedGraphicsContext3D();
262 259
263 [RaisesException] void forceCompositingUpdate(Document document); 260 [RaisesException, TypeChecking=Interface] void forceCompositingUpdate(Docume nt document);
264 261
265 void setZoomFactor(float factor); 262 void setZoomFactor(float factor);
266 263
267 [RaisesException] void setShouldRevealPassword(Element element, boolean reve al); 264 [RaisesException, TypeChecking=Interface] void setShouldRevealPassword(Eleme nt element, boolean reveal);
268 265
269 [CallWith=ScriptState] Promise createPromise();
270 [CallWith=ScriptState] Promise createResolvedPromise(any value); 266 [CallWith=ScriptState] Promise createResolvedPromise(any value);
271 [CallWith=ScriptState] Promise createRejectedPromise(any reason); 267 [CallWith=ScriptState] Promise createRejectedPromise(any reason);
272 [CallWith=ExecutionContext] Promise addOneToPromise(Promise promise); 268 [CallWith=ScriptState] Promise addOneToPromise(Promise promise);
269 [CallWith=ScriptState, RaisesException] Promise promiseCheck(long arg1, bool ean arg2, Dictionary arg3, DOMString arg4, DOMString[] arg5);
270 [CallWith=ScriptState] Promise promiseCheckWithoutExceptionState(Dictionary arg1, DOMString arg2, DOMString... variadic);
271 [CallWith=ScriptState] Promise promiseCheckRange([EnforceRange] octet arg1);
273 272
274 void setValueForUser(Element element, DOMString value); 273 void setValueForUser(Element element, DOMString value);
275 274
276 DOMString textSurroundingNode(Node node, long x, long y, unsigned long maxLe ngth); 275 DOMString textSurroundingNode(Node node, long x, long y, unsigned long maxLe ngth);
277 276
278 void setFocused(boolean focused); 277 void setFocused(boolean focused);
279 278
280 [RaisesException] boolean ignoreLayoutWithPendingStylesheets(Document docume nt); 279 [TypeChecking=Interface] boolean ignoreLayoutWithPendingStylesheets(Document document);
281 280
282 // These functions are for testing NetInfo. You must call setNetworkStateNot ifierTestOnly(true) 281 // These functions are for testing NetInfo. You must call setNetworkStateNot ifierTestOnly(true)
283 // before calling setNetworkConnectionInfo. 282 // before calling setNetworkConnectionInfo.
284 void setNetworkStateNotifierTestOnly(boolean testOnly); 283 void setNetworkStateNotifierTestOnly(boolean testOnly);
285 [RaisesException] void setNetworkConnectionInfo(DOMString type); 284 [RaisesException] void setNetworkConnectionInfo(DOMString type);
285
286 // This function is for testing HitRegions on Canvas2D.
287 unsigned long countHitRegions(CanvasRenderingContext2D context);
288
289 DOMString serializeNavigationMarkup();
290 void hideAllTransitionElements();
286 }; 291 };
OLDNEW
« no previous file with comments | « core/testing/InternalSettings.idl ('k') | core/testing/MallocStatistics.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698