| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_DELEGATE_H_ | 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_DELEGATE_H_ |
| 6 #define ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_DELEGATE_H_ | 6 #define ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include "components/web_contents_delegate_android/web_contents_delegate_android
.h" | 10 #include "components/web_contents_delegate_android/web_contents_delegate_android
.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 const content::MediaStreamRequest& request, | 54 const content::MediaStreamRequest& request, |
| 55 const content::MediaResponseCallback& callback) override; | 55 const content::MediaResponseCallback& callback) override; |
| 56 virtual void EnterFullscreenModeForTab(content::WebContents* web_contents, | 56 virtual void EnterFullscreenModeForTab(content::WebContents* web_contents, |
| 57 const GURL& origin) override; | 57 const GURL& origin) override; |
| 58 virtual void ExitFullscreenModeForTab( | 58 virtual void ExitFullscreenModeForTab( |
| 59 content::WebContents* web_contents) override; | 59 content::WebContents* web_contents) override; |
| 60 virtual bool IsFullscreenForTabOrPending( | 60 virtual bool IsFullscreenForTabOrPending( |
| 61 const content::WebContents* web_contents) const override; | 61 const content::WebContents* web_contents) const override; |
| 62 | 62 |
| 63 private: | 63 private: |
| 64 void ToggleFullscreenModeForTab(content::WebContents* web_contents, | |
| 65 bool enter_fullscreen); | |
| 66 bool is_fullscreen_; | 64 bool is_fullscreen_; |
| 67 }; | 65 }; |
| 68 | 66 |
| 69 bool RegisterAwWebContentsDelegate(JNIEnv* env); | 67 bool RegisterAwWebContentsDelegate(JNIEnv* env); |
| 70 | 68 |
| 71 } // namespace android_webview | 69 } // namespace android_webview |
| 72 | 70 |
| 73 #endif // ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_DELEGATE_H_ | 71 #endif // ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_DELEGATE_H_ |
| OLD | NEW |