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

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

Issue 2380383003: Use sequence<T> instead of T[] where possible and document exceptions (Closed)
Patch Set: more Created 4 years, 2 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 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 5a04edc91f18349df7b7cb731a8d9204365d0324..37098c0a5b0f166b78b2920af75995f918033482 100644
--- a/third_party/WebKit/Source/core/testing/Internals.idl
+++ b/third_party/WebKit/Source/core/testing/Internals.idl
@@ -96,7 +96,7 @@
// If the argument is omitted, the top-level document is used.
boolean hasAutofocusRequest(optional Document document);
- [RaisesException] DOMString[] formControlStateOfHistoryItem();
+ [RaisesException] sequence<DOMString> formControlStateOfHistoryItem();
[RaisesException] void setFormControlStateOfHistoryItem(sequence<DOMString> values);
readonly attribute Window pagePopupWindow;
@@ -201,12 +201,12 @@
unsigned long numberOfLiveNodes();
unsigned long numberOfLiveDocuments();
DOMString dumpRefCountedInstanceCounts();
- unsigned long[] setMemoryCacheCapacities(unsigned long minDeadBytes, unsigned long maxDeadBytes, unsigned long totalBytes);
+ sequence<unsigned long> setMemoryCacheCapacities(unsigned long minDeadBytes, unsigned long maxDeadBytes, unsigned long totalBytes);
DOMString counterValue(Element element);
[RaisesException] long pageNumber(Element element, optional float pageWidth = 800, optional float pageHeight = 600);
- DOMString[] shortcutIconURLs(Document document);
- DOMString[] allIconURLs(Document document);
+ sequence<DOMString> shortcutIconURLs(Document document);
+ sequence<DOMString> allIconURLs(Document document);
[RaisesException] long numberOfPages(optional double pageWidthInPixels = 800, optional double pageHeightInPixels = 600);
[RaisesException] DOMString pageProperty(DOMString propertyName, long pageNumber);
[RaisesException] DOMString pageSizeAndMarginsInPixels(long pageIndex, long width, long height, long marginTop, long marginRight, long marginBottom, long marginLeft);
@@ -234,7 +234,7 @@
// into the binary of Release builds.
PrivateScriptTest privateScriptTest();
- DOMString[] getReferencedFilePaths();
+ sequence<DOMString> getReferencedFilePaths();
// These functions both reset the tracked repaint rects. They are intended to be used in the following order:
// startTrackingRepaints(), repaintRectsAsText(), stopTrackingRepaints().
@@ -285,7 +285,7 @@
[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, RaisesException] Promise promiseCheck(long arg1, boolean arg2, Dictionary arg3, DOMString arg4, sequence<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);
@@ -314,7 +314,7 @@
DictionaryTest dictionaryTest();
UnionTypesTest unionTypesTest();
CallbackFunctionTest callbackFunctionTest();
- [RaisesException] void setScrollChain(ScrollState scrollState, Element[] elements);
+ [RaisesException] void setScrollChain(ScrollState scrollState, sequence<Element> elements);
void forceBlinkGCWithoutV8GC();
DOMString selectedHTMLForClipboard();

Powered by Google App Engine
This is Rietveld 408576698