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

Side by Side Diff: content/browser/android/content_video_view.cc

Issue 14314020: Rename MediaPlayerBridgeManager to MediaPlayerManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: additional rebase conflict 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
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 "content/browser/android/content_video_view.h" 5 #include "content/browser/android/content_video_view.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "content/browser/android/media_player_manager_android.h" 10 #include "content/browser/android/media_player_manager_impl.h"
11 #include "content/common/android/surface_texture_peer.h" 11 #include "content/common/android/surface_texture_peer.h"
12 #include "content/public/common/content_switches.h" 12 #include "content/public/common/content_switches.h"
13 #include "jni/ContentVideoView_jni.h" 13 #include "jni/ContentVideoView_jni.h"
14 14
15 using base::android::AttachCurrentThread; 15 using base::android::AttachCurrentThread;
16 using base::android::CheckException; 16 using base::android::CheckException;
17 using base::android::ScopedJavaGlobalRef; 17 using base::android::ScopedJavaGlobalRef;
18 18
19 namespace content { 19 namespace content {
20 20
21 bool ContentVideoView::RegisterContentVideoView(JNIEnv* env) { 21 bool ContentVideoView::RegisterContentVideoView(JNIEnv* env) {
22 return RegisterNativesImpl(env); 22 return RegisterNativesImpl(env);
23 } 23 }
24 24
25 ContentVideoView::ContentVideoView(MediaPlayerManagerAndroid* manager) 25 ContentVideoView::ContentVideoView(MediaPlayerManagerImpl* manager)
26 : manager_(manager) { 26 : manager_(manager) {
27 } 27 }
28 28
29 ContentVideoView::~ContentVideoView() { 29 ContentVideoView::~ContentVideoView() {
30 DestroyContentVideoView(); 30 DestroyContentVideoView();
31 } 31 }
32 32
33 void ContentVideoView::CreateContentVideoView() { 33 void ContentVideoView::CreateContentVideoView() {
34 if (j_content_video_view_.is_null()) { 34 if (j_content_video_view_.is_null()) {
35 JNIEnv* env = AttachCurrentThread(); 35 JNIEnv* env = AttachCurrentThread();
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 void ContentVideoView::UpdateMediaMetadata(JNIEnv* env, jobject obj) { 137 void ContentVideoView::UpdateMediaMetadata(JNIEnv* env, jobject obj) {
138 media::MediaPlayerBridge* player = manager_->GetFullscreenPlayer(); 138 media::MediaPlayerBridge* player = manager_->GetFullscreenPlayer();
139 if (player && player->prepared()) 139 if (player && player->prepared())
140 Java_ContentVideoView_updateMediaMetadata( 140 Java_ContentVideoView_updateMediaMetadata(
141 env, obj, player->GetVideoWidth(), player->GetVideoHeight(), 141 env, obj, player->GetVideoWidth(), player->GetVideoHeight(),
142 player->GetDuration().InMilliseconds(), player->can_pause(), 142 player->GetDuration().InMilliseconds(), player->can_pause(),
143 player->can_seek_forward(), player->can_seek_backward()); 143 player->can_seek_forward(), player->can_seek_backward());
144 } 144 }
145 145
146 } // namespace content 146 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/android/content_video_view.h ('k') | content/browser/android/content_view_core_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698