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