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

Unified Diff: third_party/WebKit/Source/core/css/MediaList.idl

Issue 2526943002: Add use counters for lots of DOM APIs.
Patch Set: Add use counters for lots of DOM APIs. Created 4 years 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/css/MediaList.idl
diff --git a/third_party/WebKit/Source/core/css/MediaList.idl b/third_party/WebKit/Source/core/css/MediaList.idl
index c35accb7276bf9087b5a612bb4eb4a376aa30421..eb6888fdae4c77a4bfcbc855280e37c52e590311 100644
--- a/third_party/WebKit/Source/core/css/MediaList.idl
+++ b/third_party/WebKit/Source/core/css/MediaList.idl
@@ -28,10 +28,10 @@
// TODO(foolip): MediaList should be an [ArrayClass].
interface MediaList {
// TODO(foolip): [TreatNullAs=EmptyString] stringifier attribute DOMString mediaText;
- attribute DOMString? mediaText;
- readonly attribute unsigned long length;
- [Measure] getter DOMString? item(unsigned long index);
+ [MeasureAs=MediaListAPI] attribute DOMString? mediaText;
+ [MeasureAs=MediaListAPI] readonly attribute unsigned long length;
+ [MeasureAs=MediaListAPI] getter DOMString? item(unsigned long index);
// TODO(foolip): appendMedium() and deleteMedium() should never throw.
- [RaisesException] void appendMedium(DOMString medium);
- [RaisesException] void deleteMedium(DOMString medium);
+ [RaisesException, MeasureAs=MediaListAPI] void appendMedium(DOMString medium);
+ [RaisesException, MeasureAs=MediaListAPI] void deleteMedium(DOMString medium);
};

Powered by Google App Engine
This is Rietveld 408576698