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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 content::WebContents* web_contents, | 77 content::WebContents* web_contents, |
78 const GURL& url, | 78 const GURL& url, |
79 const base::FilePath& plugin_path, | 79 const base::FilePath& plugin_path, |
80 const base::Callback<void(bool)>& callback) override; | 80 const base::Callback<void(bool)>& callback) override; |
81 virtual content::WebContents* OpenURLFromTab( | 81 virtual content::WebContents* OpenURLFromTab( |
82 content::WebContents* source, | 82 content::WebContents* source, |
83 const content::OpenURLParams& params) override; | 83 const content::OpenURLParams& params) override; |
84 virtual void AddNewContents(content::WebContents* source, | 84 virtual void AddNewContents(content::WebContents* source, |
85 content::WebContents* new_contents, | 85 content::WebContents* new_contents, |
86 WindowOpenDisposition disposition, | 86 WindowOpenDisposition disposition, |
87 const gfx::Rect& initial_pos, | 87 const gfx::Rect& initial_rect, |
88 bool user_gesture, | 88 bool user_gesture, |
89 bool* was_blocked) override; | 89 bool* was_blocked) override; |
90 private: | 90 private: |
91 // NotificationObserver implementation. | 91 // NotificationObserver implementation. |
92 virtual void Observe(int type, | 92 virtual void Observe(int type, |
93 const content::NotificationSource& source, | 93 const content::NotificationSource& source, |
94 const content::NotificationDetails& details) override; | 94 const content::NotificationDetails& details) override; |
95 | 95 |
96 void OnFindResultAvailable(content::WebContents* web_contents, | 96 void OnFindResultAvailable(content::WebContents* web_contents, |
97 const FindNotificationDetails* find_result); | 97 const FindNotificationDetails* find_result); |
98 | 98 |
99 content::NotificationRegistrar notification_registrar_; | 99 content::NotificationRegistrar notification_registrar_; |
100 }; | 100 }; |
101 | 101 |
102 // Register the native methods through JNI. | 102 // Register the native methods through JNI. |
103 bool RegisterChromeWebContentsDelegateAndroid(JNIEnv* env); | 103 bool RegisterChromeWebContentsDelegateAndroid(JNIEnv* env); |
104 | 104 |
105 } // namespace android | 105 } // namespace android |
106 } // namespace chrome | 106 } // namespace chrome |
107 | 107 |
108 #endif // CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ | 108 #endif // CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ |
OLD | NEW |