Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: Source/core/html/HTMLVideoElement.cpp

Issue 1115553002: Removing blink::prefix (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/html/HTMLTextAreaElement.cpp ('k') | Source/core/html/canvas/CHROMIUMValuebuffer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/html/HTMLTextAreaElement.cpp ('k') | Source/core/html/canvas/CHROMIUMValuebuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698