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

Unified Diff: android_webview/native/aw_contents.cc

Issue 103583005: Restart fullscreen video playback when switching back from background (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years 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: android_webview/native/aw_contents.cc
diff --git a/android_webview/native/aw_contents.cc b/android_webview/native/aw_contents.cc
index f949da08442c00b993d22b23376396b90c8c73fb..dfba0577b17f55dba9527169b5a14c95ab7f629e 100644
--- a/android_webview/native/aw_contents.cc
+++ b/android_webview/native/aw_contents.cc
@@ -733,11 +733,13 @@ void AwContents::SetWindowVisibility(JNIEnv* env, jobject obj, bool visible) {
void AwContents::SetIsPaused(JNIEnv* env, jobject obj, bool paused) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
browser_view_renderer_->SetIsPaused(paused);
- if (paused) {
- ContentViewCore* cvc =
+ ContentViewCore* cvc =
ContentViewCore::FromWebContents(web_contents_.get());
- if (cvc)
+ if (cvc) {
qinmin 2013/12/06 00:10:13 remove nested loops. if(!cvc) return; if(pause
kbalazs 2013/12/06 19:15:03 Done.
+ if (paused)
cvc->PauseVideo();
+ else
+ cvc->ResumeVideo();
}
}
« no previous file with comments | « no previous file | content/browser/android/content_view_core_impl.h » ('j') | content/browser/android/content_view_core_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698