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

Unified Diff: public/platform/WebMediaPlayer.h

Issue 284513003: Implement AudioTrack, AudioTrackList, VideoTrack, and VideoTrackList (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: complete the transition to WebTrackId Created 6 years, 7 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: public/platform/WebMediaPlayer.h
diff --git a/public/platform/WebMediaPlayer.h b/public/platform/WebMediaPlayer.h
index f329a926cbd2d1f578f8e096dd792256239171bb..f74c8ac7e6a51d55b17045f4b4ebd844749a7794 100644
--- a/public/platform/WebMediaPlayer.h
+++ b/public/platform/WebMediaPlayer.h
@@ -48,6 +48,8 @@ struct WebRect;
struct WebSize;
class WebGraphicsContext3D;
+typedef unsigned WebTrackId;
acolwell GONE FROM CHROMIUM 2014/05/16 19:47:56 nit: I'm a little nervous about putting this in th
+
class WebMediaPlayer {
public:
enum NetworkState {
@@ -162,6 +164,9 @@ public:
virtual void exitFullscreen() { }
// Returns true if the player can enter fullscreen.
virtual bool canEnterFullscreen() const { return false; }
+
+ virtual void enabledAudioTracksChanged(const WebVector<WebTrackId>& enabledTrackIds) { }
+ virtual void selectedVideoTrackChanged(WebTrackId* selectedTrackId) { }
acolwell GONE FROM CHROMIUM 2014/05/16 19:47:56 docs.
landell 2014/05/19 13:50:28 Yes, I am especially interested to know why this i
philipj_slow 2014/05/19 14:06:45 I had to find a way to say that no video track at
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698