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

Unified Diff: android_webview/java/src/org/chromium/android_webview/AwContents.java

Issue 570183002: Make the pause of video playback and video capture consistent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: also make video playback consistent Created 6 years, 3 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 | android_webview/native/aw_contents.cc » ('j') | android_webview/native/aw_contents.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/java/src/org/chromium/android_webview/AwContents.java
diff --git a/android_webview/java/src/org/chromium/android_webview/AwContents.java b/android_webview/java/src/org/chromium/android_webview/AwContents.java
index ffa0d5e67cf3f1ce7fa7dbc706d196ccb3eb4e91..f25f692b03a22f69a01661ead8ba0395deaa91d1 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwContents.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwContents.java
@@ -771,8 +771,6 @@ public class AwContents {
installWebContentsObserver();
mSettings.setWebContents(nativeWebContents);
nativeSetDipScale(mNativeAwContents, (float) mDIPScale);
-
- // The only call to onShow. onHide should never be called.
mContentViewCore.onShow();
}
@@ -1396,6 +1394,7 @@ public class AwContents {
if (mIsPaused || mNativeAwContents == 0) return;
mIsPaused = true;
nativeSetIsPaused(mNativeAwContents, mIsPaused);
+ mContentViewCore.onHide();
}
/**
@@ -1405,6 +1404,7 @@ public class AwContents {
if (!mIsPaused || mNativeAwContents == 0) return;
mIsPaused = false;
nativeSetIsPaused(mNativeAwContents, mIsPaused);
+ mContentViewCore.onShow();
}
/**
« no previous file with comments | « no previous file | android_webview/native/aw_contents.cc » ('j') | android_webview/native/aw_contents.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698