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/time.h" | 10 #include "base/time.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 virtual void FindReply(content::WebContents* web_contents, | 44 virtual void FindReply(content::WebContents* web_contents, |
45 int request_id, | 45 int request_id, |
46 int number_of_matches, | 46 int number_of_matches, |
47 const gfx::Rect& selection_rect, | 47 const gfx::Rect& selection_rect, |
48 int active_match_ordinal, | 48 int active_match_ordinal, |
49 bool final_update) OVERRIDE; | 49 bool final_update) OVERRIDE; |
50 virtual void FindMatchRectsReply(content::WebContents* web_contents, | 50 virtual void FindMatchRectsReply(content::WebContents* web_contents, |
51 int version, | 51 int version, |
52 const std::vector<gfx::RectF>& rects, | 52 const std::vector<gfx::RectF>& rects, |
53 const gfx::RectF& active_rect) OVERRIDE; | 53 const gfx::RectF& active_rect) OVERRIDE; |
54 virtual content::JavaScriptDialogCreator* | 54 virtual content::JavaScriptDialogManager* |
55 GetJavaScriptDialogCreator() OVERRIDE; | 55 GetJavaScriptDialogManager() OVERRIDE; |
56 virtual bool CanDownload(content::RenderViewHost* source, | 56 virtual bool CanDownload(content::RenderViewHost* source, |
57 int request_id, | 57 int request_id, |
58 const std::string& request_method) OVERRIDE; | 58 const std::string& request_method) OVERRIDE; |
59 virtual void OnStartDownload(content::WebContents* source, | 59 virtual void OnStartDownload(content::WebContents* source, |
60 content::DownloadItem* download) OVERRIDE; | 60 content::DownloadItem* download) OVERRIDE; |
61 virtual void DidNavigateToPendingEntry(content::WebContents* source) OVERRIDE; | 61 virtual void DidNavigateToPendingEntry(content::WebContents* source) OVERRIDE; |
62 virtual void DidNavigateMainFramePostCommit( | 62 virtual void DidNavigateMainFramePostCommit( |
63 content::WebContents* source) OVERRIDE; | 63 content::WebContents* source) OVERRIDE; |
64 virtual void RequestMediaAccessPermission( | 64 virtual void RequestMediaAccessPermission( |
65 content::WebContents* web_contents, | 65 content::WebContents* web_contents, |
(...skipping 14 matching lines...) Expand all Loading... |
80 base::TimeTicks navigation_start_time_; | 80 base::TimeTicks navigation_start_time_; |
81 }; | 81 }; |
82 | 82 |
83 // Register the native methods through JNI. | 83 // Register the native methods through JNI. |
84 bool RegisterChromeWebContentsDelegateAndroid(JNIEnv* env); | 84 bool RegisterChromeWebContentsDelegateAndroid(JNIEnv* env); |
85 | 85 |
86 } // namespace android | 86 } // namespace android |
87 } // namespace chrome | 87 } // namespace chrome |
88 | 88 |
89 #endif // CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ | 89 #endif // CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ |
OLD | NEW |