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

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

Issue 157783004: Partial revert of "Restart fullscreen video playback when switching back from background" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/android/content_video_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/android/content_video_view.h
diff --git a/content/browser/android/content_video_view.h b/content/browser/android/content_video_view.h
index b482b41b2e734414f27039178042943e63e8cf65..b89b997dd6b35b3772650be64284ee8d4188a40f 100644
--- a/content/browser/android/content_video_view.h
+++ b/content/browser/android/content_video_view.h
@@ -29,11 +29,6 @@ class ContentVideoView {
public:
// Construct a ContentVideoView object. The |manager| will handle all the
// playback controls from the Java class.
- ContentVideoView(
- const base::android::ScopedJavaLocalRef<jobject>& context,
- const base::android::ScopedJavaLocalRef<jobject>& client,
- BrowserMediaPlayerManager* manager);
-
explicit ContentVideoView(BrowserMediaPlayerManager* manager);
~ContentVideoView();
@@ -60,15 +55,6 @@ class ContentVideoView {
// as we are quitting the app.
void ExitFullscreen(JNIEnv*, jobject, jboolean release_media_player);
- // Supposed to be called when the application paused or stopped.
- // Destroys the fullscreen view in a way that it can be recreated
- // via ResumeFullscreenIfSuspended.
- void SuspendFullscreen();
-
- // Supposed to be called when the application switches back to foreground.
- // Recreates the fullscreen view if it was suspended via SuspendFullscreen.
- void ResumeFullscreenIfSuspended();
-
// Media control method called by the Java class.
void SeekTo(JNIEnv*, jobject obj, jint msec);
void Play(JNIEnv*, jobject obj);
@@ -117,12 +103,6 @@ class ContentVideoView {
// Weak reference of corresponding Java object.
JavaObjectWeakGlobalRef j_content_video_view_;
- enum FullscreenState {
- ENTERED,
- SUSPENDED,
- RESUME
- } fullscreen_state_;
-
// Weak pointer for posting tasks.
base::WeakPtrFactory<ContentVideoView> weak_factory_;
« no previous file with comments | « no previous file | content/browser/android/content_video_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698