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

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

Issue 1660113002: Updated to Chrome 45 (2454) moved from SVN to git. Base URL: https://github.com/dart-lang/webcore.git@roll_45
Patch Set: Created 4 years, 10 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 | « core/testing/InternalSettings.idl ('k') | core/testing/PluginPlaceholderOptions.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.
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 DoNotCheckConstants,
29 GarbageCollected, 29 GarbageCollected,
30 Iterable, 30 TypeChecking=Interface,
31 ConstructorCallWith=ScriptState,
31 ] interface Internals { 32 ] interface Internals {
32 DOMString address(Node node); 33 DOMString address(Node node);
33 34
34 GCObservation observeGC(any observed); 35 GCObservation observeGC(any observed);
35 36
36 [RaisesException, TypeChecking=Interface] DOMString elementRenderTreeAsText( Element element); 37 [RaisesException, TypeChecking=Interface] DOMString elementLayoutTreeAsText( Element element);
37 boolean isPreloaded(DOMString url); 38 boolean isPreloaded(DOMString url);
39 boolean isPreloadedBy(DOMString url, Document document);
38 boolean isLoadingFromMemoryCache(DOMString url); 40 boolean isLoadingFromMemoryCache(DOMString url);
39 41
40 [TypeChecking=Interface] boolean isSharingStyle(Element element1, Element el ement2); 42 [TypeChecking=Interface] boolean isSharingStyle(Element element1, Element el ement2);
41 43
42 [TypeChecking=Interface] CSSStyleDeclaration computedStyleIncludingVisitedIn fo(Node node); 44 [TypeChecking=Interface] CSSStyleDeclaration computedStyleIncludingVisitedIn fo(Node node);
43 45
46 [TypeChecking=Interface] ShadowRoot createUserAgentShadowRoot(Element host);
47
44 [TypeChecking=Interface] ShadowRoot shadowRoot(Element host); 48 [TypeChecking=Interface] ShadowRoot shadowRoot(Element host);
45 [TypeChecking=Interface] ShadowRoot youngestShadowRoot(Element host); 49 [TypeChecking=Interface] ShadowRoot youngestShadowRoot(Element host);
46 [TypeChecking=Interface] ShadowRoot oldestShadowRoot(Element host); 50 [TypeChecking=Interface] ShadowRoot oldestShadowRoot(Element host);
47 [RaisesException, TypeChecking=Interface] ShadowRoot youngerShadowRoot(Node root); 51 [RaisesException, TypeChecking=Interface] ShadowRoot youngerShadowRoot(Node root);
48 52
49 [RaisesException, TypeChecking=Interface] DOMString shadowRootType(Node root ); 53 [RaisesException, TypeChecking=Interface] DOMString shadowRootType(Node root );
50 [RaisesException] boolean hasShadowInsertionPoint(Node root); 54 [RaisesException] boolean hasShadowInsertionPoint(Node root);
51 [RaisesException] boolean hasContentElement(Node root); 55 [RaisesException] boolean hasContentElement(Node root);
52 [RaisesException, TypeChecking=Interface] unsigned long countElementShadow(N ode Root); 56 [RaisesException, TypeChecking=Interface] unsigned long countElementShadow(N ode Root);
53 [TypeChecking=Interface] DOMString shadowPseudoId(Element element); 57 [TypeChecking=Interface] DOMString shadowPseudoId(Element element);
54 [RaisesException, TypeChecking=Interface] boolean isValidContentSelect(Eleme nt contentElement); 58 [RaisesException, TypeChecking=Interface] boolean isValidContentSelect(Eleme nt contentElement);
55 [TypeChecking=Interface] Node treeScopeRootNode(Node node); 59 [TypeChecking=Interface] Node treeScopeRootNode(Node node);
56 [TypeChecking=Interface] Node parentTreeScope(Node node); 60 [TypeChecking=Interface] Node parentTreeScope(Node node);
57 [RaisesException, TypeChecking=Interface] boolean hasSelectorForIdInShadow(E lement host, DOMString id); 61 [RaisesException, TypeChecking=Interface] boolean hasSelectorForIdInShadow(E lement host, DOMString id);
58 [RaisesException, TypeChecking=Interface] boolean hasSelectorForClassInShado w(Element host, DOMString className); 62 [RaisesException, TypeChecking=Interface] boolean hasSelectorForClassInShado w(Element host, DOMString className);
59 [RaisesException, TypeChecking=Interface] boolean hasSelectorForAttributeInS hadow(Element host, DOMString attributeName); 63 [RaisesException, TypeChecking=Interface] boolean hasSelectorForAttributeInS hadow(Element host, DOMString attributeName);
60 [RaisesException, TypeChecking=Interface] boolean hasSelectorForPseudoClassI nShadow(Element host, DOMString pseudoClass);
61 [RaisesException, TypeChecking=Interface] unsigned short compareTreeScopePos ition(Node treeScope1, Node treeScope2); 64 [RaisesException, TypeChecking=Interface] unsigned short compareTreeScopePos ition(Node treeScope1, Node treeScope2);
62 [RaisesException] unsigned long updateStyleAndReturnAffectedElementCount(); 65 [RaisesException] unsigned long updateStyleAndReturnAffectedElementCount();
63 [RaisesException] unsigned long needsLayoutCount(); 66 [RaisesException] unsigned long needsLayoutCount();
64 [RaisesException] unsigned long hitTestCount(Document document); 67 [RaisesException] unsigned long hitTestCount(Document document);
68 [RaisesException] unsigned long hitTestCacheHits(Document document);
69 [RaisesException] Element? elementFromPoint(Document document, double x, dou ble y, boolean ignoreClipping, boolean allowChildFrameContent);
70 [RaisesException] void clearHitTestCache(Document document);
65 71
66 // CSS Animation and Transition testing. 72 // Animation testing.
67 [RaisesException] void pauseAnimations(double pauseTime); 73 [RaisesException] void pauseAnimations(double pauseTime);
74 bool isCompositedAnimation(Animation animation);
68 75
69 [TypeChecking=Interface] Node nextSiblingByWalker(Node node); 76 // Modifies m_desiredFrameStartTime in BitmapImage to advance the next frame time
70 [TypeChecking=Interface] Node firstChildByWalker(Node node); 77 // for testing whether animated images work properly.
71 [TypeChecking=Interface] Node lastChildByWalker(Node node); 78 [RaisesException] void advanceTimeForImage(Element image, double deltaTimeIn Seconds);
72 [TypeChecking=Interface] Node nextNodeByWalker(Node node); 79
73 [TypeChecking=Interface] Node previousNodeByWalker(Node node); 80 [RaisesException, TypeChecking=Interface] Node nextSiblingInComposedTree(Nod e node);
81 [RaisesException, TypeChecking=Interface] Node firstChildInComposedTree(Node node);
82 [RaisesException, TypeChecking=Interface] Node lastChildInComposedTree(Node node);
83 [RaisesException, TypeChecking=Interface] Node nextInComposedTree(Node node) ;
84 [RaisesException, TypeChecking=Interface] Node previousInComposedTree(Node n ode);
74 85
75 DOMString visiblePlaceholder(Element element); 86 DOMString visiblePlaceholder(Element element);
76 87
77 [TypeChecking=Interface] void selectColorInColorChooser(Element element, DOM String colorValue); 88 [TypeChecking=Interface] void selectColorInColorChooser(Element element, DOM String colorValue);
78 [TypeChecking=Interface] void endColorChooser(Element element); 89 [TypeChecking=Interface] void endColorChooser(Element element);
79 90
80 // If the argument is omitted, the top-level document is used. 91 // If the argument is omitted, the top-level document is used.
81 boolean hasAutofocusRequest(optional Document document); 92 boolean hasAutofocusRequest(optional Document document);
82 [RaisesException] DOMString[] formControlStateOfHistoryItem(); 93 [RaisesException] DOMString[] formControlStateOfHistoryItem();
83 [RaisesException] void setFormControlStateOfHistoryItem(sequence<DOMString> values); 94 [RaisesException] void setFormControlStateOfHistoryItem(sequence<DOMString> values);
84 [RaisesException] void setEnableMockPagePopup(boolean enabled); 95 readonly attribute Window pagePopupWindow;
85 readonly attribute PagePopupController pagePopupController;
86 96
87 [RaisesException] ClientRect absoluteCaretBounds(); 97 [RaisesException] ClientRect absoluteCaretBounds();
88 98
89 [TypeChecking=Interface] ClientRect boundingBox(Element element); 99 [TypeChecking=Interface] ClientRect boundingBox(Element element);
90 100
91 [RaisesException, TypeChecking=Interface] unsigned long markerCountForNode(N ode node, DOMString markerType); 101 [RaisesException, TypeChecking=Interface] unsigned long markerCountForNode(N ode node, DOMString markerType);
92 [TypeChecking=Interface] unsigned long activeMarkerCountForNode(Node node); 102 [TypeChecking=Interface] unsigned long activeMarkerCountForNode(Node node);
93 [RaisesException, TypeChecking=Interface] Range markerRangeForNode(Node node , DOMString markerType, unsigned long index); 103 [RaisesException, TypeChecking=Interface] Range markerRangeForNode(Node node , DOMString markerType, unsigned long index);
94 [RaisesException, TypeChecking=Interface] DOMString markerDescriptionForNode (Node node, DOMString markerType, unsigned long index); 104 [RaisesException, TypeChecking=Interface] DOMString markerDescriptionForNode (Node node, DOMString markerType, unsigned long index);
95 [TypeChecking=Interface] void addTextMatchMarker(Range range, boolean isActi ve); 105 [TypeChecking=Interface] void addTextMatchMarker(Range range, boolean isActi ve);
96 [TypeChecking=Interface] void setMarkersActive(Node node, unsigned long star tOffset, unsigned long endOffset, boolean active); 106 [TypeChecking=Interface] void setMarkersActive(Node node, unsigned long star tOffset, unsigned long endOffset, boolean active);
97 void setMarkedTextMatchesAreHighlighted(Document document, boolean highlight ); 107 void setMarkedTextMatchesAreHighlighted(Document document, boolean highlight );
98 108
99 [RaisesException, TypeChecking=Interface] void setScrollViewPosition(Documen t document, long x, long y); 109 [RaisesException, TypeChecking=Interface] void setFrameViewPosition(Document document, long x, long y);
100 110
101 [RaisesException, TypeChecking=Interface] DOMString viewportAsText(Document document, 111 [RaisesException, TypeChecking=Interface] DOMString viewportAsText(Document document,
102 float dev icePixelRatio, 112 float dev icePixelRatio,
103 long avai lableWidth, 113 long avai lableWidth,
104 long avai lableHeight); 114 long avai lableHeight);
105 115
106 [RaisesException, TypeChecking=Interface] boolean wasLastChangeUserEdit(Elem ent textField); 116 [RaisesException, TypeChecking=Interface] boolean wasLastChangeUserEdit(Elem ent textField);
107 [RaisesException, TypeChecking=Interface] boolean elementShouldAutoComplete( Element inputElement); 117 [RaisesException, TypeChecking=Interface] boolean elementShouldAutoComplete( Element inputElement);
108 [RaisesException, TypeChecking=Interface] DOMString suggestedValue(Element i nputElement); 118 [RaisesException, TypeChecking=Interface] DOMString suggestedValue(Element i nputElement);
109 [RaisesException, TypeChecking=Interface] void setSuggestedValue(Element inp utElement, DOMString value); 119 [RaisesException, TypeChecking=Interface] void setSuggestedValue(Element inp utElement, DOMString value);
(...skipping 18 matching lines...) Expand all
128 138
129 sequence<DOMString> userPreferredLanguages(); 139 sequence<DOMString> userPreferredLanguages();
130 void setUserPreferredLanguages(sequence<DOMString> languages); 140 void setUserPreferredLanguages(sequence<DOMString> languages);
131 141
132 [TypeChecking=Interface] unsigned long activeDOMObjectCount(Document documen t); 142 [TypeChecking=Interface] unsigned long activeDOMObjectCount(Document documen t);
133 [TypeChecking=Interface] unsigned long wheelEventHandlerCount(Document docum ent); 143 [TypeChecking=Interface] unsigned long wheelEventHandlerCount(Document docum ent);
134 [TypeChecking=Interface] unsigned long scrollEventHandlerCount(Document docu ment); 144 [TypeChecking=Interface] unsigned long scrollEventHandlerCount(Document docu ment);
135 [TypeChecking=Interface] unsigned long touchEventHandlerCount(Document docum ent); 145 [TypeChecking=Interface] unsigned long touchEventHandlerCount(Document docum ent);
136 [RaisesException, TypeChecking=Interface] LayerRectList touchEventTargetLaye rRects(Document document); 146 [RaisesException, TypeChecking=Interface] LayerRectList touchEventTargetLaye rRects(Document document);
137 147
148 [RaisesException, TypeChecking=Interface] boolean executeCommand(Document do cument, DOMString name, DOMString value);
149
150 DOMString htmlNamespace();
151 sequence<DOMString> htmlTags();
152 DOMString svgNamespace();
153 sequence<DOMString> svgTags();
138 154
139 [RaisesException, TypeChecking=Interface] NodeList nodesFromRect(Document do cument, long x, long y, 155 [RaisesException, TypeChecking=Interface] NodeList nodesFromRect(Document do cument, long x, long y,
140 unsigned long topPadding, unsigned long rightPadding, unsigned long bott omPadding, unsigned long leftPadding, 156 unsigned long topPadding, unsigned long rightPadding, unsigned long bott omPadding, unsigned long leftPadding,
141 boolean ignoreClipping, boolean allowChildFrameContent); 157 boolean ignoreClipping, boolean allowChildFrameContent);
142 158
143 [TypeChecking=Interface] boolean hasSpellingMarker(Document document, long f rom, long length); 159 [TypeChecking=Interface] boolean hasSpellingMarker(Document document, long f rom, long length);
144 [TypeChecking=Interface] boolean hasGrammarMarker(Document document, long fr om, long length); 160 [TypeChecking=Interface] boolean hasGrammarMarker(Document document, long fr om, long length);
145 void setContinuousSpellCheckingEnabled(boolean enabled); 161 void setContinuousSpellCheckingEnabled(boolean enabled);
146 162
147 [TypeChecking=Interface] boolean isOverwriteModeEnabled(Document document); 163 [TypeChecking=Interface] boolean isOverwriteModeEnabled(Document document);
148 [TypeChecking=Interface] void toggleOverwriteModeEnabled(Document document); 164 [TypeChecking=Interface] void toggleOverwriteModeEnabled(Document document);
149 165
150 [TypeChecking=Interface] unsigned long numberOfScrollableAreas(Document docu ment); 166 [TypeChecking=Interface] unsigned long numberOfScrollableAreas(Document docu ment);
151 167
152 [TypeChecking=Interface] boolean isPageBoxVisible(Document document, long pa geNumber); 168 [TypeChecking=Interface] boolean isPageBoxVisible(Document document, long pa geNumber);
153 169
154 readonly attribute InternalSettings settings; 170 readonly attribute InternalSettings settings;
155 readonly attribute InternalProfilers profilers;
156 readonly attribute InternalRuntimeFlags runtimeFlags; 171 readonly attribute InternalRuntimeFlags runtimeFlags;
157 readonly attribute unsigned long workerThreadCount; 172 readonly attribute unsigned long workerThreadCount;
158 173
159 // Flags for layerTreeAsText. 174 // Flags for layerTreeAsText.
160 // The values of these constants must be kept in sync with the values of Lay erTreeAsTextBehaviorFlags in GraphicsLayerClient.h. 175 // The values of these constants must be kept in sync with the values of Lay erTreeAsTextBehaviorFlags in GraphicsLayerClient.h.
161 const unsigned short LAYER_TREE_INCLUDES_REPAINT_RECTS = 2; 176 const unsigned short LAYER_TREE_INCLUDES_REPAINT_RECTS = 2;
162 const unsigned short LAYER_TREE_INCLUDES_PAINTING_PHASES = 4; 177 const unsigned short LAYER_TREE_INCLUDES_PAINTING_PHASES = 4;
163 const unsigned short LAYER_TREE_INCLUDES_ROOT_LAYER = 8; 178 const unsigned short LAYER_TREE_INCLUDES_ROOT_LAYER = 8;
164 const unsigned short LAYER_TREE_INCLUDES_CLIP_AND_SCROLL_PARENTS = 16; 179 const unsigned short LAYER_TREE_INCLUDES_CLIP_AND_SCROLL_PARENTS = 16;
180 const unsigned short LAYER_TREE_INCLUDES_SCROLL_BLOCKS_ON = 32;
181 const unsigned short LAYER_TREE_INCLUDES_PAINT_INVALIDATION_OBJECTS = 64;
182 const unsigned short LAYER_TREE_INCLUDES_COMPOSITING_REASONS = 128;
165 [RaisesException, TypeChecking=Interface] DOMString layerTreeAsText(Document document, optional unsigned short flags); 183 [RaisesException, TypeChecking=Interface] DOMString layerTreeAsText(Document document, optional unsigned short flags);
166 [RaisesException, TypeChecking=Interface] DOMString elementLayerTreeAsText(E lement element, optional unsigned short flags); 184 [RaisesException, TypeChecking=Interface] DOMString elementLayerTreeAsText(E lement element, optional unsigned short flags);
167 185
168 [RaisesException, TypeChecking=Interface] boolean scrollsWithRespectTo(Eleme nt element1, Element element2); 186 [RaisesException, TypeChecking=Interface] boolean scrollsWithRespectTo(Eleme nt element1, Element element2);
169 [RaisesException, TypeChecking=Interface] boolean isUnclippedDescendant(Elem ent element);
170 187
171 [TypeChecking=Interface] DOMString scrollingStateTreeAsText(Document documen t); 188 [TypeChecking=Interface] DOMString scrollingStateTreeAsText(Document documen t);
172 [RaisesException, TypeChecking=Interface] DOMString mainThreadScrollingReaso ns(Document document); 189 [RaisesException, TypeChecking=Interface] DOMString mainThreadScrollingReaso ns(Document document);
173 [RaisesException, TypeChecking=Interface] ClientRectList nonFastScrollableRe cts(Document document); 190 [RaisesException, TypeChecking=Interface] ClientRectList nonFastScrollableRe cts(Document document);
174 191
175 [TypeChecking=Interface] void garbageCollectDocumentResources(Document docum ent); 192 [TypeChecking=Interface] void garbageCollectDocumentResources(Document docum ent);
176 void evictAllResources(); 193 void evictAllResources();
177 194
178 unsigned long numberOfLiveNodes(); 195 unsigned long numberOfLiveNodes();
179 unsigned long numberOfLiveDocuments(); 196 unsigned long numberOfLiveDocuments();
180 DOMString dumpRefCountedInstanceCounts(); 197 DOMString dumpRefCountedInstanceCounts();
181 sequence<DOMString> consoleMessageArgumentCounts(Document document); 198 sequence<DOMString> consoleMessageArgumentCounts(Document document);
182 unsigned long[] setMemoryCacheCapacities(unsigned long minDeadBytes, unsigne d long maxDeadBytes, unsigned long totalBytes); 199 unsigned long[] setMemoryCacheCapacities(unsigned long minDeadBytes, unsigne d long maxDeadBytes, unsigned long totalBytes);
183 [RaisesException] void setInspectorResourcesDataSizeLimits(long maximumResou rcesContentSize, long maximumSingleResourceContentSize);
184 200
185 DOMString counterValue(Element element); 201 DOMString counterValue(Element element);
186 long pageNumber(Element element, optional float pageWidth, optional float pa geHeight); 202 long pageNumber(Element element, optional float pageWidth, optional float pa geHeight);
187 DOMString[] shortcutIconURLs(Document document); 203 DOMString[] shortcutIconURLs(Document document);
188 DOMString[] allIconURLs(Document document); 204 DOMString[] allIconURLs(Document document);
189 long numberOfPages(optional double pageWidthInPixels, optional double pageHe ightInPixels); 205 long numberOfPages(optional double pageWidthInPixels, optional double pageHe ightInPixels);
190 [RaisesException] DOMString pageProperty(DOMString propertyName, long pageNu mber); 206 [RaisesException] DOMString pageProperty(DOMString propertyName, long pageNu mber);
191 [RaisesException] DOMString pageSizeAndMarginsInPixels(long pageIndex, long width, long height, long marginTop, long marginRight, long marginBottom, long ma rginLeft); 207 [RaisesException] DOMString pageSizeAndMarginsInPixels(long pageIndex, long width, long height, long marginTop, long marginRight, long marginBottom, long ma rginLeft);
192 208
193 [RaisesException] void setDeviceScaleFactor(float scaleFactor); 209 [RaisesException] void setDeviceScaleFactor(float scaleFactor);
210 [RaisesException] void setPageScaleFactor(float scaleFactor);
211 [RaisesException] void setPageScaleFactorLimits(float minScaleFactor, float maxScaleFactor);
194 212
195 [RaisesException, TypeChecking=Interface] void setIsCursorVisible(Document d ocument, boolean isVisible); 213 [RaisesException, TypeChecking=Interface] void setIsCursorVisible(Document d ocument, boolean isVisible);
196 214
197 void mediaPlayerRequestFullscreen(HTMLMediaElement mediaElement); 215 [TypeChecking=Interface] double effectiveMediaVolume(HTMLMediaElement mediaE lement);
198 double effectiveMediaVolume(HTMLMediaElement mediaElement); 216 [TypeChecking=Interface] void mediaPlayerRemoteRouteAvailabilityChanged(HTML MediaElement mediaElement, boolean available);
199 void mediaPlayerRemoteRouteAvailabilityChanged(HTMLMediaElement mediaElement , boolean available); 217 [TypeChecking=Interface] void mediaPlayerPlayingRemotelyChanged(HTMLMediaEle ment mediaElement, boolean remote);
200 218
201 void registerURLSchemeAsBypassingContentSecurityPolicy(DOMString scheme); 219 void registerURLSchemeAsBypassingContentSecurityPolicy(DOMString scheme);
220 void registerURLSchemeAsBypassingContentSecurityPolicy(DOMString scheme, seq uence<DOMString> policyAreas);
202 void removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(DOMString sch eme); 221 void removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(DOMString sch eme);
203 222
204 TypeConversions typeConversions(); 223 TypeConversions typeConversions();
205 224
206 // This is enabled only in Debug builds. 225 // This is enabled only in Debug builds.
207 // This is because we want to avoid putting the byte stream of testing priva te scripts 226 // This is because we want to avoid putting the byte stream of testing priva te scripts
208 // into the binary of Release builds. 227 // into the binary of Release builds.
209 PrivateScriptTest privateScriptTest(); 228 PrivateScriptTest privateScriptTest();
210 229
211 DOMString[] getReferencedFilePaths(); 230 DOMString[] getReferencedFilePaths();
212 231
213 // These functions both reset the tracked repaint rects. They are inteded to be used in the following order: 232 // These functions both reset the tracked repaint rects. They are inteded to be used in the following order:
214 // startTrackingRepaints, repaintRectsAsText, stopTrackingRepaints. 233 // startTrackingRepaints, repaintRectsAsText, stopTrackingRepaints.
215 [RaisesException, TypeChecking=Interface] void startTrackingRepaints(Documen t document); 234 [RaisesException, TypeChecking=Interface] void startTrackingRepaints(Documen t document);
216 [RaisesException, TypeChecking=Interface] void stopTrackingRepaints(Document document); 235 [RaisesException, TypeChecking=Interface] void stopTrackingRepaints(Document document);
217 236
218 // |node| should be Document, HTMLIFrameElement, or unspecified. 237 // |node| should be Document, HTMLIFrameElement, or unspecified.
219 // If |node| is an HTMLIFrameElement, it assumes node.contentDocument is 238 // If |node| is an HTMLIFrameElement, it assumes node.contentDocument is
220 // specified without security checks. Unspecified means this document. 239 // specified without security checks. Unspecified means this document.
221 [RaisesException] void updateLayoutIgnorePendingStylesheetsAndRunPostLayoutT asks(optional Node node); 240 [RaisesException] void updateLayoutIgnorePendingStylesheetsAndRunPostLayoutT asks(optional Node? node = null);
222 241
223 [RaisesException, TypeChecking=Interface] void forceFullRepaint(Document doc ument); 242 [RaisesException, TypeChecking=Interface] void forceFullRepaint(Document doc ument);
224 243
225 // Returns a list of draggable/non-draggable regions in the document. 244 // Returns a list of draggable/non-draggable regions in the document.
226 [RaisesException, TypeChecking=Interface] ClientRectList draggableRegions(Do cument document); 245 [RaisesException, TypeChecking=Interface] ClientRectList draggableRegions(Do cument document);
227 [RaisesException, TypeChecking=Interface] ClientRectList nonDraggableRegions (Document document); 246 [RaisesException, TypeChecking=Interface] ClientRectList nonDraggableRegions (Document document);
228 247
229 // Returns a string with information about the mouse cursor used at the spec ified client location. 248 // Returns a string with information about the mouse cursor used at the spec ified client location.
230 [RaisesException, TypeChecking=Interface] DOMString getCurrentCursorInfo(Doc ument document); 249 [TypeChecking=Interface] DOMString getCurrentCursorInfo();
250
251 readonly attribute boolean cursorUpdatePending;
231 252
232 [TypeChecking=Interface] DOMString markerTextForListItem(Element element); 253 [TypeChecking=Interface] DOMString markerTextForListItem(Element element);
233 254
234 SerializedScriptValue deserializeBuffer(ArrayBuffer buffer); 255 SerializedScriptValue deserializeBuffer(ArrayBuffer buffer);
235 ArrayBuffer serializeObject(SerializedScriptValue obj); 256 ArrayBuffer serializeObject(SerializedScriptValue obj);
236 257
237 void forceReload(boolean endToEnd); 258 void forceReload(boolean endToEnd);
238 259
239 [TypeChecking=Interface] DOMString getImageSourceURL(Element element); 260 [TypeChecking=Interface] DOMString getImageSourceURL(Element element);
240 261
262 [TypeChecking=Interface] DOMString selectMenuListText(HTMLSelectElement sele ct);
241 [TypeChecking=Interface] boolean isSelectPopupVisible(Node node); 263 [TypeChecking=Interface] boolean isSelectPopupVisible(Node node);
242 boolean selectPopupItemStyleIsRtl(Node select, long itemIndex); 264 boolean selectPopupItemStyleIsRtl(Node select, long itemIndex);
243 long selectPopupItemStyleFontHeight(Node select, long itemIndex); 265 long selectPopupItemStyleFontHeight(Node select, long itemIndex);
244 266
245 [RaisesException] ClientRect selectionBounds(); 267 [RaisesException] ClientRect selectionBounds();
246 268
247 boolean loseSharedGraphicsContext3D(); 269 boolean loseSharedGraphicsContext3D();
248 270
249 [RaisesException, TypeChecking=Interface] void forceCompositingUpdate(Docume nt document); 271 [RaisesException, TypeChecking=Interface] void forceCompositingUpdate(Docume nt document);
250 272
251 void setZoomFactor(float factor); 273 void setZoomFactor(float factor);
252 274
253 [RaisesException, TypeChecking=Interface] void setShouldRevealPassword(Eleme nt element, boolean reveal); 275 [RaisesException, TypeChecking=Interface] void setShouldRevealPassword(Eleme nt element, boolean reveal);
254 276
255 [CallWith=ScriptState] Promise createResolvedPromise(any value); 277 [CallWith=ScriptState] Promise createResolvedPromise(any value);
256 [CallWith=ScriptState] Promise createRejectedPromise(any reason); 278 [CallWith=ScriptState] Promise createRejectedPromise(any reason);
257 [CallWith=ScriptState] Promise addOneToPromise(Promise promise); 279 [CallWith=ScriptState] Promise addOneToPromise(Promise promise);
258 [CallWith=ScriptState, RaisesException] Promise promiseCheck(long arg1, bool ean arg2, Dictionary arg3, DOMString arg4, DOMString[] arg5); 280 [CallWith=ScriptState, RaisesException] Promise promiseCheck(long arg1, bool ean arg2, Dictionary arg3, DOMString arg4, DOMString[] arg5);
259 [CallWith=ScriptState] Promise promiseCheckWithoutExceptionState(Dictionary arg1, DOMString arg2, DOMString... variadic); 281 [CallWith=ScriptState] Promise promiseCheckWithoutExceptionState(Dictionary arg1, DOMString arg2, DOMString... variadic);
260 [CallWith=ScriptState] Promise promiseCheckRange([EnforceRange] octet arg1); 282 [CallWith=ScriptState] Promise promiseCheckRange([EnforceRange] octet arg1);
283 [CallWith=ScriptState] Promise promiseCheckOverload(Location arg1);
284 [CallWith=ScriptState] Promise promiseCheckOverload(Document arg1);
285 [CallWith=ScriptState] Promise promiseCheckOverload(Location arg1, long arg2 , long arg3);
261 286
262 void setValueForUser(Element element, DOMString value); 287 void setValueForUser(Element element, DOMString value);
263 288
264 DOMString textSurroundingNode(Node node, long x, long y, unsigned long maxLe ngth); 289 DOMString textSurroundingNode(Node node, long x, long y, unsigned long maxLe ngth);
265 290
266 void setFocused(boolean focused); 291 void setFocused(boolean focused);
292 void setInitialFocus(boolean reverse);
267 293
268 [TypeChecking=Interface] boolean ignoreLayoutWithPendingStylesheets(Document document); 294 [TypeChecking=Interface] boolean ignoreLayoutWithPendingStylesheets(Document document);
269 295
270 // These functions are for testing NetInfo. You must call setNetworkStateNot ifierTestOnly(true) 296 // These functions are for testing NetInfo. You must call setNetworkStateNot ifierTestOnly(true)
271 // before calling setNetworkConnectionInfo. 297 // before calling setNetworkConnectionInfo.
272 void setNetworkStateNotifierTestOnly(boolean testOnly); 298 void setNetworkStateNotifierTestOnly(boolean testOnly);
273 [RaisesException] void setNetworkConnectionInfo(DOMString type); 299 [RaisesException] void setNetworkConnectionInfo(DOMString type);
274 300
275 // This function is for testing HitRegions on Canvas2D. 301 // This function is for testing HitRegions on Canvas2D.
276 unsigned long countHitRegions(CanvasRenderingContext2D context); 302 unsigned long countHitRegions(CanvasRenderingContext2D context);
277 303
278 DOMString serializeNavigationMarkup(); 304 [TypeChecking=Interface] boolean isInCanvasFontCache(Document document, DOMS tring fontString);
279 void hideAllTransitionElements(); 305 [TypeChecking=Interface] unsigned long canvasFontCacheMaxFonts();
280 306
281 [RaisesException, TypeChecking=Interface] void forcePluginPlaceholder(HTMLEl ement plugin, DOMString htmlSource); 307 [TypeChecking=Interface] ClientRect boundsInViewportSpace(Element element);
282 [RaisesException, TypeChecking=Interface] void forcePluginPlaceholder(HTMLEl ement plugin, Dictionary options); 308
309 [RaisesException, TypeChecking=Interface] void forcePluginPlaceholder(HTMLEl ement plugin, DocumentFragment fragment);
310 [RaisesException, TypeChecking=Interface] void forcePluginPlaceholder(HTMLEl ement plugin, PluginPlaceholderOptions options);
283 311
284 DictionaryTest dictionaryTest(); 312 DictionaryTest dictionaryTest();
313 UnionTypesTest unionTypesTest();
314
315 void forceBlinkGCWithoutV8GC();
316
317 DOMString selectedHTMLForClipboard();
318 DOMString selectedTextForClipboard();
319
320 void setVisualViewportOffset(long x, long y);
321
322 boolean isUseCounted(Document document, long useCounterId);
323
324 iterable<long>;
325
326 [Unscopeable] readonly attribute DOMString unscopeableAttribute;
327 [Unscopeable] DOMString unscopeableMethod();
328
329 ClientRectList focusRingRects(Element element);
330 void setCapsLockState(boolean enabled);
285 }; 331 };
OLDNEW
« no previous file with comments | « core/testing/InternalSettings.idl ('k') | core/testing/PluginPlaceholderOptions.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698