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

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

Issue 206333004: Update IDL to 1847 (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Add new files Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « core/testing/InternalSettings.idl ('k') | core/testing/LayerRect.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 NoInterfaceObject, // testing interfaces do not appear on global objects
29 ] interface Internals { 30 ] interface Internals {
30 DOMString address(Node node); 31 DOMString address(Node node);
31 32
32 GCObservation observeGC(any observed); 33 GCObservation observeGC(any observed);
33 34
34 [RaisesException] DOMString elementRenderTreeAsText(Element element); 35 [RaisesException] DOMString elementRenderTreeAsText(Element element);
35 boolean isPreloaded(DOMString url); 36 boolean isPreloaded(DOMString url);
36 boolean isLoadingFromMemoryCache(DOMString url); 37 boolean isLoadingFromMemoryCache(DOMString url);
37 38
38 void crash(); 39 void crash();
39 40
40 void setStyleResolverStatsEnabled(boolean enabled); 41 void setStyleResolverStatsEnabled(boolean enabled);
41 [RaisesException] DOMString styleResolverStatsReport(); 42 [RaisesException] DOMString styleResolverStatsReport();
42 [RaisesException] DOMString styleResolverStatsTotalsReport(); 43 [RaisesException] DOMString styleResolverStatsTotalsReport();
43 44
45 [RaisesException] boolean isSharingStyle(Element element1, Element element2) ;
46
44 [RaisesException] unsigned long numberOfScopedHTMLStyleChildren(Node scope); 47 [RaisesException] unsigned long numberOfScopedHTMLStyleChildren(Node scope);
45 [RaisesException] CSSStyleDeclaration computedStyleIncludingVisitedInfo(Node node); 48 [RaisesException] CSSStyleDeclaration computedStyleIncludingVisitedInfo(Node node);
46 49
47 [RaisesException] ShadowRoot ensureShadowRoot(Element host);
48 [RaisesException] ShadowRoot shadowRoot(Element host); 50 [RaisesException] ShadowRoot shadowRoot(Element host);
49 [RaisesException] ShadowRoot youngestShadowRoot(Element host); 51 [RaisesException] ShadowRoot youngestShadowRoot(Element host);
50 [RaisesException] ShadowRoot oldestShadowRoot(Element host); 52 [RaisesException] ShadowRoot oldestShadowRoot(Element host);
51 [RaisesException] ShadowRoot youngerShadowRoot(Node root); 53 [RaisesException] ShadowRoot youngerShadowRoot(Node root);
52 [RaisesException] ShadowRoot olderShadowRoot(Node root);
53 54
54 [RaisesException] DOMString shadowRootType(Node root); 55 [RaisesException] DOMString shadowRootType(Node root);
55 [RaisesException] boolean hasShadowInsertionPoint(Node root); 56 [RaisesException] boolean hasShadowInsertionPoint(Node root);
56 [RaisesException] boolean hasContentElement(Node root); 57 [RaisesException] boolean hasContentElement(Node root);
57 [RaisesException] unsigned long countElementShadow(Node Root); 58 [RaisesException] unsigned long countElementShadow(Node Root);
58 [RaisesException] DOMString shadowPseudoId(Element element); 59 [RaisesException] DOMString shadowPseudoId(Element element);
59 [RaisesException] void setShadowPseudoId(Element element, DOMString id); 60 [RaisesException] void setShadowPseudoId(Element element, DOMString id);
60 [RaisesException] Element createContentElement();
61 [RaisesException] boolean isValidContentSelect(Element contentElement); 61 [RaisesException] boolean isValidContentSelect(Element contentElement);
62 [RaisesException] Node treeScopeRootNode(Node node); 62 [RaisesException] Node treeScopeRootNode(Node node);
63 [RaisesException] Node parentTreeScope(Node node); 63 [RaisesException] Node parentTreeScope(Node node);
64 [RaisesException] boolean hasSelectorForIdInShadow(Element host, DOMString i d); 64 [RaisesException] boolean hasSelectorForIdInShadow(Element host, DOMString i d);
65 [RaisesException] boolean hasSelectorForClassInShadow(Element host, DOMStrin g className); 65 [RaisesException] boolean hasSelectorForClassInShadow(Element host, DOMStrin g className);
66 [RaisesException] boolean hasSelectorForAttributeInShadow(Element host, DOMS tring attributeName); 66 [RaisesException] boolean hasSelectorForAttributeInShadow(Element host, DOMS tring attributeName);
67 [RaisesException] boolean hasSelectorForPseudoClassInShadow(Element host, DO MString pseudoClass); 67 [RaisesException] boolean hasSelectorForPseudoClassInShadow(Element host, DO MString pseudoClass);
68 [RaisesException] unsigned short compareTreeScopePosition(Node treeScope1, N ode treeScope2); 68 [RaisesException] unsigned short compareTreeScopePosition(Node treeScope1, N ode treeScope2);
69 [RaisesException] unsigned long updateStyleAndReturnAffectedElementCount(); 69 [RaisesException] unsigned long updateStyleAndReturnAffectedElementCount();
70 [RaisesException] unsigned long needsLayoutCount();
70 71
71 // CSS Animation and Transition testing. 72 // CSS Animation and Transition testing.
72 unsigned long numberOfActiveAnimations(); 73 unsigned long numberOfActiveAnimations();
73 [RaisesException] void pauseAnimations(double pauseTime); 74 [RaisesException] void pauseAnimations(double pauseTime);
74 75
75 [RaisesException] Node nextSiblingByWalker(Node node); 76 [RaisesException] Node nextSiblingByWalker(Node node);
76 [RaisesException] Node firstChildByWalker(Node node); 77 [RaisesException] Node firstChildByWalker(Node node);
77 [RaisesException] Node lastChildByWalker(Node node); 78 [RaisesException] Node lastChildByWalker(Node node);
78 [RaisesException] Node nextNodeByWalker(Node node); 79 [RaisesException] Node nextNodeByWalker(Node node);
79 [RaisesException] Node previousNodeByWalker(Node node); 80 [RaisesException] Node previousNodeByWalker(Node node);
80 81
81 DOMString visiblePlaceholder(Element element); 82 DOMString visiblePlaceholder(Element element);
82 83
83 void selectColorInColorChooser(Element element, DOMString colorValue); 84 void selectColorInColorChooser(Element element, DOMString colorValue);
84 85
86 // If the argument is omitted, the top-level document is used.
87 boolean hasAutofocusRequest(optional Document document);
85 [RaisesException] DOMString[] formControlStateOfHistoryItem(); 88 [RaisesException] DOMString[] formControlStateOfHistoryItem();
86 [RaisesException] void setFormControlStateOfHistoryItem(sequence<DOMString> values); 89 [RaisesException] void setFormControlStateOfHistoryItem(sequence<DOMString> values);
87 [RaisesException] void setEnableMockPagePopup(boolean enabled); 90 [RaisesException] void setEnableMockPagePopup(boolean enabled);
88 readonly attribute PagePopupController pagePopupController; 91 readonly attribute PagePopupController pagePopupController;
89 92
90 [RaisesException] ClientRect unscaledViewportRect(); 93 [RaisesException] ClientRect unscaledViewportRect();
91 94
92 [RaisesException] ClientRect absoluteCaretBounds(); 95 [RaisesException] ClientRect absoluteCaretBounds();
93 96
94 [RaisesException] ClientRect boundingBox(Element element); 97 [RaisesException] ClientRect boundingBox(Element element);
95 98
96 [RaisesException] ClientRectList inspectorHighlightRects(Document document); 99 [RaisesException] ClientRectList inspectorHighlightRects(Document document);
97 100
98 [RaisesException] unsigned long markerCountForNode(Node node, DOMString mark erType); 101 [RaisesException] unsigned long markerCountForNode(Node node, DOMString mark erType);
99 [RaisesException] unsigned long activeMarkerCountForNode(Node node); 102 [RaisesException] unsigned long activeMarkerCountForNode(Node node);
100 [RaisesException] Range markerRangeForNode(Node node, DOMString markerType, unsigned long index); 103 [RaisesException] Range markerRangeForNode(Node node, DOMString markerType, unsigned long index);
101 [RaisesException] DOMString markerDescriptionForNode(Node node, DOMString ma rkerType, unsigned long index); 104 [RaisesException] DOMString markerDescriptionForNode(Node node, DOMString ma rkerType, unsigned long index);
102 void addTextMatchMarker(Range range, boolean isActive); 105 void addTextMatchMarker(Range range, boolean isActive);
103 [RaisesException] void setMarkersActive(Node node, unsigned long startOffset , unsigned long endOffset, boolean active); 106 [RaisesException] void setMarkersActive(Node node, unsigned long startOffset , unsigned long endOffset, boolean active);
107 [RaisesException] void setMarkedTextMatchesAreHighlighted(Document document, boolean highlight);
104 108
105 [RaisesException] void setScrollViewPosition(Document document, long x, long y); 109 [RaisesException] void setScrollViewPosition(Document document, long x, long y);
106 110
107 [RaisesException] void setPagination(Document document, DOMString mode, long gap, optional long pageLength);
108
109 [RaisesException] DOMString viewportAsText(Document document, 111 [RaisesException] DOMString viewportAsText(Document document,
110 float devicePixelRatio, 112 float devicePixelRatio,
111 long availableWidth, 113 long availableWidth,
112 long availableHeight); 114 long availableHeight);
113 115
114 [RaisesException] boolean wasLastChangeUserEdit(Element textField); 116 [RaisesException] boolean wasLastChangeUserEdit(Element textField);
115 [RaisesException] boolean elementShouldAutoComplete(Element inputElement); 117 [RaisesException] boolean elementShouldAutoComplete(Element inputElement);
116 [RaisesException] DOMString suggestedValue(Element inputElement); 118 [RaisesException] DOMString suggestedValue(Element inputElement);
117 [RaisesException] void setSuggestedValue(Element inputElement, DOMString val ue); 119 [RaisesException] void setSuggestedValue(Element inputElement, DOMString val ue);
118 [RaisesException] void setEditingValue(Element inputElement, DOMString value ); 120 [RaisesException] void setEditingValue(Element inputElement, DOMString value );
119 [RaisesException] void setAutofilled(Element inputElement, boolean enabled); 121 [RaisesException] void setAutofilled(Element inputElement, boolean enabled);
120 122
121 [RaisesException] void paintControlTints(Document document);
122
123 [RaisesException] void scrollElementToRect(Element element, long x, long y, long w, long h); 123 [RaisesException] void scrollElementToRect(Element element, long x, long y, long w, long h);
124 124
125 [RaisesException] Range rangeFromLocationAndLength(Element scope, long range Location, long rangeLength); 125 [RaisesException] Range rangeFromLocationAndLength(Element scope, long range Location, long rangeLength);
126 [RaisesException] unsigned long locationFromRange(Element scope, Range range ); 126 [RaisesException] unsigned long locationFromRange(Element scope, Range range );
127 [RaisesException] unsigned long lengthFromRange(Element scope, Range range); 127 [RaisesException] unsigned long lengthFromRange(Element scope, Range range);
128 [RaisesException] DOMString rangeAsText(Range range); 128 [RaisesException] DOMString rangeAsText(Range range);
129 129
130 [RaisesException] WebKitPoint touchPositionAdjustedToBestClickableNode(long x, long y, long width, long height, Document document); 130 [RaisesException] WebKitPoint touchPositionAdjustedToBestClickableNode(long x, long y, long width, long height, Document document);
131 [RaisesException] Node touchNodeAdjustedToBestClickableNode(long x, long y, long width, long height, Document document); 131 [RaisesException] Node touchNodeAdjustedToBestClickableNode(long x, long y, long width, long height, Document document);
132 [RaisesException] WebKitPoint touchPositionAdjustedToBestContextMenuNode(lon g x, long y, long width, long height, Document document); 132 [RaisesException] WebKitPoint touchPositionAdjustedToBestContextMenuNode(lon g x, long y, long width, long height, Document document);
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 263
264 [RaisesException] DOMString getImageSourceURL(Element element); 264 [RaisesException] DOMString getImageSourceURL(Element element);
265 265
266 boolean isSelectPopupVisible(Node node); 266 boolean isSelectPopupVisible(Node node);
267 267
268 [RaisesException] ClientRect selectionBounds(); 268 [RaisesException] ClientRect selectionBounds();
269 269
270 boolean loseSharedGraphicsContext3D(); 270 boolean loseSharedGraphicsContext3D();
271 271
272 [RaisesException] void forceCompositingUpdate(Document document); 272 [RaisesException] void forceCompositingUpdate(Document document);
273 [RaisesException] boolean isCompositorFramePending(Document document);
273 274
274 void setZoomFactor(float factor); 275 void setZoomFactor(float factor);
276
277 [RaisesException] void setShouldRevealPassword(Element element, boolean reve al);
278
279 [CallWith=ExecutionContext] Promise addOneToPromise(Promise promise);
275 }; 280 };
OLDNEW
« no previous file with comments | « core/testing/InternalSettings.idl ('k') | core/testing/LayerRect.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698