1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303
|
/*
* Copyright (C) 2012 Google Inc. All rights reserved.
* Copyright (C) 2013 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
[
DoNotCheckConstants,
GarbageCollected,
] interface Internals {
DOMString address(Node node);
GCObservation observeGC(any observed);
[RaisesException, TypeChecking=Interface] DOMString elementRenderTreeAsText(Element element);
boolean isPreloaded(DOMString url);
boolean isLoadingFromMemoryCache(DOMString url);
[TypeChecking=Interface] boolean isSharingStyle(Element element1, Element element2);
[TypeChecking=Interface] CSSStyleDeclaration computedStyleIncludingVisitedInfo(Node node);
[TypeChecking=Interface] ShadowRoot createUserAgentShadowRoot(Element host);
[TypeChecking=Interface] ShadowRoot shadowRoot(Element host);
[TypeChecking=Interface] ShadowRoot youngestShadowRoot(Element host);
[TypeChecking=Interface] ShadowRoot oldestShadowRoot(Element host);
[RaisesException, TypeChecking=Interface] ShadowRoot youngerShadowRoot(Node root);
[RaisesException, TypeChecking=Interface] DOMString shadowRootType(Node root);
[RaisesException] boolean hasShadowInsertionPoint(Node root);
[RaisesException] boolean hasContentElement(Node root);
[RaisesException, TypeChecking=Interface] unsigned long countElementShadow(Node Root);
[TypeChecking=Interface] DOMString shadowPseudoId(Element element);
[RaisesException, TypeChecking=Interface] boolean isValidContentSelect(Element contentElement);
[TypeChecking=Interface] Node treeScopeRootNode(Node node);
[TypeChecking=Interface] Node parentTreeScope(Node node);
[RaisesException, TypeChecking=Interface] boolean hasSelectorForIdInShadow(Element host, DOMString id);
[RaisesException, TypeChecking=Interface] boolean hasSelectorForClassInShadow(Element host, DOMString className);
[RaisesException, TypeChecking=Interface] boolean hasSelectorForAttributeInShadow(Element host, DOMString attributeName);
[RaisesException, TypeChecking=Interface] boolean hasSelectorForPseudoClassInShadow(Element host, DOMString pseudoClass);
[RaisesException, TypeChecking=Interface] unsigned short compareTreeScopePosition(Node treeScope1, Node treeScope2);
[RaisesException] unsigned long updateStyleAndReturnAffectedElementCount();
[RaisesException] unsigned long needsLayoutCount();
[RaisesException] unsigned long hitTestCount(Document document);
// CSS Animation and Transition testing.
[RaisesException] void pauseAnimations(double pauseTime);
[RaisesException, TypeChecking=Interface] Node nextSiblingInComposedTree(Node node);
[RaisesException, TypeChecking=Interface] Node firstChildInComposedTree(Node node);
[RaisesException, TypeChecking=Interface] Node lastChildInComposedTree(Node node);
[RaisesException, TypeChecking=Interface] Node nextInComposedTree(Node node);
[RaisesException, TypeChecking=Interface] Node previousInComposedTree(Node node);
DOMString visiblePlaceholder(Element element);
[TypeChecking=Interface] void selectColorInColorChooser(Element element, DOMString colorValue);
[TypeChecking=Interface] void endColorChooser(Element element);
// If the argument is omitted, the top-level document is used.
boolean hasAutofocusRequest(optional Document document);
[RaisesException] DOMString[] formControlStateOfHistoryItem();
[RaisesException] void setFormControlStateOfHistoryItem(sequence<DOMString> values);
readonly attribute Window pagePopupWindow;
[RaisesException] ClientRect absoluteCaretBounds();
[TypeChecking=Interface] ClientRect boundingBox(Element element);
[RaisesException, TypeChecking=Interface] unsigned long markerCountForNode(Node node, DOMString markerType);
[TypeChecking=Interface] unsigned long activeMarkerCountForNode(Node node);
[RaisesException, TypeChecking=Interface] Range markerRangeForNode(Node node, DOMString markerType, unsigned long index);
[RaisesException, TypeChecking=Interface] DOMString markerDescriptionForNode(Node node, DOMString markerType, unsigned long index);
[TypeChecking=Interface] void addTextMatchMarker(Range range, boolean isActive);
[TypeChecking=Interface] void setMarkersActive(Node node, unsigned long startOffset, unsigned long endOffset, boolean active);
void setMarkedTextMatchesAreHighlighted(Document document, boolean highlight);
[RaisesException, TypeChecking=Interface] void setFrameViewPosition(Document document, long x, long y);
[RaisesException, TypeChecking=Interface] DOMString viewportAsText(Document document,
float devicePixelRatio,
long availableWidth,
long availableHeight);
[RaisesException, TypeChecking=Interface] boolean wasLastChangeUserEdit(Element textField);
[RaisesException, TypeChecking=Interface] boolean elementShouldAutoComplete(Element inputElement);
[RaisesException, TypeChecking=Interface] DOMString suggestedValue(Element inputElement);
[RaisesException, TypeChecking=Interface] void setSuggestedValue(Element inputElement, DOMString value);
[RaisesException, TypeChecking=Interface] void setEditingValue(Element inputElement, DOMString value);
[RaisesException, TypeChecking=Interface] void setAutofilled(Element inputElement, boolean enabled);
[RaisesException, TypeChecking=Interface] void scrollElementToRect(Element element, long x, long y, long w, long h);
[TypeChecking=Interface] Range rangeFromLocationAndLength(Element scope, long rangeLocation, long rangeLength);
[TypeChecking=Interface] unsigned long locationFromRange(Element scope, Range range);
[TypeChecking=Interface] unsigned long lengthFromRange(Element scope, Range range);
[TypeChecking=Interface] DOMString rangeAsText(Range range);
[RaisesException, TypeChecking=Interface] DOMPoint touchPositionAdjustedToBestClickableNode(long x, long y, long width, long height, Document document);
[RaisesException, TypeChecking=Interface] Node touchNodeAdjustedToBestClickableNode(long x, long y, long width, long height, Document document);
[RaisesException, TypeChecking=Interface] DOMPoint touchPositionAdjustedToBestContextMenuNode(long x, long y, long width, long height, Document document);
[RaisesException, TypeChecking=Interface] Node touchNodeAdjustedToBestContextMenuNode(long x, long y, long width, long height, Document document);
[RaisesException, TypeChecking=Interface] ClientRect bestZoomableAreaForTouchPoint(long x, long y, long width, long height, Document document);
[RaisesException] long lastSpellCheckRequestSequence(Document document);
[RaisesException] long lastSpellCheckProcessedSequence(Document document);
sequence<DOMString> userPreferredLanguages();
void setUserPreferredLanguages(sequence<DOMString> languages);
[TypeChecking=Interface] unsigned long activeDOMObjectCount(Document document);
[TypeChecking=Interface] unsigned long wheelEventHandlerCount(Document document);
[TypeChecking=Interface] unsigned long scrollEventHandlerCount(Document document);
[TypeChecking=Interface] unsigned long touchEventHandlerCount(Document document);
[RaisesException, TypeChecking=Interface] LayerRectList touchEventTargetLayerRects(Document document);
DOMString htmlNamespace();
sequence<DOMString> htmlTags();
DOMString svgNamespace();
sequence<DOMString> svgTags();
[RaisesException, TypeChecking=Interface] NodeList nodesFromRect(Document document, long x, long y,
unsigned long topPadding, unsigned long rightPadding, unsigned long bottomPadding, unsigned long leftPadding,
boolean ignoreClipping, boolean allowChildFrameContent);
[TypeChecking=Interface] boolean hasSpellingMarker(Document document, long from, long length);
[TypeChecking=Interface] boolean hasGrammarMarker(Document document, long from, long length);
void setContinuousSpellCheckingEnabled(boolean enabled);
[TypeChecking=Interface] boolean isOverwriteModeEnabled(Document document);
[TypeChecking=Interface] void toggleOverwriteModeEnabled(Document document);
[TypeChecking=Interface] unsigned long numberOfScrollableAreas(Document document);
[TypeChecking=Interface] boolean isPageBoxVisible(Document document, long pageNumber);
readonly attribute InternalSettings settings;
readonly attribute InternalRuntimeFlags runtimeFlags;
readonly attribute unsigned long workerThreadCount;
// Flags for layerTreeAsText.
// The values of these constants must be kept in sync with the values of LayerTreeAsTextBehaviorFlags in GraphicsLayerClient.h.
const unsigned short LAYER_TREE_INCLUDES_REPAINT_RECTS = 2;
const unsigned short LAYER_TREE_INCLUDES_PAINTING_PHASES = 4;
const unsigned short LAYER_TREE_INCLUDES_ROOT_LAYER = 8;
const unsigned short LAYER_TREE_INCLUDES_CLIP_AND_SCROLL_PARENTS = 16;
[RaisesException, TypeChecking=Interface] DOMString layerTreeAsText(Document document, optional unsigned short flags);
[RaisesException, TypeChecking=Interface] DOMString elementLayerTreeAsText(Element element, optional unsigned short flags);
[RaisesException, TypeChecking=Interface] boolean scrollsWithRespectTo(Element element1, Element element2);
[TypeChecking=Interface] DOMString scrollingStateTreeAsText(Document document);
[RaisesException, TypeChecking=Interface] DOMString mainThreadScrollingReasons(Document document);
[RaisesException, TypeChecking=Interface] ClientRectList nonFastScrollableRects(Document document);
[TypeChecking=Interface] void garbageCollectDocumentResources(Document document);
void evictAllResources();
unsigned long numberOfLiveNodes();
unsigned long numberOfLiveDocuments();
DOMString dumpRefCountedInstanceCounts();
sequence<DOMString> consoleMessageArgumentCounts(Document document);
unsigned long[] setMemoryCacheCapacities(unsigned long minDeadBytes, unsigned long maxDeadBytes, unsigned long totalBytes);
[RaisesException] void setInspectorResourcesDataSizeLimits(long maximumResourcesContentSize, long maximumSingleResourceContentSize);
[RaisesException] DOMString inspectorHighlightJSON(Node node);
DOMString counterValue(Element element);
long pageNumber(Element element, optional float pageWidth, optional float pageHeight);
DOMString[] shortcutIconURLs(Document document);
DOMString[] allIconURLs(Document document);
long numberOfPages(optional double pageWidthInPixels, optional double pageHeightInPixels);
[RaisesException] DOMString pageProperty(DOMString propertyName, long pageNumber);
[RaisesException] DOMString pageSizeAndMarginsInPixels(long pageIndex, long width, long height, long marginTop, long marginRight, long marginBottom, long marginLeft);
[RaisesException] void setDeviceScaleFactor(float scaleFactor);
[RaisesException, TypeChecking=Interface] void setIsCursorVisible(Document document, boolean isVisible);
void mediaPlayerRequestFullscreen(HTMLMediaElement mediaElement);
double effectiveMediaVolume(HTMLMediaElement mediaElement);
void mediaPlayerRemoteRouteAvailabilityChanged(HTMLMediaElement mediaElement, boolean available);
void mediaPlayerPlayingRemotelyChanged(HTMLMediaElement mediaElement, boolean remote);
void registerURLSchemeAsBypassingContentSecurityPolicy(DOMString scheme);
void registerURLSchemeAsBypassingContentSecurityPolicy(DOMString scheme, sequence<DOMString> policyAreas);
void removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(DOMString scheme);
TypeConversions typeConversions();
// This is enabled only in Debug builds.
// This is because we want to avoid putting the byte stream of testing private scripts
// into the binary of Release builds.
PrivateScriptTest privateScriptTest();
DOMString[] getReferencedFilePaths();
// These functions both reset the tracked repaint rects. They are inteded to be used in the following order:
// startTrackingRepaints, repaintRectsAsText, stopTrackingRepaints.
[RaisesException, TypeChecking=Interface] void startTrackingRepaints(Document document);
[RaisesException, TypeChecking=Interface] void stopTrackingRepaints(Document document);
// |node| should be Document, HTMLIFrameElement, or unspecified.
// If |node| is an HTMLIFrameElement, it assumes node.contentDocument is
// specified without security checks. Unspecified means this document.
[RaisesException] void updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks(optional Node node);
[RaisesException, TypeChecking=Interface] void forceFullRepaint(Document document);
// Returns a list of draggable/non-draggable regions in the document.
[RaisesException, TypeChecking=Interface] ClientRectList draggableRegions(Document document);
[RaisesException, TypeChecking=Interface] ClientRectList nonDraggableRegions(Document document);
// Returns a string with information about the mouse cursor used at the specified client location.
[RaisesException, TypeChecking=Interface] DOMString getCurrentCursorInfo(Document document);
[TypeChecking=Interface] DOMString markerTextForListItem(Element element);
SerializedScriptValue deserializeBuffer(ArrayBuffer buffer);
ArrayBuffer serializeObject(SerializedScriptValue obj);
void forceReload(boolean endToEnd);
[TypeChecking=Interface] DOMString getImageSourceURL(Element element);
[TypeChecking=Interface] boolean isSelectPopupVisible(Node node);
boolean selectPopupItemStyleIsRtl(Node select, long itemIndex);
long selectPopupItemStyleFontHeight(Node select, long itemIndex);
[RaisesException] ClientRect selectionBounds();
boolean loseSharedGraphicsContext3D();
[RaisesException, TypeChecking=Interface] void forceCompositingUpdate(Document document);
void setZoomFactor(float factor);
[RaisesException, TypeChecking=Interface] void setShouldRevealPassword(Element element, boolean reveal);
[CallWith=ScriptState] Promise createResolvedPromise(any value);
[CallWith=ScriptState] Promise createRejectedPromise(any reason);
[CallWith=ScriptState] Promise addOneToPromise(Promise promise);
[CallWith=ScriptState, RaisesException] Promise promiseCheck(long arg1, boolean arg2, Dictionary arg3, DOMString arg4, DOMString[] arg5);
[CallWith=ScriptState] Promise promiseCheckWithoutExceptionState(Dictionary arg1, DOMString arg2, DOMString... variadic);
[CallWith=ScriptState] Promise promiseCheckRange([EnforceRange] octet arg1);
[CallWith=ScriptState] Promise promiseCheckOverload(Location arg1);
[CallWith=ScriptState] Promise promiseCheckOverload(Document arg1);
[CallWith=ScriptState] Promise promiseCheckOverload(Location arg1, long arg2, long arg3);
void setValueForUser(Element element, DOMString value);
DOMString textSurroundingNode(Node node, long x, long y, unsigned long maxLength);
void setFocused(boolean focused);
[TypeChecking=Interface] boolean ignoreLayoutWithPendingStylesheets(Document document);
// These functions are for testing NetInfo. You must call setNetworkStateNotifierTestOnly(true)
// before calling setNetworkConnectionInfo.
void setNetworkStateNotifierTestOnly(boolean testOnly);
[RaisesException] void setNetworkConnectionInfo(DOMString type);
// This function is for testing HitRegions on Canvas2D.
unsigned long countHitRegions(CanvasRenderingContext2D context);
[TypeChecking=Interface] ClientRect boundsInRootViewSpace(Element element);
DOMString serializeNavigationMarkup();
DOMString[] getTransitionElementIds();
ClientRectList getTransitionElementRects();
void hideAllTransitionElements();
void showAllTransitionElements();
void setExitTransitionStylesheetsEnabled(boolean enabled);
[RaisesException, TypeChecking=Interface] void forcePluginPlaceholder(HTMLElement plugin, DocumentFragment fragment);
[RaisesException, TypeChecking=Interface] void forcePluginPlaceholder(HTMLElement plugin, PluginPlaceholderOptions options);
DictionaryTest dictionaryTest();
UnionTypesTest unionTypesTest();
void forceBlinkGCWithoutV8GC();
iterable<long>;
};
|