OLD | NEW |
---|---|
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 14 matching lines...) Expand all Loading... | |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WebMediaPlayer_h | 31 #ifndef WebMediaPlayer_h |
32 #define WebMediaPlayer_h | 32 #define WebMediaPlayer_h |
33 | 33 |
34 #include "WebCanvas.h" | 34 #include "WebCanvas.h" |
35 #include "WebContentDecryptionModule.h" | |
35 #include "WebMediaSource.h" | 36 #include "WebMediaSource.h" |
36 #include "WebString.h" | 37 #include "WebString.h" |
37 #include "WebTimeRange.h" | 38 #include "WebTimeRange.h" |
38 | 39 |
39 namespace blink { | 40 namespace blink { |
40 | 41 |
41 class WebAudioSourceProvider; | 42 class WebAudioSourceProvider; |
42 class WebAudioSourceProviderClient; | 43 class WebAudioSourceProviderClient; |
43 class WebContentDecryptionModule; | 44 class WebContentDecryptionModule; |
44 class WebMediaPlayerClient; | 45 class WebMediaPlayerClient; |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
147 // Do a GPU-GPU textures copy if possible. | 148 // Do a GPU-GPU textures copy if possible. |
148 virtual bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, unsign ed texture, unsigned level, unsigned internalFormat, unsigned type, bool premult iplyAlpha, bool flipY) { return false; } | 149 virtual bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, unsign ed texture, unsigned level, unsigned internalFormat, unsigned type, bool premult iplyAlpha, bool flipY) { return false; } |
149 | 150 |
150 virtual WebAudioSourceProvider* audioSourceProvider() { return 0; } | 151 virtual WebAudioSourceProvider* audioSourceProvider() { return 0; } |
151 | 152 |
152 // Returns whether keySystem is supported. If true, the result will be | 153 // Returns whether keySystem is supported. If true, the result will be |
153 // reported by an event. | 154 // reported by an event. |
154 virtual MediaKeyException generateKeyRequest(const WebString& keySystem, con st unsigned char* initData, unsigned initDataLength) { return MediaKeyExceptionK eySystemNotSupported; } | 155 virtual MediaKeyException generateKeyRequest(const WebString& keySystem, con st unsigned char* initData, unsigned initDataLength) { return MediaKeyExceptionK eySystemNotSupported; } |
155 virtual MediaKeyException addKey(const WebString& keySystem, const unsigned char* key, unsigned keyLength, const unsigned char* initData, unsigned initDataL ength, const WebString& sessionId) { return MediaKeyExceptionKeySystemNotSupport ed; } | 156 virtual MediaKeyException addKey(const WebString& keySystem, const unsigned char* key, unsigned keyLength, const unsigned char* initData, unsigned initDataL ength, const WebString& sessionId) { return MediaKeyExceptionKeySystemNotSupport ed; } |
156 virtual MediaKeyException cancelKeyRequest(const WebString& keySystem, const WebString& sessionId) { return MediaKeyExceptionKeySystemNotSupported; } | 157 virtual MediaKeyException cancelKeyRequest(const WebString& keySystem, const WebString& sessionId) { return MediaKeyExceptionKeySystemNotSupported; } |
157 virtual void setContentDecryptionModule(WebContentDecryptionModule* cdm) { } | 158 virtual void setContentDecryptionModule(WebContentDecryptionModule* cdm) { } |
ddorwin
2014/07/31 00:56:36
FIXME: Remove.
jrummell
2014/08/07 01:43:02
Renaming, which will work as long a Chromium chang
| |
159 virtual void setContentDecryptionModule(WebContentDecryptionModule* cdm, Web ContentDecryptionModuleResult result) { result.completeWithError(WebContentDecry ptionModuleExceptionNotSupportedError, 0, "ERROR"); } | |
158 | 160 |
159 // Sets the poster image URL. | 161 // Sets the poster image URL. |
160 virtual void setPoster(const WebURL& poster) { } | 162 virtual void setPoster(const WebURL& poster) { } |
161 | 163 |
162 // Instruct WebMediaPlayer to enter/exit fullscreen. | 164 // Instruct WebMediaPlayer to enter/exit fullscreen. |
163 virtual void enterFullscreen() { } | 165 virtual void enterFullscreen() { } |
164 // Returns true if the player can enter fullscreen. | 166 // Returns true if the player can enter fullscreen. |
165 virtual bool canEnterFullscreen() const { return false; } | 167 virtual bool canEnterFullscreen() const { return false; } |
166 | 168 |
167 virtual void enabledAudioTracksChanged(const WebVector<TrackId>& enabledTrac kIds) { } | 169 virtual void enabledAudioTracksChanged(const WebVector<TrackId>& enabledTrac kIds) { } |
168 // |selectedTrackId| is null if no track is selected. | 170 // |selectedTrackId| is null if no track is selected. |
169 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) { } | 171 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) { } |
170 }; | 172 }; |
171 | 173 |
172 } // namespace blink | 174 } // namespace blink |
173 | 175 |
174 #endif | 176 #endif |
OLD | NEW |