mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-02 22:37:50 +00:00
Bug 1548731 - part1 : support 'cuechange' event. r=smaug
According to the spec [1], `oncuechange` is one of the `GlobalEventHandler`. This event could be fired on `Track` element or `TextTrack` [2]. We would dispatch this event when we run the `TimeMarchesOn` algorithm. [1] https://html.spec.whatwg.org/multipage/webappapis.html#handler-oncuechange [2] https://html.spec.whatwg.org/multipage/media.html#event-media-cuechange [3] https://html.spec.whatwg.org/multipage/media.html#playing-the-media-resource:event-media-cuechange Differential Revision: https://phabricator.services.mozilla.com/D29783 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
c5622ff657
commit
f07597087a
@ -163,8 +163,7 @@ EVENT(close, eClose, EventNameType_HTMLXUL, eBasicEventClass)
|
||||
EVENT(contextmenu, eContextMenu, EventNameType_HTMLXUL, eMouseEventClass)
|
||||
NON_IDL_EVENT(mouselongtap, eMouseLongTap, EventNameType_HTMLXUL,
|
||||
eMouseEventClass)
|
||||
// Not supported yet
|
||||
// EVENT(cuechange)
|
||||
EVENT(cuechange, eCueChange, EventNameType_All, eBasicEventClass)
|
||||
EVENT(dblclick, eMouseDoubleClick, EventNameType_HTMLXUL, eMouseEventClass)
|
||||
EVENT(drag, eDrag, EventNameType_HTMLXUL, eDragEventClass)
|
||||
EVENT(dragend, eDragEnd, EventNameType_HTMLXUL, eDragEventClass)
|
||||
|
@ -38,7 +38,7 @@ interface GlobalEventHandlers {
|
||||
attribute EventHandler onclick;
|
||||
attribute EventHandler onclose;
|
||||
attribute EventHandler oncontextmenu;
|
||||
//(Not implemented)attribute EventHandler oncuechange;
|
||||
attribute EventHandler oncuechange;
|
||||
attribute EventHandler ondblclick;
|
||||
attribute EventHandler ondrag;
|
||||
attribute EventHandler ondragend;
|
||||
|
@ -108,6 +108,8 @@ NS_EVENT_MESSAGE_FIRST_LAST(ePointerEvent, ePointerMove, ePointerLostCapture)
|
||||
|
||||
NS_EVENT_MESSAGE(eContextMenu)
|
||||
|
||||
NS_EVENT_MESSAGE(eCueChange)
|
||||
|
||||
NS_EVENT_MESSAGE(eLoad)
|
||||
NS_EVENT_MESSAGE(eUnload)
|
||||
NS_EVENT_MESSAGE(eHashChange)
|
||||
|
Loading…
x
Reference in New Issue
Block a user