mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-18 18:00:31 +00:00
Generate correct bindings for callback interfaces: only create an interface object when the interface declares constants, and set up the prototype correctly. This also lets us tidy up some IDL for these callback interfaces.
13 lines
450 B
Text
13 lines
450 B
Text
#import <DOM/EventTarget.idl>
|
|
#import <DOM/EventHandler.idl>
|
|
#import <DOM/EventListener.idl>
|
|
|
|
// https://drafts.csswg.org/cssom-view/#the-mediaquerylist-interface
|
|
[Exposed=Window]
|
|
interface MediaQueryList : EventTarget {
|
|
readonly attribute CSSOMString media;
|
|
readonly attribute boolean matches;
|
|
undefined addListener(EventListener? callback);
|
|
undefined removeListener(EventListener? callback);
|
|
attribute EventHandler onchange;
|
|
};
|