OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
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 TypeChecking=Interface, | |
31 ConstructorCallWith=ScriptState, | 30 ConstructorCallWith=ScriptState, |
32 ] interface Internals { | 31 ] interface Internals { |
33 DOMString address(Node node); | 32 DOMString address(Node node); |
34 | 33 |
35 GCObservation observeGC(any observed); | 34 GCObservation observeGC(any observed); |
36 | 35 |
37 [RaisesException, TypeChecking=Interface] DOMString elementLayoutTreeAsText(
Element element); | 36 [RaisesException] DOMString elementLayoutTreeAsText(Element element); |
38 boolean isPreloaded(DOMString url); | 37 boolean isPreloaded(DOMString url); |
39 boolean isPreloadedBy(DOMString url, Document document); | 38 boolean isPreloadedBy(DOMString url, Document document); |
40 boolean isLoadingFromMemoryCache(DOMString url); | 39 boolean isLoadingFromMemoryCache(DOMString url); |
41 | 40 |
42 [TypeChecking=Interface] boolean isSharingStyle(Element element1, Element el
ement2); | 41 boolean isSharingStyle(Element element1, Element element2); |
43 | 42 |
44 [TypeChecking=Interface] CSSStyleDeclaration computedStyleIncludingVisitedIn
fo(Node node); | 43 CSSStyleDeclaration computedStyleIncludingVisitedInfo(Node node); |
45 | 44 |
46 [TypeChecking=Interface] ShadowRoot createUserAgentShadowRoot(Element host); | 45 ShadowRoot createUserAgentShadowRoot(Element host); |
47 | 46 |
48 [TypeChecking=Interface] ShadowRoot shadowRoot(Element host); | 47 ShadowRoot shadowRoot(Element host); |
49 [TypeChecking=Interface] ShadowRoot youngestShadowRoot(Element host); | 48 ShadowRoot youngestShadowRoot(Element host); |
50 [TypeChecking=Interface] ShadowRoot oldestShadowRoot(Element host); | 49 ShadowRoot oldestShadowRoot(Element host); |
51 [RaisesException, TypeChecking=Interface] ShadowRoot youngerShadowRoot(Node
root); | 50 [RaisesException] ShadowRoot youngerShadowRoot(Node root); |
52 | 51 |
53 [RaisesException, TypeChecking=Interface] DOMString shadowRootType(Node root
); | 52 [RaisesException] DOMString shadowRootType(Node root); |
54 [RaisesException] boolean hasShadowInsertionPoint(Node root); | 53 [RaisesException] boolean hasShadowInsertionPoint(Node root); |
55 [RaisesException] boolean hasContentElement(Node root); | 54 [RaisesException] boolean hasContentElement(Node root); |
56 [RaisesException, TypeChecking=Interface] unsigned long countElementShadow(N
ode Root); | 55 [RaisesException] unsigned long countElementShadow(Node Root); |
57 [TypeChecking=Interface] DOMString shadowPseudoId(Element element); | 56 DOMString shadowPseudoId(Element element); |
58 [RaisesException, TypeChecking=Interface] boolean isValidContentSelect(Eleme
nt contentElement); | 57 [RaisesException] boolean isValidContentSelect(Element contentElement); |
59 [TypeChecking=Interface] Node treeScopeRootNode(Node node); | 58 Node treeScopeRootNode(Node node); |
60 [TypeChecking=Interface] Node parentTreeScope(Node node); | 59 Node parentTreeScope(Node node); |
61 [RaisesException, TypeChecking=Interface] boolean hasSelectorForIdInShadow(E
lement host, DOMString id); | 60 [RaisesException] boolean hasSelectorForIdInShadow(Element host, DOMString i
d); |
62 [RaisesException, TypeChecking=Interface] boolean hasSelectorForClassInShado
w(Element host, DOMString className); | 61 [RaisesException] boolean hasSelectorForClassInShadow(Element host, DOMStrin
g className); |
63 [RaisesException, TypeChecking=Interface] boolean hasSelectorForAttributeInS
hadow(Element host, DOMString attributeName); | 62 [RaisesException] boolean hasSelectorForAttributeInShadow(Element host, DOMS
tring attributeName); |
64 [RaisesException, TypeChecking=Interface] unsigned short compareTreeScopePos
ition(Node treeScope1, Node treeScope2); | 63 [RaisesException] unsigned short compareTreeScopePosition(Node treeScope1, N
ode treeScope2); |
65 [RaisesException] unsigned long updateStyleAndReturnAffectedElementCount(); | 64 [RaisesException] unsigned long updateStyleAndReturnAffectedElementCount(); |
66 [RaisesException] unsigned long needsLayoutCount(); | 65 [RaisesException] unsigned long needsLayoutCount(); |
67 [RaisesException] unsigned long hitTestCount(Document document); | 66 [RaisesException] unsigned long hitTestCount(Document document); |
68 [RaisesException] unsigned long hitTestCacheHits(Document document); | 67 [RaisesException] unsigned long hitTestCacheHits(Document document); |
69 [RaisesException] Element? elementFromPoint(Document document, double x, dou
ble y, boolean ignoreClipping, boolean allowChildFrameContent); | 68 [RaisesException] Element? elementFromPoint(Document document, double x, dou
ble y, boolean ignoreClipping, boolean allowChildFrameContent); |
70 [RaisesException] void clearHitTestCache(Document document); | 69 [RaisesException] void clearHitTestCache(Document document); |
71 | 70 |
72 // Animation testing. | 71 // Animation testing. |
73 [RaisesException] void pauseAnimations(double pauseTime); | 72 [RaisesException] void pauseAnimations(double pauseTime); |
74 bool isCompositedAnimation(Animation animation); | 73 bool isCompositedAnimation(Animation animation); |
75 void disableCompositedAnimation(Animation animation); | 74 void disableCompositedAnimation(Animation animation); |
76 | 75 |
77 // Modifies m_desiredFrameStartTime in BitmapImage to advance the next frame
time | 76 // Modifies m_desiredFrameStartTime in BitmapImage to advance the next frame
time |
78 // for testing whether animated images work properly. | 77 // for testing whether animated images work properly. |
79 [RaisesException] void advanceTimeForImage(Element image, double deltaTimeIn
Seconds); | 78 [RaisesException] void advanceTimeForImage(Element image, double deltaTimeIn
Seconds); |
80 | 79 |
81 // Advances an animated image. For BitmapImage (e.g., animated gifs) this | 80 // Advances an animated image. For BitmapImage (e.g., animated gifs) this |
82 // will advance to the next frame. For SVGImage, this will trigger an | 81 // will advance to the next frame. For SVGImage, this will trigger an |
83 // animation update for CSS and advance the SMIL timeline by one frame. | 82 // animation update for CSS and advance the SMIL timeline by one frame. |
84 [RaisesException, TypeChecking=Interface] void advanceImageAnimation(Element
image); | 83 [RaisesException] void advanceImageAnimation(Element image); |
85 | 84 |
86 [RaisesException, TypeChecking=Interface] Node nextSiblingInComposedTree(Nod
e node); | 85 [RaisesException] Node nextSiblingInComposedTree(Node node); |
87 [RaisesException, TypeChecking=Interface] Node firstChildInComposedTree(Node
node); | 86 [RaisesException] Node firstChildInComposedTree(Node node); |
88 [RaisesException, TypeChecking=Interface] Node lastChildInComposedTree(Node
node); | 87 [RaisesException] Node lastChildInComposedTree(Node node); |
89 [RaisesException, TypeChecking=Interface] Node nextInComposedTree(Node node)
; | 88 [RaisesException] Node nextInComposedTree(Node node); |
90 [RaisesException, TypeChecking=Interface] Node previousInComposedTree(Node n
ode); | 89 [RaisesException] Node previousInComposedTree(Node node); |
91 | 90 |
92 DOMString visiblePlaceholder(Element element); | 91 DOMString visiblePlaceholder(Element element); |
93 | 92 |
94 [TypeChecking=Interface] void selectColorInColorChooser(Element element, DOM
String colorValue); | 93 void selectColorInColorChooser(Element element, DOMString colorValue); |
95 [TypeChecking=Interface] void endColorChooser(Element element); | 94 void endColorChooser(Element element); |
96 | 95 |
97 // If the argument is omitted, the top-level document is used. | 96 // If the argument is omitted, the top-level document is used. |
98 boolean hasAutofocusRequest(optional Document document); | 97 boolean hasAutofocusRequest(optional Document document); |
99 [RaisesException] DOMString[] formControlStateOfHistoryItem(); | 98 [RaisesException] DOMString[] formControlStateOfHistoryItem(); |
100 [RaisesException] void setFormControlStateOfHistoryItem(sequence<DOMString>
values); | 99 [RaisesException] void setFormControlStateOfHistoryItem(sequence<DOMString>
values); |
101 readonly attribute Window pagePopupWindow; | 100 readonly attribute Window pagePopupWindow; |
102 | 101 |
103 [RaisesException] ClientRect absoluteCaretBounds(); | 102 [RaisesException] ClientRect absoluteCaretBounds(); |
104 | 103 |
105 [TypeChecking=Interface] ClientRect boundingBox(Element element); | 104 ClientRect boundingBox(Element element); |
106 | 105 |
107 [RaisesException, TypeChecking=Interface] unsigned long markerCountForNode(N
ode node, DOMString markerType); | 106 [RaisesException] unsigned long markerCountForNode(Node node, DOMString mark
erType); |
108 [TypeChecking=Interface] unsigned long activeMarkerCountForNode(Node node); | 107 unsigned long activeMarkerCountForNode(Node node); |
109 [RaisesException, TypeChecking=Interface] Range markerRangeForNode(Node node
, DOMString markerType, unsigned long index); | 108 [RaisesException] Range markerRangeForNode(Node node, DOMString markerType,
unsigned long index); |
110 [RaisesException, TypeChecking=Interface] DOMString markerDescriptionForNode
(Node node, DOMString markerType, unsigned long index); | 109 [RaisesException] DOMString markerDescriptionForNode(Node node, DOMString ma
rkerType, unsigned long index); |
111 [TypeChecking=Interface] void addTextMatchMarker(Range range, boolean isActi
ve); | 110 void addTextMatchMarker(Range range, boolean isActive); |
112 [TypeChecking=Interface] void setMarkersActive(Node node, unsigned long star
tOffset, unsigned long endOffset, boolean active); | 111 void setMarkersActive(Node node, unsigned long startOffset, unsigned long en
dOffset, boolean active); |
113 void setMarkedTextMatchesAreHighlighted(Document document, boolean highlight
); | 112 void setMarkedTextMatchesAreHighlighted(Document document, boolean highlight
); |
114 | 113 |
115 [RaisesException, TypeChecking=Interface] void setFrameViewPosition(Document
document, long x, long y); | 114 [RaisesException] void setFrameViewPosition(Document document, long x, long
y); |
116 | 115 |
117 [RaisesException, TypeChecking=Interface] DOMString viewportAsText(Document
document, | 116 [RaisesException] DOMString viewportAsText(Document document, |
118 float dev
icePixelRatio, | 117 float devicePixelRatio, |
119 long avai
lableWidth, | 118 long availableWidth, |
120 long avai
lableHeight); | 119 long availableHeight); |
121 | 120 |
122 [RaisesException, TypeChecking=Interface] boolean elementShouldAutoComplete(
Element inputElement); | 121 [RaisesException] boolean elementShouldAutoComplete(Element inputElement); |
123 [RaisesException, TypeChecking=Interface] DOMString suggestedValue(Element i
nputElement); | 122 [RaisesException] DOMString suggestedValue(Element inputElement); |
124 [RaisesException, TypeChecking=Interface] void setSuggestedValue(Element inp
utElement, DOMString value); | 123 [RaisesException] void setSuggestedValue(Element inputElement, DOMString val
ue); |
125 [RaisesException, TypeChecking=Interface] void setEditingValue(Element input
Element, DOMString value); | 124 [RaisesException] void setEditingValue(Element inputElement, DOMString value
); |
126 [RaisesException, TypeChecking=Interface] void setAutofilled(Element inputEl
ement, boolean enabled); | 125 [RaisesException] void setAutofilled(Element inputElement, boolean enabled); |
127 | 126 |
128 [TypeChecking=Interface] Range rangeFromLocationAndLength(Element scope, lon
g rangeLocation, long rangeLength); | 127 Range rangeFromLocationAndLength(Element scope, long rangeLocation, long ran
geLength); |
129 [TypeChecking=Interface] unsigned long locationFromRange(Element scope, Rang
e range); | 128 unsigned long locationFromRange(Element scope, Range range); |
130 [TypeChecking=Interface] unsigned long lengthFromRange(Element scope, Range
range); | 129 unsigned long lengthFromRange(Element scope, Range range); |
131 [TypeChecking=Interface] DOMString rangeAsText(Range range); | 130 DOMString rangeAsText(Range range); |
132 | 131 |
133 [RaisesException, TypeChecking=Interface] DOMPoint touchPositionAdjustedToBe
stClickableNode(long x, long y, long width, long height, Document document); | 132 [RaisesException] DOMPoint touchPositionAdjustedToBestClickableNode(long x,
long y, long width, long height, Document document); |
134 [RaisesException, TypeChecking=Interface] Node touchNodeAdjustedToBestClicka
bleNode(long x, long y, long width, long height, Document document); | 133 [RaisesException] Node touchNodeAdjustedToBestClickableNode(long x, long y,
long width, long height, Document document); |
135 [RaisesException, TypeChecking=Interface] DOMPoint touchPositionAdjustedToBe
stContextMenuNode(long x, long y, long width, long height, Document document); | 134 [RaisesException] DOMPoint touchPositionAdjustedToBestContextMenuNode(long x
, long y, long width, long height, Document document); |
136 [RaisesException, TypeChecking=Interface] Node touchNodeAdjustedToBestContex
tMenuNode(long x, long y, long width, long height, Document document); | 135 [RaisesException] Node touchNodeAdjustedToBestContextMenuNode(long x, long y
, long width, long height, Document document); |
137 [RaisesException, TypeChecking=Interface] ClientRect bestZoomableAreaForTouc
hPoint(long x, long y, long width, long height, Document document); | 136 [RaisesException] ClientRect bestZoomableAreaForTouchPoint(long x, long y, l
ong width, long height, Document document); |
138 | 137 |
139 [RaisesException] long lastSpellCheckRequestSequence(Document document); | 138 [RaisesException] long lastSpellCheckRequestSequence(Document document); |
140 [RaisesException] long lastSpellCheckProcessedSequence(Document document); | 139 [RaisesException] long lastSpellCheckProcessedSequence(Document document); |
141 | 140 |
142 sequence<DOMString> userPreferredLanguages(); | 141 sequence<DOMString> userPreferredLanguages(); |
143 void setUserPreferredLanguages(sequence<DOMString> languages); | 142 void setUserPreferredLanguages(sequence<DOMString> languages); |
144 | 143 |
145 [TypeChecking=Interface] unsigned long activeDOMObjectCount(Document documen
t); | 144 unsigned long activeDOMObjectCount(Document document); |
146 [TypeChecking=Interface] unsigned long wheelEventHandlerCount(Document docum
ent); | 145 unsigned long wheelEventHandlerCount(Document document); |
147 [TypeChecking=Interface] unsigned long scrollEventHandlerCount(Document docu
ment); | 146 unsigned long scrollEventHandlerCount(Document document); |
148 [TypeChecking=Interface] unsigned long touchEventHandlerCount(Document docum
ent); | 147 unsigned long touchEventHandlerCount(Document document); |
149 [RaisesException, TypeChecking=Interface] LayerRectList touchEventTargetLaye
rRects(Document document); | 148 [RaisesException] LayerRectList touchEventTargetLayerRects(Document document
); |
150 | 149 |
151 [RaisesException, TypeChecking=Interface] boolean executeCommand(Document do
cument, DOMString name, DOMString value); | 150 [RaisesException] boolean executeCommand(Document document, DOMString name,
DOMString value); |
152 | 151 |
153 DOMString htmlNamespace(); | 152 DOMString htmlNamespace(); |
154 sequence<DOMString> htmlTags(); | 153 sequence<DOMString> htmlTags(); |
155 DOMString svgNamespace(); | 154 DOMString svgNamespace(); |
156 sequence<DOMString> svgTags(); | 155 sequence<DOMString> svgTags(); |
157 | 156 |
158 [RaisesException, TypeChecking=Interface] NodeList nodesFromRect(Document do
cument, long x, long y, | 157 [RaisesException] NodeList nodesFromRect(Document document, long x, long y, |
159 unsigned long topPadding, unsigned long rightPadding, unsigned long bott
omPadding, unsigned long leftPadding, | 158 unsigned long topPadding, unsigned long rightPadding, unsigned long bott
omPadding, unsigned long leftPadding, |
160 boolean ignoreClipping, boolean allowChildFrameContent); | 159 boolean ignoreClipping, boolean allowChildFrameContent); |
161 | 160 |
162 [TypeChecking=Interface] boolean hasSpellingMarker(Document document, long f
rom, long length); | 161 boolean hasSpellingMarker(Document document, long from, long length); |
163 [TypeChecking=Interface] boolean hasGrammarMarker(Document document, long fr
om, long length); | 162 boolean hasGrammarMarker(Document document, long from, long length); |
164 void setContinuousSpellCheckingEnabled(boolean enabled); | 163 void setContinuousSpellCheckingEnabled(boolean enabled); |
165 | 164 |
166 [TypeChecking=Interface] boolean isOverwriteModeEnabled(Document document); | 165 boolean isOverwriteModeEnabled(Document document); |
167 [TypeChecking=Interface] void toggleOverwriteModeEnabled(Document document); | 166 void toggleOverwriteModeEnabled(Document document); |
168 | 167 |
169 [TypeChecking=Interface] unsigned long numberOfScrollableAreas(Document docu
ment); | 168 unsigned long numberOfScrollableAreas(Document document); |
170 | 169 |
171 [TypeChecking=Interface] boolean isPageBoxVisible(Document document, long pa
geNumber); | 170 boolean isPageBoxVisible(Document document, long pageNumber); |
172 | 171 |
173 readonly attribute InternalSettings settings; | 172 readonly attribute InternalSettings settings; |
174 readonly attribute InternalRuntimeFlags runtimeFlags; | 173 readonly attribute InternalRuntimeFlags runtimeFlags; |
175 readonly attribute unsigned long workerThreadCount; | 174 readonly attribute unsigned long workerThreadCount; |
176 | 175 |
177 // Flags for layerTreeAsText. | 176 // Flags for layerTreeAsText. |
178 // The values of these constants must be kept in sync with the values of Lay
erTreeFlags in GraphicsLayerClient.h. | 177 // The values of these constants must be kept in sync with the values of Lay
erTreeFlags in GraphicsLayerClient.h. |
179 const unsigned short LAYER_TREE_INCLUDES_DEBUG_INFO = 1; | 178 const unsigned short LAYER_TREE_INCLUDES_DEBUG_INFO = 1; |
180 const unsigned short LAYER_TREE_INCLUDES_REPAINT_RECTS = 2; | 179 const unsigned short LAYER_TREE_INCLUDES_REPAINT_RECTS = 2; |
181 const unsigned short LAYER_TREE_INCLUDES_PAINTING_PHASES = 4; | 180 const unsigned short LAYER_TREE_INCLUDES_PAINTING_PHASES = 4; |
182 const unsigned short LAYER_TREE_INCLUDES_ROOT_LAYER = 8; | 181 const unsigned short LAYER_TREE_INCLUDES_ROOT_LAYER = 8; |
183 const unsigned short LAYER_TREE_INCLUDES_CLIP_AND_SCROLL_PARENTS = 16; | 182 const unsigned short LAYER_TREE_INCLUDES_CLIP_AND_SCROLL_PARENTS = 16; |
184 const unsigned short LAYER_TREE_INCLUDES_PAINT_INVALIDATION_OBJECTS = 32; | 183 const unsigned short LAYER_TREE_INCLUDES_PAINT_INVALIDATION_OBJECTS = 32; |
185 const unsigned short LAYER_TREE_INCLUDES_COMPOSITING_REASONS = 64; | 184 const unsigned short LAYER_TREE_INCLUDES_COMPOSITING_REASONS = 64; |
186 [RaisesException, TypeChecking=Interface] DOMString layerTreeAsText(Document
document, optional unsigned short flags); | 185 [RaisesException] DOMString layerTreeAsText(Document document, optional unsi
gned short flags); |
187 [RaisesException, TypeChecking=Interface] DOMString elementLayerTreeAsText(E
lement element, optional unsigned short flags); | 186 [RaisesException] DOMString elementLayerTreeAsText(Element element, optional
unsigned short flags); |
188 | 187 |
189 [RaisesException, TypeChecking=Interface] boolean scrollsWithRespectTo(Eleme
nt element1, Element element2); | 188 [RaisesException] boolean scrollsWithRespectTo(Element element1, Element ele
ment2); |
190 | 189 |
191 [TypeChecking=Interface] DOMString scrollingStateTreeAsText(Document documen
t); | 190 DOMString scrollingStateTreeAsText(Document document); |
192 [RaisesException, TypeChecking=Interface] DOMString mainThreadScrollingReaso
ns(Document document); | 191 [RaisesException] DOMString mainThreadScrollingReasons(Document document); |
193 [RaisesException, TypeChecking=Interface] ClientRectList nonFastScrollableRe
cts(Document document); | 192 [RaisesException] ClientRectList nonFastScrollableRects(Document document); |
194 | 193 |
195 [TypeChecking=Interface] void garbageCollectDocumentResources(Document docum
ent); | 194 void garbageCollectDocumentResources(Document document); |
196 void evictAllResources(); | 195 void evictAllResources(); |
197 | 196 |
198 unsigned long numberOfLiveNodes(); | 197 unsigned long numberOfLiveNodes(); |
199 unsigned long numberOfLiveDocuments(); | 198 unsigned long numberOfLiveDocuments(); |
200 DOMString dumpRefCountedInstanceCounts(); | 199 DOMString dumpRefCountedInstanceCounts(); |
201 sequence<DOMString> consoleMessageArgumentCounts(Document document); | 200 sequence<DOMString> consoleMessageArgumentCounts(Document document); |
202 unsigned long[] setMemoryCacheCapacities(unsigned long minDeadBytes, unsigne
d long maxDeadBytes, unsigned long totalBytes); | 201 unsigned long[] setMemoryCacheCapacities(unsigned long minDeadBytes, unsigne
d long maxDeadBytes, unsigned long totalBytes); |
203 | 202 |
204 DOMString counterValue(Element element); | 203 DOMString counterValue(Element element); |
205 long pageNumber(Element element, optional float pageWidth, optional float pa
geHeight); | 204 long pageNumber(Element element, optional float pageWidth, optional float pa
geHeight); |
206 DOMString[] shortcutIconURLs(Document document); | 205 DOMString[] shortcutIconURLs(Document document); |
207 DOMString[] allIconURLs(Document document); | 206 DOMString[] allIconURLs(Document document); |
208 long numberOfPages(optional double pageWidthInPixels, optional double pageHe
ightInPixels); | 207 long numberOfPages(optional double pageWidthInPixels, optional double pageHe
ightInPixels); |
209 [RaisesException] DOMString pageProperty(DOMString propertyName, long pageNu
mber); | 208 [RaisesException] DOMString pageProperty(DOMString propertyName, long pageNu
mber); |
210 [RaisesException] DOMString pageSizeAndMarginsInPixels(long pageIndex, long
width, long height, long marginTop, long marginRight, long marginBottom, long ma
rginLeft); | 209 [RaisesException] DOMString pageSizeAndMarginsInPixels(long pageIndex, long
width, long height, long marginTop, long marginRight, long marginBottom, long ma
rginLeft); |
211 | 210 |
212 [RaisesException] void setDeviceScaleFactor(float scaleFactor); | 211 [RaisesException] void setDeviceScaleFactor(float scaleFactor); |
213 [RaisesException] void setPageScaleFactor(float scaleFactor); | 212 [RaisesException] void setPageScaleFactor(float scaleFactor); |
214 [RaisesException] void setPageScaleFactorLimits(float minScaleFactor, float
maxScaleFactor); | 213 [RaisesException] void setPageScaleFactorLimits(float minScaleFactor, float
maxScaleFactor); |
215 | 214 |
216 [RaisesException, TypeChecking=Interface] void setIsCursorVisible(Document d
ocument, boolean isVisible); | 215 [RaisesException] void setIsCursorVisible(Document document, boolean isVisib
le); |
217 | 216 |
218 [TypeChecking=Interface] double effectiveMediaVolume(HTMLMediaElement mediaE
lement); | 217 double effectiveMediaVolume(HTMLMediaElement mediaElement); |
219 [TypeChecking=Interface] void mediaPlayerRemoteRouteAvailabilityChanged(HTML
MediaElement mediaElement, boolean available); | 218 void mediaPlayerRemoteRouteAvailabilityChanged(HTMLMediaElement mediaElement
, boolean available); |
220 [TypeChecking=Interface] void mediaPlayerPlayingRemotelyChanged(HTMLMediaEle
ment mediaElement, boolean remote); | 219 void mediaPlayerPlayingRemotelyChanged(HTMLMediaElement mediaElement, boolea
n remote); |
221 [TypeChecking=Interface] void setAllowHiddenVolumeControls(HTMLMediaElement
mediaElement, boolean allow); | 220 void setAllowHiddenVolumeControls(HTMLMediaElement mediaElement, boolean all
ow); |
222 | 221 |
223 void registerURLSchemeAsBypassingContentSecurityPolicy(DOMString scheme); | 222 void registerURLSchemeAsBypassingContentSecurityPolicy(DOMString scheme); |
224 void registerURLSchemeAsBypassingContentSecurityPolicy(DOMString scheme, seq
uence<DOMString> policyAreas); | 223 void registerURLSchemeAsBypassingContentSecurityPolicy(DOMString scheme, seq
uence<DOMString> policyAreas); |
225 void removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(DOMString sch
eme); | 224 void removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(DOMString sch
eme); |
226 | 225 |
227 TypeConversions typeConversions(); | 226 TypeConversions typeConversions(); |
228 | 227 |
229 // This is enabled only in Debug builds. | 228 // This is enabled only in Debug builds. |
230 // This is because we want to avoid putting the byte stream of testing priva
te scripts | 229 // This is because we want to avoid putting the byte stream of testing priva
te scripts |
231 // into the binary of Release builds. | 230 // into the binary of Release builds. |
232 PrivateScriptTest privateScriptTest(); | 231 PrivateScriptTest privateScriptTest(); |
233 | 232 |
234 DOMString[] getReferencedFilePaths(); | 233 DOMString[] getReferencedFilePaths(); |
235 | 234 |
236 // These functions both reset the tracked repaint rects. They are intended t
o be used in the following order: | 235 // These functions both reset the tracked repaint rects. They are intended t
o be used in the following order: |
237 // startTrackingRepaints(), repaintRectsAsText(), stopTrackingRepaints(). | 236 // startTrackingRepaints(), repaintRectsAsText(), stopTrackingRepaints(). |
238 // TODO(wangxianzhu): Remove these functions when we no longer use repaint r
ects. | 237 // TODO(wangxianzhu): Remove these functions when we no longer use repaint r
ects. |
239 [RaisesException, TypeChecking=Interface] void startTrackingRepaints(Documen
t document); | 238 [RaisesException] void startTrackingRepaints(Document document); |
240 [RaisesException, TypeChecking=Interface] void stopTrackingRepaints(Document
document); | 239 [RaisesException] void stopTrackingRepaints(Document document); |
241 | 240 |
242 // |node| should be Document, HTMLIFrameElement, or unspecified. | 241 // |node| should be Document, HTMLIFrameElement, or unspecified. |
243 // If |node| is an HTMLIFrameElement, it assumes node.contentDocument is | 242 // If |node| is an HTMLIFrameElement, it assumes node.contentDocument is |
244 // specified without security checks. Unspecified means this document. | 243 // specified without security checks. Unspecified means this document. |
245 [RaisesException] void updateLayoutIgnorePendingStylesheetsAndRunPostLayoutT
asks(optional Node? node = null); | 244 [RaisesException] void updateLayoutIgnorePendingStylesheetsAndRunPostLayoutT
asks(optional Node? node = null); |
246 | 245 |
247 [RaisesException, TypeChecking=Interface] void forceFullRepaint(Document doc
ument); | 246 [RaisesException] void forceFullRepaint(Document document); |
248 | 247 |
249 // These functions both reset the tracked paint invalidation objects. They a
re intended to be used in the following order: | 248 // These functions both reset the tracked paint invalidation objects. They a
re intended to be used in the following order: |
250 // startTrackingPaintInvalidationObjects(), trackedPaintInvalidationObjects
(), stopTrackingPaintInvalidationObjects(). | 249 // startTrackingPaintInvalidationObjects(), trackedPaintInvalidationObjects
(), stopTrackingPaintInvalidationObjects(). |
251 void startTrackingPaintInvalidationObjects(); | 250 void startTrackingPaintInvalidationObjects(); |
252 void stopTrackingPaintInvalidationObjects(); | 251 void stopTrackingPaintInvalidationObjects(); |
253 | 252 |
254 // Returns a list of debug strings for objects that were invalidated between | 253 // Returns a list of debug strings for objects that were invalidated between |
255 // startTrackingPaintInvalidationObjects() and stopTrackingPaintInvalidation
Objects(). | 254 // startTrackingPaintInvalidationObjects() and stopTrackingPaintInvalidation
Objects(). |
256 // If an object is invalidated multiple times, it will appear in the list mu
ltiple times. | 255 // If an object is invalidated multiple times, it will appear in the list mu
ltiple times. |
257 DOMString[] trackedPaintInvalidationObjects(); | 256 DOMString[] trackedPaintInvalidationObjects(); |
258 | 257 |
259 // Returns a list of draggable/non-draggable regions in the document. | 258 // Returns a list of draggable/non-draggable regions in the document. |
260 [RaisesException, TypeChecking=Interface] ClientRectList draggableRegions(Do
cument document); | 259 [RaisesException] ClientRectList draggableRegions(Document document); |
261 [RaisesException, TypeChecking=Interface] ClientRectList nonDraggableRegions
(Document document); | 260 [RaisesException] ClientRectList nonDraggableRegions(Document document); |
262 | 261 |
263 // Returns a string with information about the mouse cursor used at the spec
ified client location. | 262 // Returns a string with information about the mouse cursor used at the spec
ified client location. |
264 [TypeChecking=Interface] DOMString getCurrentCursorInfo(); | 263 DOMString getCurrentCursorInfo(); |
265 | 264 |
266 readonly attribute boolean cursorUpdatePending; | 265 readonly attribute boolean cursorUpdatePending; |
267 | 266 |
268 [TypeChecking=Interface] DOMString markerTextForListItem(Element element); | 267 DOMString markerTextForListItem(Element element); |
269 | 268 |
270 SerializedScriptValue deserializeBuffer(ArrayBuffer buffer); | 269 SerializedScriptValue deserializeBuffer(ArrayBuffer buffer); |
271 ArrayBuffer serializeObject(SerializedScriptValue obj); | 270 ArrayBuffer serializeObject(SerializedScriptValue obj); |
272 | 271 |
273 void forceReload(boolean endToEnd); | 272 void forceReload(boolean endToEnd); |
274 | 273 |
275 [TypeChecking=Interface] DOMString getImageSourceURL(Element element); | 274 DOMString getImageSourceURL(Element element); |
276 | 275 |
277 [TypeChecking=Interface] DOMString selectMenuListText(HTMLSelectElement sele
ct); | 276 DOMString selectMenuListText(HTMLSelectElement select); |
278 [TypeChecking=Interface] boolean isSelectPopupVisible(Node node); | 277 boolean isSelectPopupVisible(Node node); |
279 boolean selectPopupItemStyleIsRtl(Node select, long itemIndex); | 278 boolean selectPopupItemStyleIsRtl(Node select, long itemIndex); |
280 long selectPopupItemStyleFontHeight(Node select, long itemIndex); | 279 long selectPopupItemStyleFontHeight(Node select, long itemIndex); |
281 [TypeChecking=Interface] void resetTypeAheadSession(HTMLSelectElement select
); | 280 void resetTypeAheadSession(HTMLSelectElement select); |
282 | 281 |
283 [RaisesException] ClientRect selectionBounds(); | 282 [RaisesException] ClientRect selectionBounds(); |
284 | 283 |
285 boolean loseSharedGraphicsContext3D(); | 284 boolean loseSharedGraphicsContext3D(); |
286 | 285 |
287 [RaisesException, TypeChecking=Interface] void forceCompositingUpdate(Docume
nt document); | 286 [RaisesException] void forceCompositingUpdate(Document document); |
288 | 287 |
289 void setZoomFactor(float factor); | 288 void setZoomFactor(float factor); |
290 | 289 |
291 [RaisesException, TypeChecking=Interface] void setShouldRevealPassword(Eleme
nt element, boolean reveal); | 290 [RaisesException] void setShouldRevealPassword(Element element, boolean reve
al); |
292 | 291 |
293 [CallWith=ScriptState] Promise createResolvedPromise(any value); | 292 [CallWith=ScriptState] Promise createResolvedPromise(any value); |
294 [CallWith=ScriptState] Promise createRejectedPromise(any reason); | 293 [CallWith=ScriptState] Promise createRejectedPromise(any reason); |
295 [CallWith=ScriptState] Promise addOneToPromise(Promise promise); | 294 [CallWith=ScriptState] Promise addOneToPromise(Promise promise); |
296 [CallWith=ScriptState, RaisesException] Promise promiseCheck(long arg1, bool
ean arg2, Dictionary arg3, DOMString arg4, DOMString[] arg5); | 295 [CallWith=ScriptState, RaisesException] Promise promiseCheck(long arg1, bool
ean arg2, Dictionary arg3, DOMString arg4, DOMString[] arg5); |
297 [CallWith=ScriptState] Promise promiseCheckWithoutExceptionState(Dictionary
arg1, DOMString arg2, DOMString... variadic); | 296 [CallWith=ScriptState] Promise promiseCheckWithoutExceptionState(Dictionary
arg1, DOMString arg2, DOMString... variadic); |
298 [CallWith=ScriptState] Promise promiseCheckRange([EnforceRange] octet arg1); | 297 [CallWith=ScriptState] Promise promiseCheckRange([EnforceRange] octet arg1); |
299 [CallWith=ScriptState] Promise promiseCheckOverload(Location arg1); | 298 [CallWith=ScriptState] Promise promiseCheckOverload(Location arg1); |
300 [CallWith=ScriptState] Promise promiseCheckOverload(Document arg1); | 299 [CallWith=ScriptState] Promise promiseCheckOverload(Document arg1); |
301 [CallWith=ScriptState] Promise promiseCheckOverload(Location arg1, long arg2
, long arg3); | 300 [CallWith=ScriptState] Promise promiseCheckOverload(Location arg1, long arg2
, long arg3); |
302 | 301 |
303 void setValueForUser(Element element, DOMString value); | 302 void setValueForUser(Element element, DOMString value); |
304 | 303 |
305 DOMString textSurroundingNode(Node node, long x, long y, unsigned long maxLe
ngth); | 304 DOMString textSurroundingNode(Node node, long x, long y, unsigned long maxLe
ngth); |
306 | 305 |
307 void setFocused(boolean focused); | 306 void setFocused(boolean focused); |
308 void setInitialFocus(boolean reverse); | 307 void setInitialFocus(boolean reverse); |
309 | 308 |
310 [TypeChecking=Interface] boolean ignoreLayoutWithPendingStylesheets(Document
document); | 309 boolean ignoreLayoutWithPendingStylesheets(Document document); |
311 | 310 |
312 // These functions are for testing NetInfo. You must call setNetworkStateNot
ifierTestOnly(true) | 311 // These functions are for testing NetInfo. You must call setNetworkStateNot
ifierTestOnly(true) |
313 // before calling setNetworkConnectionInfo. | 312 // before calling setNetworkConnectionInfo. |
314 void setNetworkStateNotifierTestOnly(boolean testOnly); | 313 void setNetworkStateNotifierTestOnly(boolean testOnly); |
315 [RaisesException] void setNetworkConnectionInfo(DOMString type, double downl
inkMaxMbps); | 314 [RaisesException] void setNetworkConnectionInfo(DOMString type, double downl
inkMaxMbps); |
316 | 315 |
317 // This function is for testing HitRegions on Canvas2D. | 316 // This function is for testing HitRegions on Canvas2D. |
318 unsigned long countHitRegions(CanvasRenderingContext2D context); | 317 unsigned long countHitRegions(CanvasRenderingContext2D context); |
319 | 318 |
320 [TypeChecking=Interface] boolean isInCanvasFontCache(Document document, DOMS
tring fontString); | 319 boolean isInCanvasFontCache(Document document, DOMString fontString); |
321 [TypeChecking=Interface] unsigned long canvasFontCacheMaxFonts(); | 320 unsigned long canvasFontCacheMaxFonts(); |
322 | 321 |
323 [TypeChecking=Interface] ClientRect boundsInViewportSpace(Element element); | 322 ClientRect boundsInViewportSpace(Element element); |
324 | 323 |
325 DictionaryTest dictionaryTest(); | 324 DictionaryTest dictionaryTest(); |
326 UnionTypesTest unionTypesTest(); | 325 UnionTypesTest unionTypesTest(); |
327 [RaisesException, TypeChecking=Interface] void setScrollChain(ScrollState sc
rollState, Element[] elements); | 326 [RaisesException] void setScrollChain(ScrollState scrollState, Element[] ele
ments); |
328 void forceBlinkGCWithoutV8GC(); | 327 void forceBlinkGCWithoutV8GC(); |
329 | 328 |
330 DOMString selectedHTMLForClipboard(); | 329 DOMString selectedHTMLForClipboard(); |
331 DOMString selectedTextForClipboard(); | 330 DOMString selectedTextForClipboard(); |
332 | 331 |
333 void setVisualViewportOffset(long x, long y); | 332 void setVisualViewportOffset(long x, long y); |
334 int visualViewportHeight(); | 333 int visualViewportHeight(); |
335 int visualViewportWidth(); | 334 int visualViewportWidth(); |
336 double visualViewportScrollX(); | 335 double visualViewportScrollX(); |
337 double visualViewportScrollY(); | 336 double visualViewportScrollY(); |
(...skipping 12 matching lines...) Expand all Loading... |
350 void setCapsLockState(boolean enabled); | 349 void setCapsLockState(boolean enabled); |
351 void setSelectionPaintingWithoutSelectionGapsEnabled(boolean enabled); | 350 void setSelectionPaintingWithoutSelectionGapsEnabled(boolean enabled); |
352 | 351 |
353 // Returns whether the scrollbar was able to be shown or hidden; not all pla
tforms | 352 // Returns whether the scrollbar was able to be shown or hidden; not all pla
tforms |
354 // support overlay scrollbars. | 353 // support overlay scrollbars. |
355 bool setScrollbarVisibilityInScrollableArea(Node node, boolean visible); | 354 bool setScrollbarVisibilityInScrollableArea(Node node, boolean visible); |
356 | 355 |
357 void forceRestrictIFramePermissions(); | 356 void forceRestrictIFramePermissions(); |
358 [RaisesException] double monotonicTimeToZeroBasedDocumentTime(double platfor
mTime); | 357 [RaisesException] double monotonicTimeToZeroBasedDocumentTime(double platfor
mTime); |
359 | 358 |
360 [TypeChecking=Interface] void setMediaElementNetworkState(HTMLMediaElement e
lement, long state); | 359 void setMediaElementNetworkState(HTMLMediaElement element, long state); |
361 | 360 |
362 // TODO(liberato): remove once autoplay gesture override experiment conclude
s. | 361 // TODO(liberato): remove once autoplay gesture override experiment conclude
s. |
363 [TypeChecking=Interface] void triggerAutoplayViewportCheck(HTMLMediaElement
mediaElement); | 362 void triggerAutoplayViewportCheck(HTMLMediaElement mediaElement); |
364 }; | 363 }; |
OLD | NEW |