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

Unified Diff: android_webview/native/aw_web_contents_delegate.cc

Issue 652673002: NOT FOR REVIEW: Modify ToggleFullscreenMode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fixPowerBlockerNonMedia
Patch Set: Rebase Created 6 years, 2 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: android_webview/native/aw_web_contents_delegate.cc
diff --git a/android_webview/native/aw_web_contents_delegate.cc b/android_webview/native/aw_web_contents_delegate.cc
index bbf34137ee370b7fd6de7a968f79eb05393d161c..3f1b6c7e1a5fb62a5d75c0788e53672ed06d083d 100644
--- a/android_webview/native/aw_web_contents_delegate.cc
+++ b/android_webview/native/aw_web_contents_delegate.cc
@@ -209,13 +209,13 @@ void AwWebContentsDelegate::RequestMediaAccessPermission(
}
void AwWebContentsDelegate::ToggleFullscreenModeForTab(
- content::WebContents* web_contents, bool enter_fullscreen) {
+ content::WebContents* web_contents, bool enter_fullscreen, bool is_video) {
JNIEnv* env = AttachCurrentThread();
ScopedJavaLocalRef<jobject> java_delegate = GetJavaDelegate(env);
if (java_delegate.obj()) {
Java_AwWebContentsDelegate_toggleFullscreenModeForTab(
- env, java_delegate.obj(), enter_fullscreen);
+ env, java_delegate.obj(), enter_fullscreen, is_video);
}
is_fullscreen_ = enter_fullscreen;
web_contents->GetRenderViewHost()->WasResized();

Powered by Google App Engine
This is Rietveld 408576698