Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(386)

Unified Diff: Source/core/html/track/TrackBase.h

Issue 170233009: Initial implementation of AudioTrack, AudioTrackList, VideoTrack, and VideoTrackList. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@blink-master
Patch Set: Rebase Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/html/track/TrackBase.h
diff --git a/Source/core/html/track/TrackBase.h b/Source/core/html/track/TrackBase.h
index b291c68db363fd0a7b2e59c5c97e2c86a39aa651..ec159064cfb5dda58afb9201dfd3b6982e8d878c 100644
--- a/Source/core/html/track/TrackBase.h
+++ b/Source/core/html/track/TrackBase.h
@@ -31,6 +31,8 @@
namespace WebCore {
+class HTMLMediaElement;
+
class TrackBase : public RefCounted<TrackBase> {
public:
virtual ~TrackBase();
@@ -50,6 +52,9 @@ public:
AtomicString id() const { return m_id; }
void setId(const AtomicString& id) { m_id = id; }
+ void setMediaElement(HTMLMediaElement* mediaElement) { m_mediaElement = mediaElement; }
+ HTMLMediaElement* mediaElement() const { return m_mediaElement; }
+
protected:
TrackBase(Type, const AtomicString& label, const AtomicString& language, const AtomicString& id);
@@ -62,6 +67,7 @@ private:
AtomicString m_label;
AtomicString m_language;
AtomicString m_id;
+ HTMLMediaElement* m_mediaElement;
philipj_slow 2014/03/13 10:00:04 This is used to notify the media element of change
acolwell GONE FROM CHROMIUM 2014/03/18 22:02:15 I had the lists fire their own events in a previou
philipj_slow 2014/03/20 16:17:40 OK, it's related to the "FIXME: Add call on m_medi
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698