Bug 865407 - Part 6: Expose VTTCue::Reset to Chrome JS. r=bz
☠☠ backed out by 803536e9aac2 ☠ ☠
authorRick Eyre <rick.eyre@hotmail.com>
Thu, 12 Dec 2013 13:13:38 -0500
changeset 162957 7ba94f08b7a51d2f0e617815c0cf54448ffb9e0a
parent 162956 3de6e32a43469425ef4acbdabb76dfdb7be0622d
child 162958 d3e7f639267094b2ea372e7094a3a6c806a653a2
push id25975
push userryanvm@gmail.com
push dateFri, 10 Jan 2014 19:46:47 +0000
treeherderautoland@e89afc241513 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs865407
milestone29.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 865407 - Part 6: Expose VTTCue::Reset to Chrome JS. r=bz
content/media/TextTrackCue.h
dom/webidl/VTTCue.webidl
--- a/content/media/TextTrackCue.h
+++ b/content/media/TextTrackCue.h
@@ -302,16 +302,21 @@ public:
     return static_cast<HTMLDivElement*>(mDisplayState.get());
   }
 
   void SetDisplayState(HTMLDivElement* aDisplayState)
   {
     mDisplayState = aDisplayState;
   }
 
+  bool HasBeenReset()
+  {
+    return mReset;
+  }
+
   // Helper functions for implementation.
   bool
   operator==(const TextTrackCue& rhs) const
   {
     return mId.Equals(rhs.mId);
   }
 
   const nsAString& Id() const
--- a/dom/webidl/VTTCue.webidl
+++ b/dom/webidl/VTTCue.webidl
@@ -53,9 +53,11 @@ interface VTTCue : EventTarget {
 
   attribute EventHandler onexit;
 };
 
 // Mozilla extensions.
 partial interface VTTCue {
   [ChromeOnly]
   attribute HTMLDivElement? displayState;
+  [ChromeOnly]
+  readonly attribute boolean hasBeenReset;
 };