| 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 f9c42b12d204b816d75a241ba409730db8e70bc4..ce3356b5056b76b6a5396bd7782aec390ac577e1 100644
|
| --- a/android_webview/native/aw_web_contents_delegate.cc
|
| +++ b/android_webview/native/aw_web_contents_delegate.cc
|
| @@ -47,7 +47,8 @@ base::LazyInstance<AwJavaScriptDialogManager>::Leaky
|
| AwWebContentsDelegate::AwWebContentsDelegate(
|
| JNIEnv* env,
|
| jobject obj)
|
| - : WebContentsDelegateAndroid(env, obj) {
|
| + : WebContentsDelegateAndroid(env, obj),
|
| + is_fullscreen_(false) {
|
| }
|
|
|
| AwWebContentsDelegate::~AwWebContentsDelegate() {
|
| @@ -207,6 +208,18 @@ void AwWebContentsDelegate::RequestMediaAccessPermission(
|
| new MediaAccessPermissionRequest(request, callback)));
|
| }
|
|
|
| +void AwWebContentsDelegate::ToggleFullscreenModeForTab(
|
| + content::WebContents* web_contents, bool enter_fullscreen) {
|
| + is_fullscreen_ = enter_fullscreen;
|
| + web_contents->GetRenderViewHost()->FullscreenChanged(enter_fullscreen);
|
| +}
|
| +
|
| +bool AwWebContentsDelegate::IsFullscreenForTabOrPending(
|
| + const content::WebContents* web_contents) const {
|
| + return is_fullscreen_;
|
| +}
|
| +
|
| +
|
| static void FilesSelectedInChooser(
|
| JNIEnv* env, jclass clazz,
|
| jint process_id, jint render_id, jint mode_flags,
|
|
|