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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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* | 53 virtual content::JavaScriptDialogCreator* |
54 GetJavaScriptDialogCreator() OVERRIDE; | 54 GetJavaScriptDialogCreator() OVERRIDE; |
| 55 virtual bool CanDownload(content::RenderViewHost* source, |
| 56 int request_id, |
| 57 const std::string& request_method) OVERRIDE; |
| 58 virtual void OnStartDownload(content::WebContents* source, |
| 59 content::DownloadItem* download) OVERRIDE; |
55 | 60 |
56 private: | 61 private: |
57 // NotificationObserver implementation. | 62 // NotificationObserver implementation. |
58 virtual void Observe(int type, | 63 virtual void Observe(int type, |
59 const content::NotificationSource& source, | 64 const content::NotificationSource& source, |
60 const content::NotificationDetails& details) OVERRIDE; | 65 const content::NotificationDetails& details) OVERRIDE; |
61 | 66 |
62 void OnFindResultAvailable(content::WebContents* web_contents, | 67 void OnFindResultAvailable(content::WebContents* web_contents, |
63 const FindNotificationDetails* find_result); | 68 const FindNotificationDetails* find_result); |
64 | 69 |
65 content::NotificationRegistrar notification_registrar_; | 70 content::NotificationRegistrar notification_registrar_; |
66 }; | 71 }; |
67 | 72 |
68 // Register the native methods through JNI. | 73 // Register the native methods through JNI. |
69 bool RegisterChromeWebContentsDelegateAndroid(JNIEnv* env); | 74 bool RegisterChromeWebContentsDelegateAndroid(JNIEnv* env); |
70 | 75 |
71 } // namespace android | 76 } // namespace android |
72 } // namespace chrome | 77 } // namespace chrome |
73 | 78 |
74 #endif // CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ | 79 #endif // CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ |
OLD | NEW |