| 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/c/trusted/ppb_image_data_trusted.h" | 9 #include "ppapi/c/trusted/ppb_image_data_trusted.h" |
| 10 #include "ppapi/proxy/plugin_dispatcher.h" | 10 #include "ppapi/proxy/plugin_dispatcher.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "ppapi/proxy/ppb_host_resolver_private_proxy.h" | 25 #include "ppapi/proxy/ppb_host_resolver_private_proxy.h" |
| 26 #include "ppapi/proxy/ppb_image_data_proxy.h" | 26 #include "ppapi/proxy/ppb_image_data_proxy.h" |
| 27 #include "ppapi/proxy/ppb_network_monitor_private_proxy.h" | 27 #include "ppapi/proxy/ppb_network_monitor_private_proxy.h" |
| 28 #include "ppapi/proxy/ppb_talk_private_proxy.h" | 28 #include "ppapi/proxy/ppb_talk_private_proxy.h" |
| 29 #include "ppapi/proxy/ppb_tcp_server_socket_private_proxy.h" | 29 #include "ppapi/proxy/ppb_tcp_server_socket_private_proxy.h" |
| 30 #include "ppapi/proxy/ppb_tcp_socket_private_proxy.h" | 30 #include "ppapi/proxy/ppb_tcp_socket_private_proxy.h" |
| 31 #include "ppapi/proxy/ppb_udp_socket_private_proxy.h" | 31 #include "ppapi/proxy/ppb_udp_socket_private_proxy.h" |
| 32 #include "ppapi/proxy/ppb_url_loader_proxy.h" | 32 #include "ppapi/proxy/ppb_url_loader_proxy.h" |
| 33 #include "ppapi/proxy/ppb_video_capture_proxy.h" | 33 #include "ppapi/proxy/ppb_video_capture_proxy.h" |
| 34 #include "ppapi/proxy/ppb_video_decoder_proxy.h" | 34 #include "ppapi/proxy/ppb_video_decoder_proxy.h" |
| 35 #include "ppapi/proxy/ppb_x509_certificate_private_proxy.h" |
| 35 #include "ppapi/shared_impl/api_id.h" | 36 #include "ppapi/shared_impl/api_id.h" |
| 36 #include "ppapi/shared_impl/function_group_base.h" | 37 #include "ppapi/shared_impl/function_group_base.h" |
| 37 #include "ppapi/shared_impl/host_resource.h" | 38 #include "ppapi/shared_impl/host_resource.h" |
| 38 #include "ppapi/shared_impl/ppb_audio_config_shared.h" | 39 #include "ppapi/shared_impl/ppb_audio_config_shared.h" |
| 39 #include "ppapi/shared_impl/ppb_input_event_shared.h" | 40 #include "ppapi/shared_impl/ppb_input_event_shared.h" |
| 40 #include "ppapi/shared_impl/ppb_resource_array_shared.h" | 41 #include "ppapi/shared_impl/ppb_resource_array_shared.h" |
| 41 #include "ppapi/shared_impl/ppb_url_request_info_shared.h" | 42 #include "ppapi/shared_impl/ppb_url_request_info_shared.h" |
| 42 #include "ppapi/shared_impl/private/ppb_browser_font_trusted_shared.h" | 43 #include "ppapi/shared_impl/private/ppb_browser_font_trusted_shared.h" |
| 43 #include "ppapi/shared_impl/var.h" | 44 #include "ppapi/shared_impl/var.h" |
| 44 #include "ppapi/thunk/enter.h" | 45 #include "ppapi/thunk/enter.h" |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 data.event_time_stamp = time_stamp; | 358 data.event_time_stamp = time_stamp; |
| 358 data.event_modifiers = modifiers; | 359 data.event_modifiers = modifiers; |
| 359 data.wheel_delta = *wheel_delta; | 360 data.wheel_delta = *wheel_delta; |
| 360 data.wheel_ticks = *wheel_ticks; | 361 data.wheel_ticks = *wheel_ticks; |
| 361 data.wheel_scroll_by_page = PP_ToBool(scroll_by_page); | 362 data.wheel_scroll_by_page = PP_ToBool(scroll_by_page); |
| 362 | 363 |
| 363 return (new PPB_InputEvent_Shared(OBJECT_IS_PROXY, | 364 return (new PPB_InputEvent_Shared(OBJECT_IS_PROXY, |
| 364 instance, data))->GetReference(); | 365 instance, data))->GetReference(); |
| 365 } | 366 } |
| 366 | 367 |
| 368 #if !defined(OS_NACL) |
| 369 PP_Resource ResourceCreationProxy::CreateX509CertificatePrivate( |
| 370 PP_Instance instance) { |
| 371 return PPB_X509Certificate_Private_Proxy::CreateProxyResource(instance); |
| 372 } |
| 373 #endif |
| 374 |
| 375 |
| 367 bool ResourceCreationProxy::Send(IPC::Message* msg) { | 376 bool ResourceCreationProxy::Send(IPC::Message* msg) { |
| 368 return dispatcher()->Send(msg); | 377 return dispatcher()->Send(msg); |
| 369 } | 378 } |
| 370 | 379 |
| 371 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { | 380 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { |
| 372 return false; | 381 return false; |
| 373 } | 382 } |
| 374 | 383 |
| 375 } // namespace proxy | 384 } // namespace proxy |
| 376 } // namespace ppapi | 385 } // namespace ppapi |
| OLD | NEW |