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

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

Issue 2680423006: UseCounter: Introduce UseCounter::Observer for layout tests (Closed)
Patch Set: rebase Created 3 years, 10 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 372f2abe6bf0f71d9b36ca2a89256ddb53d9b768..33563cf67ac0e991600baf1ea68af569831b8232 100644
--- a/third_party/WebKit/Source/core/testing/Internals.idl
+++ b/third_party/WebKit/Source/core/testing/Internals.idl
@@ -331,6 +331,11 @@
boolean isUseCounted(Document document, unsigned long feature);
boolean isCSSPropertyUseCounted(Document document, DOMString propertyName);
+ // Returns a promise that is resolved when |feature| is counted on
+ // |document|'s UseCounter. When |feature| was already counted, it's
+ // immediately resolved.
+ [CallWith=ScriptState] Promise<bool> observeUseCounter(Document document, unsigned long feature);
+
readonly attribute unsigned long length;
getter long (unsigned long index);
iterable<long>;

Powered by Google App Engine
This is Rietveld 408576698