| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 void WebContentsCreated(content::WebContents* source_contents, | 44 void WebContentsCreated(content::WebContents* source_contents, |
| 45 int opener_render_frame_id, | 45 int opener_render_frame_id, |
| 46 const std::string& frame_name, | 46 const std::string& frame_name, |
| 47 const GURL& target_url, | 47 const GURL& target_url, |
| 48 content::WebContents* new_contents) override; | 48 content::WebContents* new_contents) override; |
| 49 | 49 |
| 50 void CloseContents(content::WebContents* source) override; | 50 void CloseContents(content::WebContents* source) override; |
| 51 void ActivateContents(content::WebContents* contents) override; | 51 void ActivateContents(content::WebContents* contents) override; |
| 52 void LoadingStateChanged(content::WebContents* source, | 52 void LoadingStateChanged(content::WebContents* source, |
| 53 bool to_different_document) override; | 53 bool to_different_document) override; |
| 54 bool ShouldResumeRequestsForCreatedWindow() override; |
| 54 void RequestMediaAccessPermission( | 55 void RequestMediaAccessPermission( |
| 55 content::WebContents* web_contents, | 56 content::WebContents* web_contents, |
| 56 const content::MediaStreamRequest& request, | 57 const content::MediaStreamRequest& request, |
| 57 const content::MediaResponseCallback& callback) override; | 58 const content::MediaResponseCallback& callback) override; |
| 58 void EnterFullscreenModeForTab(content::WebContents* web_contents, | 59 void EnterFullscreenModeForTab(content::WebContents* web_contents, |
| 59 const GURL& origin) override; | 60 const GURL& origin) override; |
| 60 void ExitFullscreenModeForTab(content::WebContents* web_contents) override; | 61 void ExitFullscreenModeForTab(content::WebContents* web_contents) override; |
| 61 bool IsFullscreenForTabOrPending( | 62 bool IsFullscreenForTabOrPending( |
| 62 const content::WebContents* web_contents) const override; | 63 const content::WebContents* web_contents) const override; |
| 63 | 64 |
| 64 private: | 65 private: |
| 65 bool is_fullscreen_; | 66 bool is_fullscreen_; |
| 66 }; | 67 }; |
| 67 | 68 |
| 68 bool RegisterAwWebContentsDelegate(JNIEnv* env); | 69 bool RegisterAwWebContentsDelegate(JNIEnv* env); |
| 69 | 70 |
| 70 } // namespace android_webview | 71 } // namespace android_webview |
| 71 | 72 |
| 72 #endif // ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_DELEGATE_H_ | 73 #endif // ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_DELEGATE_H_ |
| OLD | NEW |