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

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

Issue 445933003: Clean up testing.internals argument type checking. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Tidy up result type Created 6 years, 4 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
« no previous file with comments | « Source/core/testing/Internals.cpp ('k') | no next file » | 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 [RaisesException] unsigned long hitTestCount(Document document);
71 71
72 // CSS Animation and Transition testing. 72 // CSS Animation and Transition testing.
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 [TypeChecking=Interface] void selectColorInColorChooser(Element element, DOM String 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 allowChildFrameContent); 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] void garbageCollectDocumentResources(Document document); 185 [TypeChecking=Interface] void garbageCollectDocumentResources(Document docum ent);
186 void evictAllResources(); 186 void evictAllResources();
187 187
188 unsigned long numberOfLiveNodes(); 188 unsigned long numberOfLiveNodes();
189 unsigned long numberOfLiveDocuments(); 189 unsigned long numberOfLiveDocuments();
190 DOMString dumpRefCountedInstanceCounts(); 190 DOMString dumpRefCountedInstanceCounts();
191 sequence<DOMString> consoleMessageArgumentCounts(Document document); 191 sequence<DOMString> consoleMessageArgumentCounts(Document document);
192 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);
193 [RaisesException] void setInspectorResourcesDataSizeLimits(long maximumResou rcesContentSize, long maximumSingleResourceContentSize); 193 [RaisesException] void setInspectorResourcesDataSizeLimits(long maximumResou rcesContentSize, long maximumSingleResourceContentSize);
194 194
195 DOMString counterValue(Element element); 195 DOMString counterValue(Element element);
196 long pageNumber(Element element, optional float pageWidth, optional float pa geHeight); 196 long pageNumber(Element element, optional float pageWidth, optional float pa geHeight);
197 DOMString[] shortcutIconURLs(Document document); 197 DOMString[] shortcutIconURLs(Document document);
198 DOMString[] allIconURLs(Document document); 198 DOMString[] allIconURLs(Document document);
199 long numberOfPages(optional double pageWidthInPixels, optional double pageHe ightInPixels); 199 long numberOfPages(optional double pageWidthInPixels, optional double pageHe ightInPixels);
200 [RaisesException] DOMString pageProperty(DOMString propertyName, long pageNu mber); 200 [RaisesException] DOMString pageProperty(DOMString propertyName, long pageNu mber);
201 [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);
202 202
203 [RaisesException] void setDeviceScaleFactor(float scaleFactor); 203 [RaisesException] void setDeviceScaleFactor(float scaleFactor);
204 204
205 [RaisesException] void setIsCursorVisible(Document document, boolean isVisib le); 205 [RaisesException, TypeChecking=Interface] void setIsCursorVisible(Document d ocument, boolean isVisible);
206 206
207 void mediaPlayerRequestFullscreen(HTMLMediaElement mediaElement); 207 void mediaPlayerRequestFullscreen(HTMLMediaElement mediaElement);
208 208
209 void registerURLSchemeAsBypassingContentSecurityPolicy(DOMString scheme); 209 void registerURLSchemeAsBypassingContentSecurityPolicy(DOMString scheme);
210 void removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(DOMString sch eme); 210 void removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(DOMString sch eme);
211 211
212 TypeConversions typeConversions(); 212 TypeConversions typeConversions();
213 213
214 // This is enabled only in Debug builds. 214 // This is enabled only in Debug builds.
215 // This is because we want to avoid putting the byte stream of testing priva te scripts 215 // This is because we want to avoid putting the byte stream of testing priva te scripts
216 // into the binary of Release builds. 216 // into the binary of Release builds.
217 PrivateScriptTest privateScriptTest(); 217 PrivateScriptTest privateScriptTest();
218 218
219 DOMString[] getReferencedFilePaths(); 219 DOMString[] getReferencedFilePaths();
220 220
221 // These functions both reset the tracked repaint rects. They are inteded to be used in the following order: 221 // These functions both reset the tracked repaint rects. They are inteded to be used in the following order:
222 // startTrackingRepaints, repaintRectsAsText, stopTrackingRepaints. 222 // startTrackingRepaints, repaintRectsAsText, stopTrackingRepaints.
223 [RaisesException] void startTrackingRepaints(Document document); 223 [RaisesException, TypeChecking=Interface] void startTrackingRepaints(Documen t document);
224 [RaisesException] void stopTrackingRepaints(Document document); 224 [RaisesException, TypeChecking=Interface] void stopTrackingRepaints(Document document);
225 225
226 // |node| should be Document, HTMLIFrameElement, or unspecified. 226 // |node| should be Document, HTMLIFrameElement, or unspecified.
227 // If |node| is an HTMLIFrameElement, it assumes node.contentDocument is 227 // If |node| is an HTMLIFrameElement, it assumes node.contentDocument is
228 // specified without security checks. Unspecified means this document. 228 // specified without security checks. Unspecified means this document.
229 [RaisesException] void updateLayoutIgnorePendingStylesheetsAndRunPostLayoutT asks(optional Node node); 229 [RaisesException] void updateLayoutIgnorePendingStylesheetsAndRunPostLayoutT asks(optional Node node);
230 230
231 [RaisesException] void forceFullRepaint(Document document); 231 [RaisesException, TypeChecking=Interface] void forceFullRepaint(Document doc ument);
232 232
233 // Returns a list of draggable/non-draggable regions in the document. 233 // Returns a list of draggable/non-draggable regions in the document.
234 [RaisesException] ClientRectList draggableRegions(Document document); 234 [RaisesException, TypeChecking=Interface] ClientRectList draggableRegions(Do cument document);
235 [RaisesException] ClientRectList nonDraggableRegions(Document document); 235 [RaisesException, TypeChecking=Interface] ClientRectList nonDraggableRegions (Document document);
236 236
237 // Returns a string with information about the mouse cursor used at the spec ified client location. 237 // Returns a string with information about the mouse cursor used at the spec ified client location.
238 [RaisesException] DOMString getCurrentCursorInfo(Document document); 238 [RaisesException, TypeChecking=Interface] DOMString getCurrentCursorInfo(Doc ument document);
239 239
240 [RaisesException] DOMString markerTextForListItem(Element element); 240 [TypeChecking=Interface] DOMString markerTextForListItem(Element element);
241 241
242 [RaisesException] DOMString baseURL(Document document); 242 [TypeChecking=Interface] DOMString baseURL(Document document);
243 243
244 SerializedScriptValue deserializeBuffer(ArrayBuffer buffer); 244 SerializedScriptValue deserializeBuffer(ArrayBuffer buffer);
245 ArrayBuffer serializeObject(SerializedScriptValue obj); 245 ArrayBuffer serializeObject(SerializedScriptValue obj);
246 246
247 void forceReload(boolean endToEnd); 247 void forceReload(boolean endToEnd);
248 248
249 [RaisesException] DOMString getImageSourceURL(Element element); 249 [TypeChecking=Interface] DOMString getImageSourceURL(Element element);
250 250
251 boolean isSelectPopupVisible(Node node); 251 [TypeChecking=Interface] boolean isSelectPopupVisible(Node node);
252 boolean selectPopupItemStyleIsRtl(Node select, long itemIndex); 252 boolean selectPopupItemStyleIsRtl(Node select, long itemIndex);
253 long selectPopupItemStyleFontHeight(Node select, long itemIndex); 253 long selectPopupItemStyleFontHeight(Node select, long itemIndex);
254 254
255 [RaisesException] ClientRect selectionBounds(); 255 [RaisesException] ClientRect selectionBounds();
256 256
257 boolean loseSharedGraphicsContext3D(); 257 boolean loseSharedGraphicsContext3D();
258 258
259 [RaisesException] void forceCompositingUpdate(Document document); 259 [RaisesException, TypeChecking=Interface] void forceCompositingUpdate(Docume nt document);
260 260
261 void setZoomFactor(float factor); 261 void setZoomFactor(float factor);
262 262
263 [RaisesException] void setShouldRevealPassword(Element element, boolean reve al); 263 [RaisesException, TypeChecking=Interface] void setShouldRevealPassword(Eleme nt element, boolean reveal);
264 264
265 [CallWith=ScriptState] Promise createResolvedPromise(any value); 265 [CallWith=ScriptState] Promise createResolvedPromise(any value);
266 [CallWith=ScriptState] Promise createRejectedPromise(any reason); 266 [CallWith=ScriptState] Promise createRejectedPromise(any reason);
267 [CallWith=ExecutionContext] Promise addOneToPromise(Promise promise); 267 [CallWith=ExecutionContext] Promise addOneToPromise(Promise promise);
268 268
269 void setValueForUser(Element element, DOMString value); 269 void setValueForUser(Element element, DOMString value);
270 270
271 DOMString textSurroundingNode(Node node, long x, long y, unsigned long maxLe ngth); 271 DOMString textSurroundingNode(Node node, long x, long y, unsigned long maxLe ngth);
272 272
273 void setFocused(boolean focused); 273 void setFocused(boolean focused);
274 274
275 [RaisesException] boolean ignoreLayoutWithPendingStylesheets(Document docume nt); 275 [TypeChecking=Interface] boolean ignoreLayoutWithPendingStylesheets(Document document);
276 276
277 // These functions are for testing NetInfo. You must call setNetworkStateNot ifierTestOnly(true) 277 // These functions are for testing NetInfo. You must call setNetworkStateNot ifierTestOnly(true)
278 // before calling setNetworkConnectionInfo. 278 // before calling setNetworkConnectionInfo.
279 void setNetworkStateNotifierTestOnly(boolean testOnly); 279 void setNetworkStateNotifierTestOnly(boolean testOnly);
280 [RaisesException] void setNetworkConnectionInfo(DOMString type); 280 [RaisesException] void setNetworkConnectionInfo(DOMString type);
281 281
282 // This function is for testing HitRegions on Canvas2D. 282 // This function is for testing HitRegions on Canvas2D.
283 unsigned long countHitRegions(CanvasRenderingContext2D context); 283 unsigned long countHitRegions(CanvasRenderingContext2D context);
284 284
285 DOMString serializeNavigationMarkup(Document document); 285 DOMString serializeNavigationMarkup(Document document);
286 }; 286 };
OLDNEW
« no previous file with comments | « Source/core/testing/Internals.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698