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 #include "chrome/browser/android/chrome_web_contents_delegate_android.h" | 5 #include "chrome/browser/android/chrome_web_contents_delegate_android.h" |
6 | 6 |
7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "base/android/jni_string.h" | 8 #include "base/android/jni_string.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "chrome/browser/chrome_notification_types.h" | 10 #include "chrome/browser/chrome_notification_types.h" |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 } | 208 } |
209 | 209 |
210 Java_ChromeWebContentsDelegateAndroid_onFindMatchRectsAvailable( | 210 Java_ChromeWebContentsDelegateAndroid_onFindMatchRectsAvailable( |
211 env, | 211 env, |
212 obj.obj(), | 212 obj.obj(), |
213 details_object.obj()); | 213 details_object.obj()); |
214 } | 214 } |
215 | 215 |
216 content::JavaScriptDialogManager* | 216 content::JavaScriptDialogManager* |
217 ChromeWebContentsDelegateAndroid::GetJavaScriptDialogManager() { | 217 ChromeWebContentsDelegateAndroid::GetJavaScriptDialogManager() { |
218 return GetJavaScriptDialogManagerInstance(); | 218 return app_modal_dialogs::JavaScriptDialogManager::GetInstance(); |
219 } | 219 } |
220 | 220 |
221 void ChromeWebContentsDelegateAndroid::RequestMediaAccessPermission( | 221 void ChromeWebContentsDelegateAndroid::RequestMediaAccessPermission( |
222 content::WebContents* web_contents, | 222 content::WebContents* web_contents, |
223 const content::MediaStreamRequest& request, | 223 const content::MediaStreamRequest& request, |
224 const content::MediaResponseCallback& callback) { | 224 const content::MediaResponseCallback& callback) { |
225 MediaCaptureDevicesDispatcher::GetInstance()->ProcessMediaAccessRequest( | 225 MediaCaptureDevicesDispatcher::GetInstance()->ProcessMediaAccessRequest( |
226 web_contents, request, callback, NULL); | 226 web_contents, request, callback, NULL); |
227 } | 227 } |
228 | 228 |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 } | 332 } |
333 | 333 |
334 if (was_blocked) | 334 if (was_blocked) |
335 *was_blocked = !handled; | 335 *was_blocked = !handled; |
336 if (!handled) | 336 if (!handled) |
337 delete new_contents; | 337 delete new_contents; |
338 } | 338 } |
339 | 339 |
340 } // namespace android | 340 } // namespace android |
341 } // namespace chrome | 341 } // namespace chrome |
OLD | NEW |