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 16 matching lines...) Expand all Loading... |
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_video_layer_impl.h" | 36 #include "webkit/plugins/ppapi/ppb_video_layer_impl.h" |
37 #include "webkit/plugins/ppapi/ppb_websocket_impl.h" | |
38 #include "webkit/plugins/ppapi/ppb_x509_certificate_private_impl.h" | 37 #include "webkit/plugins/ppapi/ppb_x509_certificate_private_impl.h" |
39 #include "webkit/plugins/ppapi/resource_helper.h" | 38 #include "webkit/plugins/ppapi/resource_helper.h" |
40 | 39 |
41 using ppapi::InputEventData; | 40 using ppapi::InputEventData; |
42 using ppapi::PPB_InputEvent_Shared; | 41 using ppapi::PPB_InputEvent_Shared; |
43 using ppapi::PPB_ResourceArray_Shared; | 42 using ppapi::PPB_ResourceArray_Shared; |
44 using ppapi::StringVar; | 43 using ppapi::StringVar; |
45 | 44 |
46 namespace webkit { | 45 namespace webkit { |
47 namespace ppapi { | 46 namespace ppapi { |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 PP_Resource graphics3d_id, | 289 PP_Resource graphics3d_id, |
291 PP_VideoDecoder_Profile profile) { | 290 PP_VideoDecoder_Profile profile) { |
292 return PPB_VideoDecoder_Impl::Create(instance, graphics3d_id, profile); | 291 return PPB_VideoDecoder_Impl::Create(instance, graphics3d_id, profile); |
293 } | 292 } |
294 | 293 |
295 PP_Resource ResourceCreationImpl::CreateVideoLayer(PP_Instance instance, | 294 PP_Resource ResourceCreationImpl::CreateVideoLayer(PP_Instance instance, |
296 PP_VideoLayerMode_Dev mode) { | 295 PP_VideoLayerMode_Dev mode) { |
297 return PPB_VideoLayer_Impl::Create(instance, mode); | 296 return PPB_VideoLayer_Impl::Create(instance, mode); |
298 } | 297 } |
299 | 298 |
300 PP_Resource ResourceCreationImpl::CreateWebSocket(PP_Instance instance) { | |
301 return PPB_WebSocket_Impl::Create(instance); | |
302 } | |
303 | |
304 PP_Resource ResourceCreationImpl::CreateWheelInputEvent( | 299 PP_Resource ResourceCreationImpl::CreateWheelInputEvent( |
305 PP_Instance instance, | 300 PP_Instance instance, |
306 PP_TimeTicks time_stamp, | 301 PP_TimeTicks time_stamp, |
307 uint32_t modifiers, | 302 uint32_t modifiers, |
308 const PP_FloatPoint* wheel_delta, | 303 const PP_FloatPoint* wheel_delta, |
309 const PP_FloatPoint* wheel_ticks, | 304 const PP_FloatPoint* wheel_ticks, |
310 PP_Bool scroll_by_page) { | 305 PP_Bool scroll_by_page) { |
311 return PPB_InputEvent_Shared::CreateWheelInputEvent( | 306 return PPB_InputEvent_Shared::CreateWheelInputEvent( |
312 ::ppapi::OBJECT_IS_IMPL, instance, time_stamp, modifiers, | 307 ::ppapi::OBJECT_IS_IMPL, instance, time_stamp, modifiers, |
313 wheel_delta, wheel_ticks, scroll_by_page); | 308 wheel_delta, wheel_ticks, scroll_by_page); |
314 } | 309 } |
315 | 310 |
316 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( | 311 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( |
317 PP_Instance instance) { | 312 PP_Instance instance) { |
318 return PPB_X509Certificate_Private_Impl::CreateResource(instance); | 313 return PPB_X509Certificate_Private_Impl::CreateResource(instance); |
319 } | 314 } |
320 | 315 |
321 } // namespace ppapi | 316 } // namespace ppapi |
322 } // namespace webkit | 317 } // namespace webkit |
OLD | NEW |