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 "chrome/browser/component/web_contents_delegate_android/web_contents_de
legate_android.h" | 10 #include "chrome/browser/component/web_contents_delegate_android/web_contents_de
legate_android.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 virtual void FindReply(content::WebContents* web_contents, | 43 virtual void FindReply(content::WebContents* web_contents, |
44 int request_id, | 44 int request_id, |
45 int number_of_matches, | 45 int number_of_matches, |
46 const gfx::Rect& selection_rect, | 46 const gfx::Rect& selection_rect, |
47 int active_match_ordinal, | 47 int active_match_ordinal, |
48 bool final_update) OVERRIDE; | 48 bool final_update) OVERRIDE; |
49 virtual void FindMatchRectsReply(content::WebContents* web_contents, | 49 virtual void FindMatchRectsReply(content::WebContents* web_contents, |
50 int version, | 50 int version, |
51 const std::vector<gfx::RectF>& rects, | 51 const std::vector<gfx::RectF>& rects, |
52 const gfx::RectF& active_rect) OVERRIDE; | 52 const gfx::RectF& active_rect) OVERRIDE; |
| 53 virtual content::JavaScriptDialogCreator* |
| 54 GetJavaScriptDialogCreator() OVERRIDE; |
53 | 55 |
54 private: | 56 private: |
55 // NotificationObserver implementation. | 57 // NotificationObserver implementation. |
56 virtual void Observe(int type, | 58 virtual void Observe(int type, |
57 const content::NotificationSource& source, | 59 const content::NotificationSource& source, |
58 const content::NotificationDetails& details) OVERRIDE; | 60 const content::NotificationDetails& details) OVERRIDE; |
59 | 61 |
60 void OnFindResultAvailable(content::WebContents* web_contents, | 62 void OnFindResultAvailable(content::WebContents* web_contents, |
61 const FindNotificationDetails* find_result); | 63 const FindNotificationDetails* find_result); |
62 | 64 |
63 content::NotificationRegistrar notification_registrar_; | 65 content::NotificationRegistrar notification_registrar_; |
64 }; | 66 }; |
65 | 67 |
66 // Register the native methods through JNI. | 68 // Register the native methods through JNI. |
67 bool RegisterChromeWebContentsDelegateAndroid(JNIEnv* env); | 69 bool RegisterChromeWebContentsDelegateAndroid(JNIEnv* env); |
68 | 70 |
69 } // namespace android | 71 } // namespace android |
70 } // namespace chrome | 72 } // namespace chrome |
71 | 73 |
72 #endif // CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ | 74 #endif // CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ |
OLD | NEW |