OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008, 2009, 2010 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 return false; | 220 return false; |
221 | 221 |
222 return webMediaPlayer()->copyVideoTextureToPlatformTexture(context, texture,
level, internalFormat, type, premultiplyAlpha, flipY); | 222 return webMediaPlayer()->copyVideoTextureToPlatformTexture(context, texture,
level, internalFormat, type, premultiplyAlpha, flipY); |
223 } | 223 } |
224 | 224 |
225 bool HTMLVideoElement::hasAvailableVideoFrame() const | 225 bool HTMLVideoElement::hasAvailableVideoFrame() const |
226 { | 226 { |
227 if (!webMediaPlayer()) | 227 if (!webMediaPlayer()) |
228 return false; | 228 return false; |
229 | 229 |
230 return webMediaPlayer()->hasVideo() && webMediaPlayer()->readyState() >= bli
nk::WebMediaPlayer::ReadyStateHaveCurrentData; | 230 return webMediaPlayer()->hasVideo() && webMediaPlayer()->readyState() >= Web
MediaPlayer::ReadyStateHaveCurrentData; |
231 } | 231 } |
232 | 232 |
233 void HTMLVideoElement::webkitEnterFullscreen(ExceptionState& exceptionState) | 233 void HTMLVideoElement::webkitEnterFullscreen(ExceptionState& exceptionState) |
234 { | 234 { |
235 if (isFullscreen()) | 235 if (isFullscreen()) |
236 return; | 236 return; |
237 | 237 |
238 if (!supportsFullscreen()) { | 238 if (!supportsFullscreen()) { |
239 exceptionState.throwDOMException(InvalidStateError, "This element does n
ot support fullscreen mode."); | 239 exceptionState.throwDOMException(InvalidStateError, "This element does n
ot support fullscreen mode."); |
240 return; | 240 return; |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 bool HTMLVideoElement::wouldTaintOrigin(SecurityOrigin* destinationSecurityOrigi
n) const | 318 bool HTMLVideoElement::wouldTaintOrigin(SecurityOrigin* destinationSecurityOrigi
n) const |
319 { | 319 { |
320 return !isMediaDataCORSSameOrigin(destinationSecurityOrigin); | 320 return !isMediaDataCORSSameOrigin(destinationSecurityOrigin); |
321 } | 321 } |
322 | 322 |
323 FloatSize HTMLVideoElement::elementSize() const | 323 FloatSize HTMLVideoElement::elementSize() const |
324 { | 324 { |
325 return FloatSize(videoWidth(), videoHeight()); | 325 return FloatSize(videoWidth(), videoHeight()); |
326 } | 326 } |
327 | 327 |
328 } | 328 } // namespace blink |
OLD | NEW |