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

Side by Side Diff: webkit/media/android/webmediaplayer_android.cc

Issue 15063003: Cut content/browser dependency on webkit_media (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 | Annotate | Revision Log
« no previous file with comments | « media/base/media_switches.cc ('k') | webkit/media/media_switches.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 // 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/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
11 #include "cc/layers/video_layer.h" 11 #include "cc/layers/video_layer.h"
12 #include "gpu/GLES2/gl2extchromium.h" 12 #include "gpu/GLES2/gl2extchromium.h"
13 #include "media/base/android/media_player_android.h" 13 #include "media/base/android/media_player_android.h"
14 #include "media/base/media_switches.h"
14 #include "media/base/video_frame.h" 15 #include "media/base/video_frame.h"
15 #include "net/base/mime_util.h" 16 #include "net/base/mime_util.h"
16 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" 17 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h"
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h"
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerClient. h" 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerClient. h"
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaSource.h" 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaSource.h"
21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
22 #include "webkit/compositor_bindings/web_layer_impl.h" 23 #include "webkit/compositor_bindings/web_layer_impl.h"
23 #include "webkit/media/android/webmediaplayer_manager_android.h" 24 #include "webkit/media/android/webmediaplayer_manager_android.h"
24 #include "webkit/media/android/webmediaplayer_proxy_android.h" 25 #include "webkit/media/android/webmediaplayer_proxy_android.h"
25 #include "webkit/media/media_switches.h"
26 #include "webkit/media/webmediaplayer_util.h" 26 #include "webkit/media/webmediaplayer_util.h"
27 27
28 #if defined(GOOGLE_TV) 28 #if defined(GOOGLE_TV)
29 #include "webkit/media/android/media_source_delegate.h" 29 #include "webkit/media/android/media_source_delegate.h"
30 #endif 30 #endif
31 31
32 static const uint32 kGLTextureExternalOES = 0x8D65; 32 static const uint32 kGLTextureExternalOES = 0x8D65;
33 33
34 using WebKit::WebMediaPlayer; 34 using WebKit::WebMediaPlayer;
35 using WebKit::WebMediaSource; 35 using WebKit::WebMediaSource;
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after
706 void WebMediaPlayerAndroid::exitFullscreen() { 706 void WebMediaPlayerAndroid::exitFullscreen() {
707 if (proxy_) 707 if (proxy_)
708 proxy_->ExitFullscreen(player_id_); 708 proxy_->ExitFullscreen(player_id_);
709 } 709 }
710 710
711 bool WebMediaPlayerAndroid::canEnterFullscreen() const { 711 bool WebMediaPlayerAndroid::canEnterFullscreen() const {
712 return manager_->CanEnterFullscreen(frame_); 712 return manager_->CanEnterFullscreen(frame_);
713 } 713 }
714 714
715 } // namespace webkit_media 715 } // namespace webkit_media
OLDNEW
« no previous file with comments | « media/base/media_switches.cc ('k') | webkit/media/media_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698