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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 void NavigationStateChanged(content::WebContents* source, | 42 void NavigationStateChanged(content::WebContents* source, |
43 content::InvalidateTypes changed_flags) override; | 43 content::InvalidateTypes changed_flags) override; |
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 base::string16& frame_name, | 46 const base::string16& 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, |
| 53 bool to_different_document) override; |
52 void RequestMediaAccessPermission( | 54 void RequestMediaAccessPermission( |
53 content::WebContents* web_contents, | 55 content::WebContents* web_contents, |
54 const content::MediaStreamRequest& request, | 56 const content::MediaStreamRequest& request, |
55 const content::MediaResponseCallback& callback) override; | 57 const content::MediaResponseCallback& callback) override; |
56 void EnterFullscreenModeForTab(content::WebContents* web_contents, | 58 void EnterFullscreenModeForTab(content::WebContents* web_contents, |
57 const GURL& origin) override; | 59 const GURL& origin) override; |
58 void ExitFullscreenModeForTab(content::WebContents* web_contents) override; | 60 void ExitFullscreenModeForTab(content::WebContents* web_contents) override; |
59 bool IsFullscreenForTabOrPending( | 61 bool IsFullscreenForTabOrPending( |
60 const content::WebContents* web_contents) const override; | 62 const content::WebContents* web_contents) const override; |
61 | 63 |
62 private: | 64 private: |
63 bool is_fullscreen_; | 65 bool is_fullscreen_; |
64 }; | 66 }; |
65 | 67 |
66 bool RegisterAwWebContentsDelegate(JNIEnv* env); | 68 bool RegisterAwWebContentsDelegate(JNIEnv* env); |
67 | 69 |
68 } // namespace android_webview | 70 } // namespace android_webview |
69 | 71 |
70 #endif // ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_DELEGATE_H_ | 72 #endif // ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_DELEGATE_H_ |
OLD | NEW |