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

Unified Diff: content/browser/android/content_video_view.cc

Issue 739613003: Remove dead code in ContentVideoView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/android/content_video_view.cc
diff --git a/content/browser/android/content_video_view.cc b/content/browser/android/content_video_view.cc
index 68b0b5f0cad29178980f756007f06922d65bc405..52d02504e6ff4e552df9672d619e03127665075e 100644
--- a/content/browser/android/content_video_view.cc
+++ b/content/browser/android/content_video_view.cc
@@ -167,43 +167,11 @@ void ContentVideoView::UpdateMediaMetadata() {
}
}
-int ContentVideoView::GetVideoWidth(JNIEnv*, jobject obj) const {
- media::MediaPlayerAndroid* player = manager_->GetFullscreenPlayer();
- return player ? player->GetVideoWidth() : 0;
-}
-
-int ContentVideoView::GetVideoHeight(JNIEnv*, jobject obj) const {
- media::MediaPlayerAndroid* player = manager_->GetFullscreenPlayer();
- return player ? player->GetVideoHeight() : 0;
-}
-
-int ContentVideoView::GetDurationInMilliSeconds(JNIEnv*, jobject obj) const {
- media::MediaPlayerAndroid* player = manager_->GetFullscreenPlayer();
- return player ? player->GetDuration().InMilliseconds() : -1;
-}
-
-int ContentVideoView::GetCurrentPosition(JNIEnv*, jobject obj) const {
- media::MediaPlayerAndroid* player = manager_->GetFullscreenPlayer();
- return player ? player->GetCurrentTime().InMilliseconds() : 0;
-}
-
bool ContentVideoView::IsPlaying(JNIEnv*, jobject obj) {
media::MediaPlayerAndroid* player = manager_->GetFullscreenPlayer();
return player ? player->IsPlaying() : false;
}
-void ContentVideoView::SeekTo(JNIEnv*, jobject obj, jint msec) {
- manager_->FullscreenPlayerSeek(msec);
-}
-
-void ContentVideoView::Play(JNIEnv*, jobject obj) {
- manager_->FullscreenPlayerPlay();
-}
-
-void ContentVideoView::Pause(JNIEnv*, jobject obj) {
- manager_->FullscreenPlayerPause();
-}
-
void ContentVideoView::ExitFullscreen(
JNIEnv*, jobject, jboolean release_media_player) {
j_content_video_view_.reset();
« no previous file with comments | « content/browser/android/content_video_view.h ('k') | content/browser/media/android/browser_media_player_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698