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 CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ |
6 #define CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ | 6 #define CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 // Chromium Android specific WebContentsDelegate. | 30 // Chromium Android specific WebContentsDelegate. |
31 // Should contain any WebContentsDelegate implementations required by | 31 // Should contain any WebContentsDelegate implementations required by |
32 // the Chromium Android port but not to be shared with WebView. | 32 // the Chromium Android port but not to be shared with WebView. |
33 class ChromeWebContentsDelegateAndroid | 33 class ChromeWebContentsDelegateAndroid |
34 : public web_contents_delegate_android::WebContentsDelegateAndroid, | 34 : public web_contents_delegate_android::WebContentsDelegateAndroid, |
35 public content::NotificationObserver { | 35 public content::NotificationObserver { |
36 public: | 36 public: |
37 ChromeWebContentsDelegateAndroid(JNIEnv* env, jobject obj); | 37 ChromeWebContentsDelegateAndroid(JNIEnv* env, jobject obj); |
38 virtual ~ChromeWebContentsDelegateAndroid(); | 38 virtual ~ChromeWebContentsDelegateAndroid(); |
39 | 39 |
40 virtual void LoadingStateChanged(content::WebContents* source) OVERRIDE; | 40 virtual void LoadingStateChanged(content::WebContents* source, |
| 41 bool to_different_document) OVERRIDE; |
41 virtual void RunFileChooser(content::WebContents* web_contents, | 42 virtual void RunFileChooser(content::WebContents* web_contents, |
42 const content::FileChooserParams& params) | 43 const content::FileChooserParams& params) |
43 OVERRIDE; | 44 OVERRIDE; |
44 virtual void CloseContents(content::WebContents* web_contents) OVERRIDE; | 45 virtual void CloseContents(content::WebContents* web_contents) OVERRIDE; |
45 virtual void FindReply(content::WebContents* web_contents, | 46 virtual void FindReply(content::WebContents* web_contents, |
46 int request_id, | 47 int request_id, |
47 int number_of_matches, | 48 int number_of_matches, |
48 const gfx::Rect& selection_rect, | 49 const gfx::Rect& selection_rect, |
49 int active_match_ordinal, | 50 int active_match_ordinal, |
50 bool final_update) OVERRIDE; | 51 bool final_update) OVERRIDE; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 content::NotificationRegistrar notification_registrar_; | 90 content::NotificationRegistrar notification_registrar_; |
90 }; | 91 }; |
91 | 92 |
92 // Register the native methods through JNI. | 93 // Register the native methods through JNI. |
93 bool RegisterChromeWebContentsDelegateAndroid(JNIEnv* env); | 94 bool RegisterChromeWebContentsDelegateAndroid(JNIEnv* env); |
94 | 95 |
95 } // namespace android | 96 } // namespace android |
96 } // namespace chrome | 97 } // namespace chrome |
97 | 98 |
98 #endif // CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ | 99 #endif // CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ |
OLD | NEW |