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