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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 30 matching lines...) Expand all
41 class WebAudioSourceProvider; 41 class WebAudioSourceProvider;
42 class WebAudioSourceProviderClient; 42 class WebAudioSourceProviderClient;
43 class WebContentDecryptionModule; 43 class WebContentDecryptionModule;
44 class WebMediaPlayerClient; 44 class WebMediaPlayerClient;
45 class WebString; 45 class WebString;
46 class WebURL; 46 class WebURL;
47 struct WebRect; 47 struct WebRect;
48 struct WebSize; 48 struct WebSize;
49 class WebGraphicsContext3D; 49 class WebGraphicsContext3D;
50 50
51 typedef unsigned WebTrackId;
acolwell GONE FROM CHROMIUM 2014/05/16 19:47:56 nit: I'm a little nervous about putting this in th
52
51 class WebMediaPlayer { 53 class WebMediaPlayer {
52 public: 54 public:
53 enum NetworkState { 55 enum NetworkState {
54 NetworkStateEmpty, 56 NetworkStateEmpty,
55 NetworkStateIdle, 57 NetworkStateIdle,
56 NetworkStateLoading, 58 NetworkStateLoading,
57 NetworkStateLoaded, 59 NetworkStateLoaded,
58 NetworkStateFormatError, 60 NetworkStateFormatError,
59 NetworkStateNetworkError, 61 NetworkStateNetworkError,
60 NetworkStateDecodeError, 62 NetworkStateDecodeError,
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 virtual void setContentDecryptionModule(WebContentDecryptionModule* cdm) { } 157 virtual void setContentDecryptionModule(WebContentDecryptionModule* cdm) { }
156 158
157 // Sets the poster image URL. 159 // Sets the poster image URL.
158 virtual void setPoster(const WebURL& poster) { } 160 virtual void setPoster(const WebURL& poster) { }
159 161
160 // Instruct WebMediaPlayer to enter/exit fullscreen. 162 // Instruct WebMediaPlayer to enter/exit fullscreen.
161 virtual void enterFullscreen() { } 163 virtual void enterFullscreen() { }
162 virtual void exitFullscreen() { } 164 virtual void exitFullscreen() { }
163 // Returns true if the player can enter fullscreen. 165 // Returns true if the player can enter fullscreen.
164 virtual bool canEnterFullscreen() const { return false; } 166 virtual bool canEnterFullscreen() const { return false; }
167
168 virtual void enabledAudioTracksChanged(const WebVector<WebTrackId>& enabledT rackIds) { }
169 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
165 }; 170 };
166 171
167 } // namespace blink 172 } // namespace blink
168 173
169 #endif 174 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698