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 "ppapi/proxy/resource_creation_proxy.h" | 5 #include "ppapi/proxy/resource_creation_proxy.h" |
6 | 6 |
7 #include "ppapi/c/pp_errors.h" | 7 #include "ppapi/c/pp_errors.h" |
8 #include "ppapi/c/pp_size.h" | 8 #include "ppapi/c/pp_size.h" |
9 #include "ppapi/proxy/audio_input_resource.h" | 9 #include "ppapi/proxy/audio_input_resource.h" |
10 #include "ppapi/proxy/camera_device_resource.h" | 10 #include "ppapi/proxy/camera_device_resource.h" |
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 PP_Instance instance) { | 462 PP_Instance instance) { |
463 return PPB_Flash_MessageLoop_Proxy::CreateProxyResource(instance); | 463 return PPB_Flash_MessageLoop_Proxy::CreateProxyResource(instance); |
464 } | 464 } |
465 | 465 |
466 PP_Resource ResourceCreationProxy::CreatePlatformVerificationPrivate( | 466 PP_Resource ResourceCreationProxy::CreatePlatformVerificationPrivate( |
467 PP_Instance instance) { | 467 PP_Instance instance) { |
468 return (new PlatformVerificationPrivateResource(GetConnection(), instance))-> | 468 return (new PlatformVerificationPrivateResource(GetConnection(), instance))-> |
469 GetReference(); | 469 GetReference(); |
470 } | 470 } |
471 | 471 |
472 PP_Resource ResourceCreationProxy::CreateScrollbar(PP_Instance instance, | |
473 PP_Bool vertical) { | |
474 NOTIMPLEMENTED(); // Not proxied yet. | |
475 return 0; | |
476 } | |
477 | |
478 PP_Resource ResourceCreationProxy::CreateVideoCapture(PP_Instance instance) { | 472 PP_Resource ResourceCreationProxy::CreateVideoCapture(PP_Instance instance) { |
479 PluginDispatcher* dispatcher = PluginDispatcher::GetForInstance(instance); | 473 PluginDispatcher* dispatcher = PluginDispatcher::GetForInstance(instance); |
480 if (!dispatcher) | 474 if (!dispatcher) |
481 return 0; | 475 return 0; |
482 return (new VideoCaptureResource(GetConnection(), instance, dispatcher)) | 476 return (new VideoCaptureResource(GetConnection(), instance, dispatcher)) |
483 ->GetReference(); | 477 ->GetReference(); |
484 } | 478 } |
485 | 479 |
486 PP_Resource ResourceCreationProxy::CreateVideoDecoderDev( | 480 PP_Resource ResourceCreationProxy::CreateVideoDecoderDev( |
487 PP_Instance instance, | 481 PP_Instance instance, |
(...skipping 12 matching lines...) Expand all Loading... |
500 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { | 494 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { |
501 return false; | 495 return false; |
502 } | 496 } |
503 | 497 |
504 Connection ResourceCreationProxy::GetConnection() { | 498 Connection ResourceCreationProxy::GetConnection() { |
505 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); | 499 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); |
506 } | 500 } |
507 | 501 |
508 } // namespace proxy | 502 } // namespace proxy |
509 } // namespace ppapi | 503 } // namespace ppapi |
OLD | NEW |