| 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 b18354e6a2e863fb519b66c5d30d9d0c92610c05..2f43de1ae6d25a2e81966a85ee4b7c7aff17e0e1 100644
|
| --- a/android_webview/native/aw_web_contents_delegate.cc
|
| +++ b/android_webview/native/aw_web_contents_delegate.cc
|
| @@ -210,24 +210,15 @@ void AwWebContentsDelegate::RequestMediaAccessPermission(
|
|
|
| void AwWebContentsDelegate::EnterFullscreenModeForTab(
|
| content::WebContents* web_contents, const GURL& origin) {
|
| - ToggleFullscreenModeForTab(web_contents, true);
|
| + WebContentsDelegateAndroid::EnterFullscreenModeForTab(web_contents, origin);
|
| + is_fullscreen_ = true;
|
| + web_contents->GetRenderViewHost()->WasResized();
|
| }
|
|
|
| void AwWebContentsDelegate::ExitFullscreenModeForTab(
|
| content::WebContents* web_contents) {
|
| - ToggleFullscreenModeForTab(web_contents, false);
|
| -}
|
| -
|
| -void AwWebContentsDelegate::ToggleFullscreenModeForTab(
|
| - content::WebContents* web_contents, bool enter_fullscreen) {
|
| - JNIEnv* env = AttachCurrentThread();
|
| -
|
| - ScopedJavaLocalRef<jobject> java_delegate = GetJavaDelegate(env);
|
| - if (java_delegate.obj()) {
|
| - Java_AwWebContentsDelegate_toggleFullscreenModeForTab(
|
| - env, java_delegate.obj(), enter_fullscreen);
|
| - }
|
| - is_fullscreen_ = enter_fullscreen;
|
| + WebContentsDelegateAndroid::ExitFullscreenModeForTab(web_contents);
|
| + is_fullscreen_ = false;
|
| web_contents->GetRenderViewHost()->WasResized();
|
| }
|
|
|
|
|