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 "webkit/plugins/ppapi/resource_creation_impl.h" | 5 #include "webkit/plugins/ppapi/resource_creation_impl.h" |
6 | 6 |
7 #include "ppapi/c/pp_size.h" | 7 #include "ppapi/c/pp_size.h" |
8 #include "ppapi/shared_impl/ppb_audio_config_shared.h" | 8 #include "ppapi/shared_impl/ppb_audio_config_shared.h" |
9 #include "ppapi/shared_impl/private/ppb_browser_font_trusted_shared.h" | 9 #include "ppapi/shared_impl/private/ppb_browser_font_trusted_shared.h" |
10 #include "ppapi/shared_impl/ppb_input_event_shared.h" | 10 #include "ppapi/shared_impl/ppb_input_event_shared.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 #include "webkit/plugins/ppapi/ppb_host_resolver_private_impl.h" | 26 #include "webkit/plugins/ppapi/ppb_host_resolver_private_impl.h" |
27 #include "webkit/plugins/ppapi/ppb_image_data_impl.h" | 27 #include "webkit/plugins/ppapi/ppb_image_data_impl.h" |
28 #include "webkit/plugins/ppapi/ppb_network_monitor_private_impl.h" | 28 #include "webkit/plugins/ppapi/ppb_network_monitor_private_impl.h" |
29 #include "webkit/plugins/ppapi/ppb_scrollbar_impl.h" | 29 #include "webkit/plugins/ppapi/ppb_scrollbar_impl.h" |
30 #include "webkit/plugins/ppapi/ppb_tcp_server_socket_private_impl.h" | 30 #include "webkit/plugins/ppapi/ppb_tcp_server_socket_private_impl.h" |
31 #include "webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h" | 31 #include "webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h" |
32 #include "webkit/plugins/ppapi/ppb_udp_socket_private_impl.h" | 32 #include "webkit/plugins/ppapi/ppb_udp_socket_private_impl.h" |
33 #include "webkit/plugins/ppapi/ppb_url_loader_impl.h" | 33 #include "webkit/plugins/ppapi/ppb_url_loader_impl.h" |
34 #include "webkit/plugins/ppapi/ppb_video_capture_impl.h" | 34 #include "webkit/plugins/ppapi/ppb_video_capture_impl.h" |
35 #include "webkit/plugins/ppapi/ppb_video_decoder_impl.h" | 35 #include "webkit/plugins/ppapi/ppb_video_decoder_impl.h" |
36 #include "webkit/plugins/ppapi/ppb_websocket_impl.h" | |
37 #include "webkit/plugins/ppapi/ppb_x509_certificate_private_impl.h" | 36 #include "webkit/plugins/ppapi/ppb_x509_certificate_private_impl.h" |
38 #include "webkit/plugins/ppapi/resource_helper.h" | 37 #include "webkit/plugins/ppapi/resource_helper.h" |
39 | 38 |
40 using ppapi::InputEventData; | 39 using ppapi::InputEventData; |
41 using ppapi::PPB_InputEvent_Shared; | 40 using ppapi::PPB_InputEvent_Shared; |
42 using ppapi::PPB_ResourceArray_Shared; | 41 using ppapi::PPB_ResourceArray_Shared; |
43 using ppapi::StringVar; | 42 using ppapi::StringVar; |
44 | 43 |
45 namespace webkit { | 44 namespace webkit { |
46 namespace ppapi { | 45 namespace ppapi { |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 return video_capture->GetReference(); | 283 return video_capture->GetReference(); |
285 } | 284 } |
286 | 285 |
287 PP_Resource ResourceCreationImpl::CreateVideoDecoder( | 286 PP_Resource ResourceCreationImpl::CreateVideoDecoder( |
288 PP_Instance instance, | 287 PP_Instance instance, |
289 PP_Resource graphics3d_id, | 288 PP_Resource graphics3d_id, |
290 PP_VideoDecoder_Profile profile) { | 289 PP_VideoDecoder_Profile profile) { |
291 return PPB_VideoDecoder_Impl::Create(instance, graphics3d_id, profile); | 290 return PPB_VideoDecoder_Impl::Create(instance, graphics3d_id, profile); |
292 } | 291 } |
293 | 292 |
294 PP_Resource ResourceCreationImpl::CreateWebSocket(PP_Instance instance) { | |
295 return PPB_WebSocket_Impl::Create(instance); | |
296 } | |
297 | |
298 PP_Resource ResourceCreationImpl::CreateWheelInputEvent( | 293 PP_Resource ResourceCreationImpl::CreateWheelInputEvent( |
299 PP_Instance instance, | 294 PP_Instance instance, |
300 PP_TimeTicks time_stamp, | 295 PP_TimeTicks time_stamp, |
301 uint32_t modifiers, | 296 uint32_t modifiers, |
302 const PP_FloatPoint* wheel_delta, | 297 const PP_FloatPoint* wheel_delta, |
303 const PP_FloatPoint* wheel_ticks, | 298 const PP_FloatPoint* wheel_ticks, |
304 PP_Bool scroll_by_page) { | 299 PP_Bool scroll_by_page) { |
305 return PPB_InputEvent_Shared::CreateWheelInputEvent( | 300 return PPB_InputEvent_Shared::CreateWheelInputEvent( |
306 ::ppapi::OBJECT_IS_IMPL, instance, time_stamp, modifiers, | 301 ::ppapi::OBJECT_IS_IMPL, instance, time_stamp, modifiers, |
307 wheel_delta, wheel_ticks, scroll_by_page); | 302 wheel_delta, wheel_ticks, scroll_by_page); |
308 } | 303 } |
309 | 304 |
310 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( | 305 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( |
311 PP_Instance instance) { | 306 PP_Instance instance) { |
312 return PPB_X509Certificate_Private_Impl::CreateResource(instance); | 307 return PPB_X509Certificate_Private_Impl::CreateResource(instance); |
313 } | 308 } |
314 | 309 |
315 } // namespace ppapi | 310 } // namespace ppapi |
316 } // namespace webkit | 311 } // namespace webkit |
OLD | NEW |