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

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

Issue 396283004: Make the MediaQueryList listener an EventListener (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: argh, forgot a --reset-results Created 6 years, 5 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
« no previous file with comments | « Source/core/css/MediaQueryList.cpp ('k') | Source/core/css/MediaQueryListEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/MediaQueryList.idl
diff --git a/Source/core/css/MediaQueryList.idl b/Source/core/css/MediaQueryList.idl
index c60c692ac792811f5fdb9afce4ac550d9a2787e2..5470db0f219d0b13f4ef1e91ee554b265ae83cad 100644
--- a/Source/core/css/MediaQueryList.idl
+++ b/Source/core/css/MediaQueryList.idl
@@ -19,9 +19,11 @@
[
NoInterfaceObject,
WillBeGarbageCollected
-] interface MediaQueryList {
+] interface MediaQueryList : EventTarget {
readonly attribute DOMString media;
readonly attribute boolean matches;
- void addListener([Default=Undefined] optional MediaQueryListListener listener);
- void removeListener([Default=Undefined] optional MediaQueryListListener listener);
+ void addListener([Default=Undefined] optional EventListener listener);
+ void removeListener([Default=Undefined] optional EventListener listener);
haraken 2014/07/17 01:47:26 Nit: This is mis-speced... this should have been n
+
+ attribute EventHandler onchange;
};
« no previous file with comments | « Source/core/css/MediaQueryList.cpp ('k') | Source/core/css/MediaQueryListEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698