OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 virtual bool didLoadingProgress() const = 0; | 152 virtual bool didLoadingProgress() const = 0; |
153 | 153 |
154 virtual void paint(GraphicsContext*, const IntRect&) = 0; | 154 virtual void paint(GraphicsContext*, const IntRect&) = 0; |
155 | 155 |
156 virtual void paintCurrentFrameInContext(GraphicsContext*, const IntRect&) =
0; | 156 virtual void paintCurrentFrameInContext(GraphicsContext*, const IntRect&) =
0; |
157 virtual bool copyVideoTextureToPlatformTexture(GraphicsContext3D*, Platform3
DObject, GC3Dint, GC3Denum, GC3Denum, bool, bool) = 0; | 157 virtual bool copyVideoTextureToPlatformTexture(GraphicsContext3D*, Platform3
DObject, GC3Dint, GC3Denum, GC3Denum, bool, bool) = 0; |
158 | 158 |
159 enum Preload { None, MetaData, Auto }; | 159 enum Preload { None, MetaData, Auto }; |
160 virtual void setPreload(Preload) = 0; | 160 virtual void setPreload(Preload) = 0; |
161 | 161 |
162 #if USE(NATIVE_FULLSCREEN_VIDEO) | 162 virtual void showFullscreenOverlay() = 0; |
163 virtual void enterFullscreen() = 0; | 163 virtual void hideFullscreenOverlay() = 0; |
164 virtual void exitFullscreen() = 0; | 164 virtual bool canShowFullscreenOverlay() const = 0; |
165 virtual bool canEnterFullscreen() const = 0; | |
166 #endif | |
167 | 165 |
168 // whether accelerated rendering is supported by the media engine for the cu
rrent media. | 166 // whether accelerated rendering is supported by the media engine for the cu
rrent media. |
169 virtual bool supportsAcceleratedRendering() const = 0; | 167 virtual bool supportsAcceleratedRendering() const = 0; |
170 | 168 |
171 virtual bool hasSingleSecurityOrigin() const = 0; | 169 virtual bool hasSingleSecurityOrigin() const = 0; |
172 | 170 |
173 virtual bool didPassCORSAccessCheck() const = 0; | 171 virtual bool didPassCORSAccessCheck() const = 0; |
174 | 172 |
175 // Time value in the movie's time scale. It is only necessary to override th
is if the media | 173 // Time value in the movie's time scale. It is only necessary to override th
is if the media |
176 // engine uses rational numbers to represent media time. | 174 // engine uses rational numbers to represent media time. |
(...skipping 10 matching lines...) Expand all Loading... |
187 | 185 |
188 enum MediaKeyException { NoError, InvalidPlayerState, KeySystemNotSupported
}; | 186 enum MediaKeyException { NoError, InvalidPlayerState, KeySystemNotSupported
}; |
189 virtual MediaKeyException addKey(const String&, const unsigned char*, unsign
ed, const unsigned char*, unsigned, const String&) = 0; | 187 virtual MediaKeyException addKey(const String&, const unsigned char*, unsign
ed, const unsigned char*, unsigned, const String&) = 0; |
190 virtual MediaKeyException generateKeyRequest(const String&, const unsigned c
har*, unsigned) = 0; | 188 virtual MediaKeyException generateKeyRequest(const String&, const unsigned c
har*, unsigned) = 0; |
191 virtual MediaKeyException cancelKeyRequest(const String&, const String&) = 0
; | 189 virtual MediaKeyException cancelKeyRequest(const String&, const String&) = 0
; |
192 }; | 190 }; |
193 | 191 |
194 } | 192 } |
195 | 193 |
196 #endif // MediaPlayer_h | 194 #endif // MediaPlayer_h |
OLD | NEW |