Bug 1253905 - Add WebIDL/event definitions for 'oncuechange' attribute. r?bz draft
authorChris Pearce <cpearce@mozilla.com>
Mon, 14 Mar 2016 06:33:12 +0800
changeset 339851 deabb8751ca25ef3f81b873cc14efdf34209b10a
parent 339455 767e0126510e0f65798a53a29c6b7e1469a03139
child 339852 08a1a37f4a03eee6bb2f356bd08a9b7bddf4ee28
push id12809
push usercpearce@mozilla.com
push dateSun, 13 Mar 2016 22:34:41 +0000
reviewersbz
bugs1253905
milestone48.0a1
Bug 1253905 - Add WebIDL/event definitions for 'oncuechange' attribute. r?bz MozReview-Commit-ID: AG1CswgkooW
dom/events/EventNameList.h
dom/webidl/EventHandler.webidl
widget/EventMessageList.h
--- 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)