Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: chrome/browser/android/chrome_web_contents_delegate_android.cc

Issue 688853005: Consolidate javascript_dialog_manager.h and javascript_dialog_manager_impl.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « athena/extensions/extensions_delegate.cc ('k') | chrome/browser/chrome_browser_main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 WebContents* source) { 218 WebContents* source) {
219 return GetJavaScriptDialogManagerInstance(); 219 return app_modal::JavaScriptDialogManager::GetInstance();
220 } 220 }
221 221
222 void ChromeWebContentsDelegateAndroid::RequestMediaAccessPermission( 222 void ChromeWebContentsDelegateAndroid::RequestMediaAccessPermission(
223 content::WebContents* web_contents, 223 content::WebContents* web_contents,
224 const content::MediaStreamRequest& request, 224 const content::MediaStreamRequest& request,
225 const content::MediaResponseCallback& callback) { 225 const content::MediaResponseCallback& callback) {
226 MediaCaptureDevicesDispatcher::GetInstance()->ProcessMediaAccessRequest( 226 MediaCaptureDevicesDispatcher::GetInstance()->ProcessMediaAccessRequest(
227 web_contents, request, callback, NULL); 227 web_contents, request, callback, NULL);
228 } 228 }
229 229
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 } 333 }
334 334
335 if (was_blocked) 335 if (was_blocked)
336 *was_blocked = !handled; 336 *was_blocked = !handled;
337 if (!handled) 337 if (!handled)
338 delete new_contents; 338 delete new_contents;
339 } 339 }
340 340
341 } // namespace android 341 } // namespace android
342 } // namespace chrome 342 } // namespace chrome
OLDNEW
« no previous file with comments | « athena/extensions/extensions_delegate.cc ('k') | chrome/browser/chrome_browser_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698