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