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

Unified Diff: android_webview/native/aw_web_contents_delegate.cc

Issue 789533002: Fullscreen: make fullscreen requests come from RenderFrame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make try happy Created 5 years, 11 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 ca49bb8a056b7621cc04c905c3445f07191c4b72..b18354e6a2e863fb519b66c5d30d9d0c92610c05 100644
--- a/android_webview/native/aw_web_contents_delegate.cc
+++ b/android_webview/native/aw_web_contents_delegate.cc
@@ -208,6 +208,16 @@ void AwWebContentsDelegate::RequestMediaAccessPermission(
new MediaAccessPermissionRequest(request, callback)));
}
+void AwWebContentsDelegate::EnterFullscreenModeForTab(
+ content::WebContents* web_contents, const GURL& origin) {
+ ToggleFullscreenModeForTab(web_contents, true);
+}
+
+void AwWebContentsDelegate::ExitFullscreenModeForTab(
+ content::WebContents* web_contents) {
+ ToggleFullscreenModeForTab(web_contents, false);
+}
+
void AwWebContentsDelegate::ToggleFullscreenModeForTab(
content::WebContents* web_contents, bool enter_fullscreen) {
JNIEnv* env = AttachCurrentThread();
« no previous file with comments | « android_webview/native/aw_web_contents_delegate.h ('k') | chrome/browser/chromeos/login/lock/screen_locker_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698