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..71eeb081a0014d5ad5f148ed176a9b2970692bc4 100644 |
--- a/android_webview/native/aw_web_contents_delegate.cc |
+++ b/android_webview/native/aw_web_contents_delegate.cc |
@@ -207,6 +207,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()->WasResized(); |
boliu
2014/05/27 21:45:50
So why is this needed now but not before?
Why is
qinmin
2014/05/28 17:53:39
Android webview will never get resized because it
boliu
2014/06/11 16:16:28
This API is so wrong though. The method should be
qinmin
2014/06/13 01:47:31
Ok, changed to use a separate IPC to inform the re
|
+} |
+ |
+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, |