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 #include "third_party/skia/include/core/SkXfermode.h" | 39 #include "third_party/skia/include/core/SkXfermode.h" |
39 | 40 |
40 namespace blink { | 41 namespace blink { |
41 | 42 |
42 class WebAudioSourceProvider; | 43 class WebAudioSourceProvider; |
43 class WebAudioSourceProviderClient; | 44 class WebAudioSourceProviderClient; |
44 class WebContentDecryptionModule; | 45 class WebContentDecryptionModule; |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 // Do a GPU-GPU textures copy if possible. | 150 // Do a GPU-GPU textures copy if possible. |
150 virtual bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, unsign
ed texture, unsigned level, unsigned internalFormat, unsigned type, bool premult
iplyAlpha, bool flipY) { return false; } | 151 virtual bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, unsign
ed texture, unsigned level, unsigned internalFormat, unsigned type, bool premult
iplyAlpha, bool flipY) { return false; } |
151 | 152 |
152 virtual WebAudioSourceProvider* audioSourceProvider() { return 0; } | 153 virtual WebAudioSourceProvider* audioSourceProvider() { return 0; } |
153 | 154 |
154 // Returns whether keySystem is supported. If true, the result will be | 155 // Returns whether keySystem is supported. If true, the result will be |
155 // reported by an event. | 156 // reported by an event. |
156 virtual MediaKeyException generateKeyRequest(const WebString& keySystem, con
st unsigned char* initData, unsigned initDataLength) { return MediaKeyExceptionK
eySystemNotSupported; } | 157 virtual MediaKeyException generateKeyRequest(const WebString& keySystem, con
st unsigned char* initData, unsigned initDataLength) { return MediaKeyExceptionK
eySystemNotSupported; } |
157 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; } | 158 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; } |
158 virtual MediaKeyException cancelKeyRequest(const WebString& keySystem, const
WebString& sessionId) { return MediaKeyExceptionKeySystemNotSupported; } | 159 virtual MediaKeyException cancelKeyRequest(const WebString& keySystem, const
WebString& sessionId) { return MediaKeyExceptionKeySystemNotSupported; } |
159 virtual void setContentDecryptionModule(WebContentDecryptionModule* cdm) { } | 160 virtual void setContentDecryptionModule(WebContentDecryptionModule* cdm, Web
ContentDecryptionModuleResult result) { result.completeWithError(WebContentDecry
ptionModuleExceptionNotSupportedError, 0, "ERROR"); } |
160 | 161 |
161 // Sets the poster image URL. | 162 // Sets the poster image URL. |
162 virtual void setPoster(const WebURL& poster) { } | 163 virtual void setPoster(const WebURL& poster) { } |
163 | 164 |
164 // Instruct WebMediaPlayer to enter/exit fullscreen. | 165 // Instruct WebMediaPlayer to enter/exit fullscreen. |
165 virtual void enterFullscreen() { } | 166 virtual void enterFullscreen() { } |
166 // Returns true if the player can enter fullscreen. | 167 // Returns true if the player can enter fullscreen. |
167 virtual bool canEnterFullscreen() const { return false; } | 168 virtual bool canEnterFullscreen() const { return false; } |
168 | 169 |
169 virtual void enabledAudioTracksChanged(const WebVector<TrackId>& enabledTrac
kIds) { } | 170 virtual void enabledAudioTracksChanged(const WebVector<TrackId>& enabledTrac
kIds) { } |
170 // |selectedTrackId| is null if no track is selected. | 171 // |selectedTrackId| is null if no track is selected. |
171 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) { } | 172 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) { } |
172 }; | 173 }; |
173 | 174 |
174 } // namespace blink | 175 } // namespace blink |
175 | 176 |
176 #endif | 177 #endif |
OLD | NEW |