Chromium Code Reviews| 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..0e2f9b4222323f49450cff97f41c4cea469738f3 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); |
|
bulach
2012/11/05 13:30:00
nit: 287-290 needs to be unindented -2
Jinsuk Kim (do not use this)
2012/11/06 02:15:49
Done.
|
| + 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 |
| // ---------------------------------------------------------------------------- |