| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "webkit/media/android/webmediaplayer_android.h" | 5 #include "webkit/media/android/webmediaplayer_android.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 texture, level, internal_format, | 316 texture, level, internal_format, |
| 317 type); | 317 type); |
| 318 web_graphics_context->pixelStorei(GL_UNPACK_FLIP_Y_CHROMIUM, false); | 318 web_graphics_context->pixelStorei(GL_UNPACK_FLIP_Y_CHROMIUM, false); |
| 319 web_graphics_context->pixelStorei(GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM, | 319 web_graphics_context->pixelStorei(GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM, |
| 320 false); | 320 false); |
| 321 return true; | 321 return true; |
| 322 } | 322 } |
| 323 | 323 |
| 324 bool WebMediaPlayerAndroid::hasSingleSecurityOrigin() const { | 324 bool WebMediaPlayerAndroid::hasSingleSecurityOrigin() const { |
| 325 // TODO(qinmin): fix this for urls that are not file. | 325 // TODO(qinmin): fix this for urls that are not file. |
| 326 // https://code.google.com/p/chromium/issues/detail?id=28353 | 326 // https://code.google.com/p/chromium/issues/detail?id=234710 |
| 327 if (url_.SchemeIsFile()) | 327 if (url_.SchemeIsFile()) |
| 328 return true; | 328 return true; |
| 329 return false; | 329 return false; |
| 330 } | 330 } |
| 331 | 331 |
| 332 bool WebMediaPlayerAndroid::didPassCORSAccessCheck() const { | 332 bool WebMediaPlayerAndroid::didPassCORSAccessCheck() const { |
| 333 return false; | 333 return false; |
| 334 } | 334 } |
| 335 | 335 |
| 336 WebMediaPlayer::MovieLoadType WebMediaPlayerAndroid::movieLoadType() const { | 336 WebMediaPlayer::MovieLoadType WebMediaPlayerAndroid::movieLoadType() const { |
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 729 void WebMediaPlayerAndroid::exitFullscreen() { | 729 void WebMediaPlayerAndroid::exitFullscreen() { |
| 730 if (proxy_) | 730 if (proxy_) |
| 731 proxy_->ExitFullscreen(player_id_); | 731 proxy_->ExitFullscreen(player_id_); |
| 732 } | 732 } |
| 733 | 733 |
| 734 bool WebMediaPlayerAndroid::canEnterFullscreen() const { | 734 bool WebMediaPlayerAndroid::canEnterFullscreen() const { |
| 735 return manager_->CanEnterFullscreen(frame_); | 735 return manager_->CanEnterFullscreen(frame_); |
| 736 } | 736 } |
| 737 | 737 |
| 738 } // namespace webkit_media | 738 } // namespace webkit_media |
| OLD | NEW |