| 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 "content/public/browser/content_browser_client.h" | 5 #include "content/public/browser/content_browser_client.h" |
| 6 | 6 |
| 7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "ui/gfx/image/image_skia.h" | 8 #include "ui/gfx/image/image_skia.h" |
| 9 #include "url/gurl.h" | 9 #include "url/gurl.h" |
| 10 | 10 |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 void ContentBrowserClient::RequestGeolocationPermission( | 214 void ContentBrowserClient::RequestGeolocationPermission( |
| 215 WebContents* web_contents, | 215 WebContents* web_contents, |
| 216 int bridge_id, | 216 int bridge_id, |
| 217 const GURL& requesting_frame, | 217 const GURL& requesting_frame, |
| 218 bool user_gesture, | 218 bool user_gesture, |
| 219 base::Callback<void(bool)> result_callback, | 219 base::Callback<void(bool)> result_callback, |
| 220 base::Closure* cancel_callback) { | 220 base::Closure* cancel_callback) { |
| 221 result_callback.Run(true); | 221 result_callback.Run(true); |
| 222 } | 222 } |
| 223 | 223 |
| 224 void ContentBrowserClient::RequestMidiSysExPermission( |
| 225 WebContents* web_contents, |
| 226 int bridge_id, |
| 227 const GURL& requesting_frame, |
| 228 bool user_gesture, |
| 229 base::Callback<void(bool)> result_callback, |
| 230 base::Closure* cancel_callback) { |
| 231 result_callback.Run(true); |
| 232 } |
| 233 |
| 224 bool ContentBrowserClient::CanCreateWindow( | 234 bool ContentBrowserClient::CanCreateWindow( |
| 225 const GURL& opener_url, | 235 const GURL& opener_url, |
| 226 const GURL& opener_top_level_frame_url, | 236 const GURL& opener_top_level_frame_url, |
| 227 const GURL& source_origin, | 237 const GURL& source_origin, |
| 228 WindowContainerType container_type, | 238 WindowContainerType container_type, |
| 229 const GURL& target_url, | 239 const GURL& target_url, |
| 230 const Referrer& referrer, | 240 const Referrer& referrer, |
| 231 WindowOpenDisposition disposition, | 241 WindowOpenDisposition disposition, |
| 232 const blink::WebWindowFeatures& features, | 242 const blink::WebWindowFeatures& features, |
| 233 bool user_gesture, | 243 bool user_gesture, |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 | 333 |
| 324 #if defined(VIDEO_HOLE) | 334 #if defined(VIDEO_HOLE) |
| 325 ExternalVideoSurfaceContainer* | 335 ExternalVideoSurfaceContainer* |
| 326 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( | 336 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( |
| 327 WebContents* web_contents) { | 337 WebContents* web_contents) { |
| 328 return NULL; | 338 return NULL; |
| 329 } | 339 } |
| 330 #endif | 340 #endif |
| 331 | 341 |
| 332 } // namespace content | 342 } // namespace content |
| OLD | NEW |