Bug 1253905 - Add WebIDL/event definitions for 'oncuechange' attribute. r?bz
MozReview-Commit-ID: AG1CswgkooW
--- a/dom/events/EventNameList.h
+++ b/dom/events/EventNameList.h
@@ -167,18 +167,20 @@ EVENT(change,
EVENT(click,
eMouseClick,
EventNameType_All,
eMouseEventClass)
EVENT(contextmenu,
eContextMenu,
EventNameType_HTMLXUL,
eMouseEventClass)
-// Not supported yet
-// EVENT(cuechange)
+EVENT(cuechange,
+ eCueChange,
+ EventNameType_HTML,
+ eBasicEventClass)
EVENT(dblclick,
eMouseDoubleClick,
EventNameType_HTMLXUL,
eMouseEventClass)
EVENT(drag,
eDrag,
EventNameType_HTMLXUL,
eDragEventClass)
--- a/dom/webidl/EventHandler.webidl
+++ b/dom/webidl/EventHandler.webidl
@@ -34,17 +34,17 @@ interface GlobalEventHandlers {
attribute EventHandler onfocus;
//(Not implemented)attribute EventHandler oncancel;
attribute EventHandler oncanplay;
attribute EventHandler oncanplaythrough;
attribute EventHandler onchange;
attribute EventHandler onclick;
//(Not implemented)attribute EventHandler onclose;
attribute EventHandler oncontextmenu;
- //(Not implemented)attribute EventHandler oncuechange;
+ attribute EventHandler oncuechange;
attribute EventHandler ondblclick;
attribute EventHandler ondrag;
attribute EventHandler ondragend;
attribute EventHandler ondragenter;
//(Not implemented)attribute EventHandler ondragexit;
attribute EventHandler ondragleave;
attribute EventHandler ondragover;
attribute EventHandler ondragstart;
--- a/widget/EventMessageList.h
+++ b/widget/EventMessageList.h
@@ -257,16 +257,17 @@ NS_EVENT_MESSAGE(eCanPlay)
NS_EVENT_MESSAGE(eCanPlayThrough)
NS_EVENT_MESSAGE(eSeeking)
NS_EVENT_MESSAGE(eSeeked)
NS_EVENT_MESSAGE(eTimeUpdate)
NS_EVENT_MESSAGE(eEnded)
NS_EVENT_MESSAGE(eRateChange)
NS_EVENT_MESSAGE(eDurationChange)
NS_EVENT_MESSAGE(eVolumeChange)
+NS_EVENT_MESSAGE(eCueChange)
// paint notification events
NS_EVENT_MESSAGE(eAfterPaint)
// Simple gesture events
NS_EVENT_MESSAGE(eSwipeGestureMayStart)
NS_EVENT_MESSAGE(eSwipeGestureStart)
NS_EVENT_MESSAGE(eSwipeGestureUpdate)