Index: core/testing/Internals.idl |
diff --git a/core/testing/Internals.idl b/core/testing/Internals.idl |
index 1535447d19ae6e73077568d02fc79e0f318bf7db..23c3d70bd908ac4dc64984e204ad72aa0287d755 100644 |
--- a/core/testing/Internals.idl |
+++ b/core/testing/Internals.idl |
@@ -27,20 +27,24 @@ |
[ |
DoNotCheckConstants, |
GarbageCollected, |
- Iterable, |
+ TypeChecking=Interface, |
+ ConstructorCallWith=ScriptState, |
] interface Internals { |
DOMString address(Node node); |
GCObservation observeGC(any observed); |
- [RaisesException, TypeChecking=Interface] DOMString elementRenderTreeAsText(Element element); |
+ [RaisesException, TypeChecking=Interface] DOMString elementLayoutTreeAsText(Element element); |
boolean isPreloaded(DOMString url); |
+ boolean isPreloadedBy(DOMString url, Document document); |
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); |
@@ -57,20 +61,27 @@ |
[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); |
+ [RaisesException] unsigned long hitTestCacheHits(Document document); |
+ [RaisesException] Element? elementFromPoint(Document document, double x, double y, boolean ignoreClipping, boolean allowChildFrameContent); |
+ [RaisesException] void clearHitTestCache(Document document); |
- // CSS Animation and Transition testing. |
+ // Animation testing. |
[RaisesException] void pauseAnimations(double pauseTime); |
+ bool isCompositedAnimation(Animation animation); |
+ |
+ // Modifies m_desiredFrameStartTime in BitmapImage to advance the next frame time |
+ // for testing whether animated images work properly. |
+ [RaisesException] void advanceTimeForImage(Element image, double deltaTimeInSeconds); |
- [TypeChecking=Interface] Node nextSiblingByWalker(Node node); |
- [TypeChecking=Interface] Node firstChildByWalker(Node node); |
- [TypeChecking=Interface] Node lastChildByWalker(Node node); |
- [TypeChecking=Interface] Node nextNodeByWalker(Node node); |
- [TypeChecking=Interface] Node previousNodeByWalker(Node node); |
+ [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); |
@@ -81,8 +92,7 @@ |
boolean hasAutofocusRequest(optional Document document); |
[RaisesException] DOMString[] formControlStateOfHistoryItem(); |
[RaisesException] void setFormControlStateOfHistoryItem(sequence<DOMString> values); |
- [RaisesException] void setEnableMockPagePopup(boolean enabled); |
- readonly attribute PagePopupController pagePopupController; |
+ readonly attribute Window pagePopupWindow; |
[RaisesException] ClientRect absoluteCaretBounds(); |
@@ -96,7 +106,7 @@ |
[TypeChecking=Interface] void setMarkersActive(Node node, unsigned long startOffset, unsigned long endOffset, boolean active); |
void setMarkedTextMatchesAreHighlighted(Document document, boolean highlight); |
- [RaisesException, TypeChecking=Interface] void setScrollViewPosition(Document document, long x, long y); |
+ [RaisesException, TypeChecking=Interface] void setFrameViewPosition(Document document, long x, long y); |
[RaisesException, TypeChecking=Interface] DOMString viewportAsText(Document document, |
float devicePixelRatio, |
@@ -135,6 +145,12 @@ |
[TypeChecking=Interface] unsigned long touchEventHandlerCount(Document document); |
[RaisesException, TypeChecking=Interface] LayerRectList touchEventTargetLayerRects(Document document); |
+ [RaisesException, TypeChecking=Interface] boolean executeCommand(Document document, DOMString name, DOMString value); |
+ |
+ 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, |
@@ -152,7 +168,6 @@ |
[TypeChecking=Interface] boolean isPageBoxVisible(Document document, long pageNumber); |
readonly attribute InternalSettings settings; |
- readonly attribute InternalProfilers profilers; |
readonly attribute InternalRuntimeFlags runtimeFlags; |
readonly attribute unsigned long workerThreadCount; |
@@ -162,11 +177,13 @@ |
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; |
+ const unsigned short LAYER_TREE_INCLUDES_SCROLL_BLOCKS_ON = 32; |
+ const unsigned short LAYER_TREE_INCLUDES_PAINT_INVALIDATION_OBJECTS = 64; |
+ const unsigned short LAYER_TREE_INCLUDES_COMPOSITING_REASONS = 128; |
[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); |
- [RaisesException, TypeChecking=Interface] boolean isUnclippedDescendant(Element element); |
[TypeChecking=Interface] DOMString scrollingStateTreeAsText(Document document); |
[RaisesException, TypeChecking=Interface] DOMString mainThreadScrollingReasons(Document document); |
@@ -180,7 +197,6 @@ |
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); |
DOMString counterValue(Element element); |
long pageNumber(Element element, optional float pageWidth, optional float pageHeight); |
@@ -191,14 +207,17 @@ |
[RaisesException] DOMString pageSizeAndMarginsInPixels(long pageIndex, long width, long height, long marginTop, long marginRight, long marginBottom, long marginLeft); |
[RaisesException] void setDeviceScaleFactor(float scaleFactor); |
+ [RaisesException] void setPageScaleFactor(float scaleFactor); |
+ [RaisesException] void setPageScaleFactorLimits(float minScaleFactor, float maxScaleFactor); |
[RaisesException, TypeChecking=Interface] void setIsCursorVisible(Document document, boolean isVisible); |
- void mediaPlayerRequestFullscreen(HTMLMediaElement mediaElement); |
- double effectiveMediaVolume(HTMLMediaElement mediaElement); |
- void mediaPlayerRemoteRouteAvailabilityChanged(HTMLMediaElement mediaElement, boolean available); |
+ [TypeChecking=Interface] double effectiveMediaVolume(HTMLMediaElement mediaElement); |
+ [TypeChecking=Interface] void mediaPlayerRemoteRouteAvailabilityChanged(HTMLMediaElement mediaElement, boolean available); |
+ [TypeChecking=Interface] void mediaPlayerPlayingRemotelyChanged(HTMLMediaElement mediaElement, boolean remote); |
void registerURLSchemeAsBypassingContentSecurityPolicy(DOMString scheme); |
+ void registerURLSchemeAsBypassingContentSecurityPolicy(DOMString scheme, sequence<DOMString> policyAreas); |
void removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(DOMString scheme); |
TypeConversions typeConversions(); |
@@ -218,7 +237,7 @@ |
// |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] void updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks(optional Node? node = null); |
[RaisesException, TypeChecking=Interface] void forceFullRepaint(Document document); |
@@ -227,7 +246,9 @@ |
[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 getCurrentCursorInfo(); |
+ |
+ readonly attribute boolean cursorUpdatePending; |
[TypeChecking=Interface] DOMString markerTextForListItem(Element element); |
@@ -238,6 +259,7 @@ |
[TypeChecking=Interface] DOMString getImageSourceURL(Element element); |
+ [TypeChecking=Interface] DOMString selectMenuListText(HTMLSelectElement select); |
[TypeChecking=Interface] boolean isSelectPopupVisible(Node node); |
boolean selectPopupItemStyleIsRtl(Node select, long itemIndex); |
long selectPopupItemStyleFontHeight(Node select, long itemIndex); |
@@ -258,12 +280,16 @@ |
[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); |
+ void setInitialFocus(boolean reverse); |
[TypeChecking=Interface] boolean ignoreLayoutWithPendingStylesheets(Document document); |
@@ -275,11 +301,31 @@ |
// This function is for testing HitRegions on Canvas2D. |
unsigned long countHitRegions(CanvasRenderingContext2D context); |
- DOMString serializeNavigationMarkup(); |
- void hideAllTransitionElements(); |
+ [TypeChecking=Interface] boolean isInCanvasFontCache(Document document, DOMString fontString); |
+ [TypeChecking=Interface] unsigned long canvasFontCacheMaxFonts(); |
+ |
+ [TypeChecking=Interface] ClientRect boundsInViewportSpace(Element element); |
- [RaisesException, TypeChecking=Interface] void forcePluginPlaceholder(HTMLElement plugin, DOMString htmlSource); |
- [RaisesException, TypeChecking=Interface] void forcePluginPlaceholder(HTMLElement plugin, Dictionary options); |
+ [RaisesException, TypeChecking=Interface] void forcePluginPlaceholder(HTMLElement plugin, DocumentFragment fragment); |
+ [RaisesException, TypeChecking=Interface] void forcePluginPlaceholder(HTMLElement plugin, PluginPlaceholderOptions options); |
DictionaryTest dictionaryTest(); |
+ UnionTypesTest unionTypesTest(); |
+ |
+ void forceBlinkGCWithoutV8GC(); |
+ |
+ DOMString selectedHTMLForClipboard(); |
+ DOMString selectedTextForClipboard(); |
+ |
+ void setVisualViewportOffset(long x, long y); |
+ |
+ boolean isUseCounted(Document document, long useCounterId); |
+ |
+ iterable<long>; |
+ |
+ [Unscopeable] readonly attribute DOMString unscopeableAttribute; |
+ [Unscopeable] DOMString unscopeableMethod(); |
+ |
+ ClientRectList focusRingRects(Element element); |
+ void setCapsLockState(boolean enabled); |
}; |