| Index: chrome/browser/component/web_contents_delegate_android/web_contents_delegate_android.cc
|
| diff --git a/chrome/browser/component/web_contents_delegate_android/web_contents_delegate_android.cc b/chrome/browser/component/web_contents_delegate_android/web_contents_delegate_android.cc
|
| index af997c4120abd0f746980df0709e99d9e107b4b1..b0dc6ae13c67b0c6c156f6039a58735d18ad7b47 100644
|
| --- a/chrome/browser/component/web_contents_delegate_android/web_contents_delegate_android.cc
|
| +++ b/chrome/browser/component/web_contents_delegate_android/web_contents_delegate_android.cc
|
| @@ -280,6 +280,27 @@ void WebContentsDelegateAndroid::ShowRepostFormWarningDialog(
|
| content_view_core.obj());
|
| }
|
|
|
| +void WebContentsDelegateAndroid::ToggleFullscreenModeForTab(
|
| + WebContents* web_contents,
|
| + bool enter_fullscreen) {
|
| + JNIEnv* env = AttachCurrentThread();
|
| + ScopedJavaLocalRef<jobject> obj = GetJavaDelegate(env);
|
| + if (obj.is_null())
|
| + return;
|
| + Java_WebContentsDelegateAndroid_toggleFullscreenModeForTab(
|
| + env, obj.obj(), enter_fullscreen);
|
| +}
|
| +
|
| +bool WebContentsDelegateAndroid::IsFullscreenForTabOrPending(
|
| + const WebContents* web_contents) const {
|
| + JNIEnv* env = AttachCurrentThread();
|
| + ScopedJavaLocalRef<jobject> obj = GetJavaDelegate(env);
|
| + if (obj.is_null())
|
| + return false;
|
| + return Java_WebContentsDelegateAndroid_isFullscreenForTabOrPending(
|
| + env, obj.obj());
|
| +}
|
| +
|
| // ----------------------------------------------------------------------------
|
| // Native JNI methods
|
| // ----------------------------------------------------------------------------
|
|
|