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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 // Returns whether keySystem is supported. If true, the result will be | 169 // Returns whether keySystem is supported. If true, the result will be |
170 // reported by an event. | 170 // reported by an event. |
171 virtual MediaKeyException generateKeyRequest(const WebString& keySystem, con
st unsigned char* initData, unsigned initDataLength) { return MediaKeyExceptionK
eySystemNotSupported; } | 171 virtual MediaKeyException generateKeyRequest(const WebString& keySystem, con
st unsigned char* initData, unsigned initDataLength) { return MediaKeyExceptionK
eySystemNotSupported; } |
172 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; } | 172 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; } |
173 virtual MediaKeyException cancelKeyRequest(const WebString& keySystem, const
WebString& sessionId) { return MediaKeyExceptionKeySystemNotSupported; } | 173 virtual MediaKeyException cancelKeyRequest(const WebString& keySystem, const
WebString& sessionId) { return MediaKeyExceptionKeySystemNotSupported; } |
174 virtual void setContentDecryptionModule(WebContentDecryptionModule* cdm, Web
ContentDecryptionModuleResult result) { result.completeWithError(WebContentDecry
ptionModuleExceptionNotSupportedError, 0, "ERROR"); } | 174 virtual void setContentDecryptionModule(WebContentDecryptionModule* cdm, Web
ContentDecryptionModuleResult result) { result.completeWithError(WebContentDecry
ptionModuleExceptionNotSupportedError, 0, "ERROR"); } |
175 | 175 |
176 // Sets the poster image URL. | 176 // Sets the poster image URL. |
177 virtual void setPoster(const WebURL& poster) { } | 177 virtual void setPoster(const WebURL& poster) { } |
178 | 178 |
| 179 // Whether the WebMediaPlayer supports overlay fullscreen video mode. When |
| 180 // this is true, the video layer will be removed from the layer tree when |
| 181 // entering fullscreen, and the WebMediaPlayer is responsible for displaying |
| 182 // the video in enterFullscreen(). |
| 183 virtual bool supportsOverlayFullscreenVideo() { return false; } |
179 // Instruct WebMediaPlayer to enter/exit fullscreen. | 184 // Instruct WebMediaPlayer to enter/exit fullscreen. |
180 virtual void enterFullscreen() { } | 185 virtual void enterFullscreen() { } |
181 | 186 |
182 virtual void enabledAudioTracksChanged(const WebVector<TrackId>& enabledTrac
kIds) { } | 187 virtual void enabledAudioTracksChanged(const WebVector<TrackId>& enabledTrac
kIds) { } |
183 // |selectedTrackId| is null if no track is selected. | 188 // |selectedTrackId| is null if no track is selected. |
184 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) { } | 189 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) { } |
185 }; | 190 }; |
186 | 191 |
187 } // namespace blink | 192 } // namespace blink |
188 | 193 |
189 #endif | 194 #endif |
OLD | NEW |