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

Unified Diff: third_party/WebKit/Source/core/testing/Internals.idl

Issue 1466563003: Make [TypeChecking=Interface] the default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/testing/Internals.idl
diff --git a/third_party/WebKit/Source/core/testing/Internals.idl b/third_party/WebKit/Source/core/testing/Internals.idl
index d7ce6bd845d8ff6681b0915d9838bb04964f3d93..bdacffa1da8d546251d58de8aa1c65bc7a1aa060 100644
--- a/third_party/WebKit/Source/core/testing/Internals.idl
+++ b/third_party/WebKit/Source/core/testing/Internals.idl
@@ -27,41 +27,40 @@
[
DoNotCheckConstants,
GarbageCollected,
- TypeChecking=Interface,
ConstructorCallWith=ScriptState,
] interface Internals {
DOMString address(Node node);
GCObservation observeGC(any observed);
- [RaisesException, TypeChecking=Interface] DOMString elementLayoutTreeAsText(Element element);
+ [RaisesException] 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);
+ boolean isSharingStyle(Element element1, Element element2);
- [TypeChecking=Interface] CSSStyleDeclaration computedStyleIncludingVisitedInfo(Node node);
+ CSSStyleDeclaration computedStyleIncludingVisitedInfo(Node node);
- [TypeChecking=Interface] ShadowRoot createUserAgentShadowRoot(Element host);
+ 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);
+ ShadowRoot shadowRoot(Element host);
+ ShadowRoot youngestShadowRoot(Element host);
+ ShadowRoot oldestShadowRoot(Element host);
+ [RaisesException] ShadowRoot youngerShadowRoot(Node root);
- [RaisesException, TypeChecking=Interface] DOMString shadowRootType(Node root);
+ [RaisesException] 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] unsigned short compareTreeScopePosition(Node treeScope1, Node treeScope2);
+ [RaisesException] unsigned long countElementShadow(Node Root);
+ DOMString shadowPseudoId(Element element);
+ [RaisesException] boolean isValidContentSelect(Element contentElement);
+ Node treeScopeRootNode(Node node);
+ Node parentTreeScope(Node node);
+ [RaisesException] boolean hasSelectorForIdInShadow(Element host, DOMString id);
+ [RaisesException] boolean hasSelectorForClassInShadow(Element host, DOMString className);
+ [RaisesException] boolean hasSelectorForAttributeInShadow(Element host, DOMString attributeName);
+ [RaisesException] unsigned short compareTreeScopePosition(Node treeScope1, Node treeScope2);
[RaisesException] unsigned long updateStyleAndReturnAffectedElementCount();
[RaisesException] unsigned long needsLayoutCount();
[RaisesException] unsigned long hitTestCount(Document document);
@@ -81,18 +80,18 @@
// Advances an animated image. For BitmapImage (e.g., animated gifs) this
// will advance to the next frame. For SVGImage, this will trigger an
// animation update for CSS and advance the SMIL timeline by one frame.
- [RaisesException, TypeChecking=Interface] void advanceImageAnimation(Element image);
+ [RaisesException] void advanceImageAnimation(Element image);
- [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);
+ [RaisesException] Node nextSiblingInComposedTree(Node node);
+ [RaisesException] Node firstChildInComposedTree(Node node);
+ [RaisesException] Node lastChildInComposedTree(Node node);
+ [RaisesException] Node nextInComposedTree(Node node);
+ [RaisesException] Node previousInComposedTree(Node node);
DOMString visiblePlaceholder(Element element);
- [TypeChecking=Interface] void selectColorInColorChooser(Element element, DOMString colorValue);
- [TypeChecking=Interface] void endColorChooser(Element element);
+ void selectColorInColorChooser(Element element, DOMString colorValue);
+ void endColorChooser(Element element);
// If the argument is omitted, the top-level document is used.
boolean hasAutofocusRequest(optional Document document);
@@ -102,39 +101,39 @@
[RaisesException] ClientRect absoluteCaretBounds();
- [TypeChecking=Interface] ClientRect boundingBox(Element element);
+ 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);
+ [RaisesException] unsigned long markerCountForNode(Node node, DOMString markerType);
+ unsigned long activeMarkerCountForNode(Node node);
+ [RaisesException] Range markerRangeForNode(Node node, DOMString markerType, unsigned long index);
+ [RaisesException] DOMString markerDescriptionForNode(Node node, DOMString markerType, unsigned long index);
+ void addTextMatchMarker(Range range, boolean isActive);
+ 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] void setFrameViewPosition(Document document, long x, long y);
- [RaisesException, TypeChecking=Interface] DOMString viewportAsText(Document document,
- float devicePixelRatio,
- long availableWidth,
- long availableHeight);
+ [RaisesException] DOMString viewportAsText(Document document,
+ float devicePixelRatio,
+ long availableWidth,
+ long availableHeight);
- [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] boolean elementShouldAutoComplete(Element inputElement);
+ [RaisesException] DOMString suggestedValue(Element inputElement);
+ [RaisesException] void setSuggestedValue(Element inputElement, DOMString value);
+ [RaisesException] void setEditingValue(Element inputElement, DOMString value);
+ [RaisesException] void setAutofilled(Element inputElement, boolean enabled);
- [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);
+ Range rangeFromLocationAndLength(Element scope, long rangeLocation, long rangeLength);
+ unsigned long locationFromRange(Element scope, Range range);
+ unsigned long lengthFromRange(Element scope, Range range);
+ 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] DOMPoint touchPositionAdjustedToBestClickableNode(long x, long y, long width, long height, Document document);
+ [RaisesException] Node touchNodeAdjustedToBestClickableNode(long x, long y, long width, long height, Document document);
+ [RaisesException] DOMPoint touchPositionAdjustedToBestContextMenuNode(long x, long y, long width, long height, Document document);
+ [RaisesException] Node touchNodeAdjustedToBestContextMenuNode(long x, long y, long width, long height, Document document);
+ [RaisesException] ClientRect bestZoomableAreaForTouchPoint(long x, long y, long width, long height, Document document);
[RaisesException] long lastSpellCheckRequestSequence(Document document);
[RaisesException] long lastSpellCheckProcessedSequence(Document document);
@@ -142,33 +141,33 @@
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);
+ unsigned long activeDOMObjectCount(Document document);
+ unsigned long wheelEventHandlerCount(Document document);
+ unsigned long scrollEventHandlerCount(Document document);
+ unsigned long touchEventHandlerCount(Document document);
+ [RaisesException] LayerRectList touchEventTargetLayerRects(Document document);
- [RaisesException, TypeChecking=Interface] boolean executeCommand(Document document, DOMString name, DOMString value);
+ [RaisesException] 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,
+ [RaisesException] 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);
+ boolean hasSpellingMarker(Document document, long from, long length);
+ boolean hasGrammarMarker(Document document, long from, long length);
void setContinuousSpellCheckingEnabled(boolean enabled);
- [TypeChecking=Interface] boolean isOverwriteModeEnabled(Document document);
- [TypeChecking=Interface] void toggleOverwriteModeEnabled(Document document);
+ boolean isOverwriteModeEnabled(Document document);
+ void toggleOverwriteModeEnabled(Document document);
- [TypeChecking=Interface] unsigned long numberOfScrollableAreas(Document document);
+ unsigned long numberOfScrollableAreas(Document document);
- [TypeChecking=Interface] boolean isPageBoxVisible(Document document, long pageNumber);
+ boolean isPageBoxVisible(Document document, long pageNumber);
readonly attribute InternalSettings settings;
readonly attribute InternalRuntimeFlags runtimeFlags;
@@ -183,16 +182,16 @@
const unsigned short LAYER_TREE_INCLUDES_CLIP_AND_SCROLL_PARENTS = 16;
const unsigned short LAYER_TREE_INCLUDES_PAINT_INVALIDATION_OBJECTS = 32;
const unsigned short LAYER_TREE_INCLUDES_COMPOSITING_REASONS = 64;
- [RaisesException, TypeChecking=Interface] DOMString layerTreeAsText(Document document, optional unsigned short flags);
- [RaisesException, TypeChecking=Interface] DOMString elementLayerTreeAsText(Element element, optional unsigned short flags);
+ [RaisesException] DOMString layerTreeAsText(Document document, optional unsigned short flags);
+ [RaisesException] DOMString elementLayerTreeAsText(Element element, optional unsigned short flags);
- [RaisesException, TypeChecking=Interface] boolean scrollsWithRespectTo(Element element1, Element element2);
+ [RaisesException] 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);
+ DOMString scrollingStateTreeAsText(Document document);
+ [RaisesException] DOMString mainThreadScrollingReasons(Document document);
+ [RaisesException] ClientRectList nonFastScrollableRects(Document document);
- [TypeChecking=Interface] void garbageCollectDocumentResources(Document document);
+ void garbageCollectDocumentResources(Document document);
void evictAllResources();
unsigned long numberOfLiveNodes();
@@ -213,12 +212,12 @@
[RaisesException] void setPageScaleFactor(float scaleFactor);
[RaisesException] void setPageScaleFactorLimits(float minScaleFactor, float maxScaleFactor);
- [RaisesException, TypeChecking=Interface] void setIsCursorVisible(Document document, boolean isVisible);
+ [RaisesException] void setIsCursorVisible(Document document, boolean isVisible);
- [TypeChecking=Interface] double effectiveMediaVolume(HTMLMediaElement mediaElement);
- [TypeChecking=Interface] void mediaPlayerRemoteRouteAvailabilityChanged(HTMLMediaElement mediaElement, boolean available);
- [TypeChecking=Interface] void mediaPlayerPlayingRemotelyChanged(HTMLMediaElement mediaElement, boolean remote);
- [TypeChecking=Interface] void setAllowHiddenVolumeControls(HTMLMediaElement mediaElement, boolean allow);
+ double effectiveMediaVolume(HTMLMediaElement mediaElement);
+ void mediaPlayerRemoteRouteAvailabilityChanged(HTMLMediaElement mediaElement, boolean available);
+ void mediaPlayerPlayingRemotelyChanged(HTMLMediaElement mediaElement, boolean remote);
+ void setAllowHiddenVolumeControls(HTMLMediaElement mediaElement, boolean allow);
void registerURLSchemeAsBypassingContentSecurityPolicy(DOMString scheme);
void registerURLSchemeAsBypassingContentSecurityPolicy(DOMString scheme, sequence<DOMString> policyAreas);
@@ -236,15 +235,15 @@
// These functions both reset the tracked repaint rects. They are intended to be used in the following order:
// startTrackingRepaints(), repaintRectsAsText(), stopTrackingRepaints().
// TODO(wangxianzhu): Remove these functions when we no longer use repaint rects.
- [RaisesException, TypeChecking=Interface] void startTrackingRepaints(Document document);
- [RaisesException, TypeChecking=Interface] void stopTrackingRepaints(Document document);
+ [RaisesException] void startTrackingRepaints(Document document);
+ [RaisesException] 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 = null);
- [RaisesException, TypeChecking=Interface] void forceFullRepaint(Document document);
+ [RaisesException] void forceFullRepaint(Document document);
// These functions both reset the tracked paint invalidation objects. They are intended to be used in the following order:
// startTrackingPaintInvalidationObjects(), trackedPaintInvalidationObjects(), stopTrackingPaintInvalidationObjects().
@@ -257,38 +256,38 @@
DOMString[] trackedPaintInvalidationObjects();
// 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);
+ [RaisesException] ClientRectList draggableRegions(Document document);
+ [RaisesException] ClientRectList nonDraggableRegions(Document document);
// Returns a string with information about the mouse cursor used at the specified client location.
- [TypeChecking=Interface] DOMString getCurrentCursorInfo();
+ DOMString getCurrentCursorInfo();
readonly attribute boolean cursorUpdatePending;
- [TypeChecking=Interface] DOMString markerTextForListItem(Element element);
+ DOMString markerTextForListItem(Element element);
SerializedScriptValue deserializeBuffer(ArrayBuffer buffer);
ArrayBuffer serializeObject(SerializedScriptValue obj);
void forceReload(boolean endToEnd);
- [TypeChecking=Interface] DOMString getImageSourceURL(Element element);
+ DOMString getImageSourceURL(Element element);
- [TypeChecking=Interface] DOMString selectMenuListText(HTMLSelectElement select);
- [TypeChecking=Interface] boolean isSelectPopupVisible(Node node);
+ DOMString selectMenuListText(HTMLSelectElement select);
+ boolean isSelectPopupVisible(Node node);
boolean selectPopupItemStyleIsRtl(Node select, long itemIndex);
long selectPopupItemStyleFontHeight(Node select, long itemIndex);
- [TypeChecking=Interface] void resetTypeAheadSession(HTMLSelectElement select);
+ void resetTypeAheadSession(HTMLSelectElement select);
[RaisesException] ClientRect selectionBounds();
boolean loseSharedGraphicsContext3D();
- [RaisesException, TypeChecking=Interface] void forceCompositingUpdate(Document document);
+ [RaisesException] void forceCompositingUpdate(Document document);
void setZoomFactor(float factor);
- [RaisesException, TypeChecking=Interface] void setShouldRevealPassword(Element element, boolean reveal);
+ [RaisesException] void setShouldRevealPassword(Element element, boolean reveal);
[CallWith=ScriptState] Promise createResolvedPromise(any value);
[CallWith=ScriptState] Promise createRejectedPromise(any reason);
@@ -307,7 +306,7 @@
void setFocused(boolean focused);
void setInitialFocus(boolean reverse);
- [TypeChecking=Interface] boolean ignoreLayoutWithPendingStylesheets(Document document);
+ boolean ignoreLayoutWithPendingStylesheets(Document document);
// These functions are for testing NetInfo. You must call setNetworkStateNotifierTestOnly(true)
// before calling setNetworkConnectionInfo.
@@ -317,14 +316,14 @@
// This function is for testing HitRegions on Canvas2D.
unsigned long countHitRegions(CanvasRenderingContext2D context);
- [TypeChecking=Interface] boolean isInCanvasFontCache(Document document, DOMString fontString);
- [TypeChecking=Interface] unsigned long canvasFontCacheMaxFonts();
+ boolean isInCanvasFontCache(Document document, DOMString fontString);
+ unsigned long canvasFontCacheMaxFonts();
- [TypeChecking=Interface] ClientRect boundsInViewportSpace(Element element);
+ ClientRect boundsInViewportSpace(Element element);
DictionaryTest dictionaryTest();
UnionTypesTest unionTypesTest();
- [RaisesException, TypeChecking=Interface] void setScrollChain(ScrollState scrollState, Element[] elements);
+ [RaisesException] void setScrollChain(ScrollState scrollState, Element[] elements);
void forceBlinkGCWithoutV8GC();
DOMString selectedHTMLForClipboard();
@@ -357,8 +356,8 @@
void forceRestrictIFramePermissions();
[RaisesException] double monotonicTimeToZeroBasedDocumentTime(double platformTime);
- [TypeChecking=Interface] void setMediaElementNetworkState(HTMLMediaElement element, long state);
+ void setMediaElementNetworkState(HTMLMediaElement element, long state);
// TODO(liberato): remove once autoplay gesture override experiment concludes.
- [TypeChecking=Interface] void triggerAutoplayViewportCheck(HTMLMediaElement mediaElement);
+ void triggerAutoplayViewportCheck(HTMLMediaElement mediaElement);
};
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGTransformList.idl ('k') | third_party/WebKit/Source/core/testing/PrivateScriptTest.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698