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

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: 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
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 3c95a7489447e7e4926033565ed7bc97103d10cf..1cf2c4324122f992682fa38368fe8c401ec23c58 100644
--- a/content/browser/android/content_video_view.h
+++ b/content/browser/android/content_video_view.h
@@ -27,11 +27,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);
bulach 2014/02/13 12:02:44 hmm... in the patches referenced in the descriptio
-
explicit ContentVideoView(BrowserMediaPlayerManager* manager);
~ContentVideoView();
@@ -58,15 +53,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);
@@ -102,12 +88,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_;

Powered by Google App Engine
This is Rietveld 408576698