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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 GetJavaScriptDialogManager() OVERRIDE; | 55 GetJavaScriptDialogManager() OVERRIDE; |
56 virtual void RequestMediaAccessPermission( | 56 virtual void RequestMediaAccessPermission( |
57 content::WebContents* web_contents, | 57 content::WebContents* web_contents, |
58 const content::MediaStreamRequest& request, | 58 const content::MediaStreamRequest& request, |
59 const content::MediaResponseCallback& callback) OVERRIDE; | 59 const content::MediaResponseCallback& callback) OVERRIDE; |
60 virtual bool RequestPpapiBrokerPermission( | 60 virtual bool RequestPpapiBrokerPermission( |
61 content::WebContents* web_contents, | 61 content::WebContents* web_contents, |
62 const GURL& url, | 62 const GURL& url, |
63 const base::FilePath& plugin_path, | 63 const base::FilePath& plugin_path, |
64 const base::Callback<void(bool)>& callback) OVERRIDE; | 64 const base::Callback<void(bool)>& callback) OVERRIDE; |
| 65 virtual content::WebContents* OpenURLFromTab( |
| 66 content::WebContents* source, |
| 67 const content::OpenURLParams& params) OVERRIDE; |
| 68 virtual void AddNewContents(content::WebContents* source, |
| 69 content::WebContents* new_contents, |
| 70 WindowOpenDisposition disposition, |
| 71 const gfx::Rect& initial_pos, |
| 72 bool user_gesture, |
| 73 bool* was_blocked) OVERRIDE; |
65 | 74 |
66 private: | 75 private: |
67 // NotificationObserver implementation. | 76 // NotificationObserver implementation. |
68 virtual void Observe(int type, | 77 virtual void Observe(int type, |
69 const content::NotificationSource& source, | 78 const content::NotificationSource& source, |
70 const content::NotificationDetails& details) OVERRIDE; | 79 const content::NotificationDetails& details) OVERRIDE; |
71 | 80 |
72 void OnFindResultAvailable(content::WebContents* web_contents, | 81 void OnFindResultAvailable(content::WebContents* web_contents, |
73 const FindNotificationDetails* find_result); | 82 const FindNotificationDetails* find_result); |
74 | 83 |
75 content::NotificationRegistrar notification_registrar_; | 84 content::NotificationRegistrar notification_registrar_; |
76 }; | 85 }; |
77 | 86 |
78 // Register the native methods through JNI. | 87 // Register the native methods through JNI. |
79 bool RegisterChromeWebContentsDelegateAndroid(JNIEnv* env); | 88 bool RegisterChromeWebContentsDelegateAndroid(JNIEnv* env); |
80 | 89 |
81 } // namespace android | 90 } // namespace android |
82 } // namespace chrome | 91 } // namespace chrome |
83 | 92 |
84 #endif // CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ | 93 #endif // CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ |
OLD | NEW |