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

Unified Diff: Source/core/css/MediaQueryListEvent.idl

Issue 396283004: Make the MediaQueryList listener an EventListener (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 6 years, 4 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: Source/core/css/MediaQueryListEvent.idl
diff --git a/Source/modules/push_messaging/PushEvent.idl b/Source/core/css/MediaQueryListEvent.idl
similarity index 58%
copy from Source/modules/push_messaging/PushEvent.idl
copy to Source/core/css/MediaQueryListEvent.idl
index a6a03ff8d7895445e68bfcec475fc5db9afcf71d..2376a4fe998388d1431749e5831b047b5b74ea04 100644
--- a/Source/modules/push_messaging/PushEvent.idl
+++ b/Source/core/css/MediaQueryListEvent.idl
@@ -2,9 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+
+// http://dev.w3.org/csswg/cssom-view/#mediaquerylistevent
[
EventConstructor,
- RuntimeEnabled=PushMessaging,
-] interface PushEvent : Event {
- [InitializedByEventConstructor] readonly attribute DOMString data;
+] interface MediaQueryListEvent : Event {
+ [InitializedByEventConstructor] readonly attribute DOMString media;
+ [InitializedByEventConstructor] readonly attribute boolean matches;
};

Powered by Google App Engine
This is Rietveld 408576698