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

Side by Side Diff: android_webview/browser/aw_content_browser_client.cc

Issue 335993002: Convert MIDI permission requests to use WebContents in preparation for switching the code to using … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months 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 | Annotate | Revision Log
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 "android_webview/browser/aw_content_browser_client.h" 5 #include "android_webview/browser/aw_content_browser_client.h"
6 6
7 #include "android_webview/browser/aw_browser_context.h" 7 #include "android_webview/browser/aw_browser_context.h"
8 #include "android_webview/browser/aw_browser_main_parts.h" 8 #include "android_webview/browser/aw_browser_main_parts.h"
9 #include "android_webview/browser/aw_contents_client_bridge_base.h" 9 #include "android_webview/browser/aw_contents_client_bridge_base.h"
10 #include "android_webview/browser/aw_contents_io_thread_client.h" 10 #include "android_webview/browser/aw_contents_io_thread_client.h"
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 if (client) { 398 if (client) {
399 client->RequestGeolocationPermission( 399 client->RequestGeolocationPermission(
400 web_contents, requesting_frame, result_callback, cancel_callback); 400 web_contents, requesting_frame, result_callback, cancel_callback);
401 } else { 401 } else {
402 LOG(WARNING) << "Failed to find the associated bridge for geolocation " 402 LOG(WARNING) << "Failed to find the associated bridge for geolocation "
403 << "permission request."; 403 << "permission request.";
404 result_callback.Run(false); 404 result_callback.Run(false);
405 } 405 }
406 } 406 }
407 407
408 void AwContentBrowserClient::RequestMidiSysExPermission(
409 content::WebContents* web_contents,
410 int bridge_id,
411 const GURL& requesting_frame,
412 bool user_gesture,
413 base::Callback<void(bool)> result_callback,
414 base::Closure* cancel_callback) {
415 // TODO(toyoshim): Android WebView is not supported yet.
416 // See http://crbug.com/339767.
417 result_callback.Run(false);
418 }
419
408 bool AwContentBrowserClient::CanCreateWindow( 420 bool AwContentBrowserClient::CanCreateWindow(
409 const GURL& opener_url, 421 const GURL& opener_url,
410 const GURL& opener_top_level_frame_url, 422 const GURL& opener_top_level_frame_url,
411 const GURL& source_origin, 423 const GURL& source_origin,
412 WindowContainerType container_type, 424 WindowContainerType container_type,
413 const GURL& target_url, 425 const GURL& target_url,
414 const content::Referrer& referrer, 426 const content::Referrer& referrer,
415 WindowOpenDisposition disposition, 427 WindowOpenDisposition disposition,
416 const blink::WebWindowFeatures& features, 428 const blink::WebWindowFeatures& features,
417 bool user_gesture, 429 bool user_gesture,
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 530
519 #if defined(VIDEO_HOLE) 531 #if defined(VIDEO_HOLE)
520 content::ExternalVideoSurfaceContainer* 532 content::ExternalVideoSurfaceContainer*
521 AwContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( 533 AwContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer(
522 content::WebContents* web_contents) { 534 content::WebContents* web_contents) {
523 return native_factory_->CreateExternalVideoSurfaceContainer(web_contents); 535 return native_factory_->CreateExternalVideoSurfaceContainer(web_contents);
524 } 536 }
525 #endif 537 #endif
526 538
527 } // namespace android_webview 539 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/browser/aw_content_browser_client.h ('k') | chrome/browser/chrome_content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698