| 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 10 matching lines...) Expand all Loading... |
| 21 #include "webkit/plugins/ppapi/ppb_file_ref_impl.h" | 21 #include "webkit/plugins/ppapi/ppb_file_ref_impl.h" |
| 22 #include "webkit/plugins/ppapi/ppb_file_system_impl.h" | 22 #include "webkit/plugins/ppapi/ppb_file_system_impl.h" |
| 23 #include "webkit/plugins/ppapi/ppb_flash_menu_impl.h" | 23 #include "webkit/plugins/ppapi/ppb_flash_menu_impl.h" |
| 24 #include "webkit/plugins/ppapi/ppb_flash_message_loop_impl.h" | 24 #include "webkit/plugins/ppapi/ppb_flash_message_loop_impl.h" |
| 25 #include "webkit/plugins/ppapi/ppb_flash_net_connector_impl.h" | 25 #include "webkit/plugins/ppapi/ppb_flash_net_connector_impl.h" |
| 26 #include "webkit/plugins/ppapi/ppb_graphics_2d_impl.h" | 26 #include "webkit/plugins/ppapi/ppb_graphics_2d_impl.h" |
| 27 #include "webkit/plugins/ppapi/ppb_graphics_3d_impl.h" | 27 #include "webkit/plugins/ppapi/ppb_graphics_3d_impl.h" |
| 28 #include "webkit/plugins/ppapi/ppb_image_data_impl.h" | 28 #include "webkit/plugins/ppapi/ppb_image_data_impl.h" |
| 29 #include "webkit/plugins/ppapi/ppb_network_monitor_private_impl.h" | 29 #include "webkit/plugins/ppapi/ppb_network_monitor_private_impl.h" |
| 30 #include "webkit/plugins/ppapi/ppb_scrollbar_impl.h" | 30 #include "webkit/plugins/ppapi/ppb_scrollbar_impl.h" |
| 31 #include "webkit/plugins/ppapi/ppb_talk_private_impl.h" |
| 31 #include "webkit/plugins/ppapi/ppb_tcp_server_socket_private_impl.h" | 32 #include "webkit/plugins/ppapi/ppb_tcp_server_socket_private_impl.h" |
| 32 #include "webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h" | 33 #include "webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h" |
| 33 #include "webkit/plugins/ppapi/ppb_transport_impl.h" | 34 #include "webkit/plugins/ppapi/ppb_transport_impl.h" |
| 34 #include "webkit/plugins/ppapi/ppb_udp_socket_private_impl.h" | 35 #include "webkit/plugins/ppapi/ppb_udp_socket_private_impl.h" |
| 35 #include "webkit/plugins/ppapi/ppb_url_loader_impl.h" | 36 #include "webkit/plugins/ppapi/ppb_url_loader_impl.h" |
| 36 #include "webkit/plugins/ppapi/ppb_url_request_info_impl.h" | 37 #include "webkit/plugins/ppapi/ppb_url_request_info_impl.h" |
| 37 #include "webkit/plugins/ppapi/ppb_video_capture_impl.h" | 38 #include "webkit/plugins/ppapi/ppb_video_capture_impl.h" |
| 38 #include "webkit/plugins/ppapi/ppb_video_decoder_impl.h" | 39 #include "webkit/plugins/ppapi/ppb_video_decoder_impl.h" |
| 39 #include "webkit/plugins/ppapi/ppb_video_layer_impl.h" | 40 #include "webkit/plugins/ppapi/ppb_video_layer_impl.h" |
| 40 #include "webkit/plugins/ppapi/ppb_websocket_impl.h" | 41 #include "webkit/plugins/ppapi/ppb_websocket_impl.h" |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 PPB_NetworkMonitor_Callback callback, | 250 PPB_NetworkMonitor_Callback callback, |
| 250 void* user_data) { | 251 void* user_data) { |
| 251 return PPB_NetworkMonitor_Private_Impl::Create(instance, callback, user_data); | 252 return PPB_NetworkMonitor_Private_Impl::Create(instance, callback, user_data); |
| 252 } | 253 } |
| 253 | 254 |
| 254 PP_Resource ResourceCreationImpl::CreateScrollbar(PP_Instance instance, | 255 PP_Resource ResourceCreationImpl::CreateScrollbar(PP_Instance instance, |
| 255 PP_Bool vertical) { | 256 PP_Bool vertical) { |
| 256 return PPB_Scrollbar_Impl::Create(instance, PP_ToBool(vertical)); | 257 return PPB_Scrollbar_Impl::Create(instance, PP_ToBool(vertical)); |
| 257 } | 258 } |
| 258 | 259 |
| 259 PP_Resource ResourceCreationImpl::CreateTalk(PP_Instance /* instance */) { | 260 PP_Resource ResourceCreationImpl::CreateTalk(PP_Instance instance) { |
| 260 // Not implemented in-process. | 261 PPB_Talk_Private_Impl* object = new PPB_Talk_Private_Impl(instance); |
| 261 return 0; | 262 return object->GetReference(); |
| 262 } | 263 } |
| 263 | 264 |
| 264 PP_Resource ResourceCreationImpl::CreateResourceArray( | 265 PP_Resource ResourceCreationImpl::CreateResourceArray( |
| 265 PP_Instance instance, | 266 PP_Instance instance, |
| 266 const PP_Resource elements[], | 267 const PP_Resource elements[], |
| 267 uint32_t size) { | 268 uint32_t size) { |
| 268 PPB_ResourceArray_Shared* object = new PPB_ResourceArray_Shared( | 269 PPB_ResourceArray_Shared* object = new PPB_ResourceArray_Shared( |
| 269 ::ppapi::OBJECT_IS_IMPL, instance, elements, size); | 270 ::ppapi::OBJECT_IS_IMPL, instance, elements, size); |
| 270 return object->GetReference(); | 271 return object->GetReference(); |
| 271 } | 272 } |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 data.wheel_delta = *wheel_delta; | 342 data.wheel_delta = *wheel_delta; |
| 342 data.wheel_ticks = *wheel_ticks; | 343 data.wheel_ticks = *wheel_ticks; |
| 343 data.wheel_scroll_by_page = PP_ToBool(scroll_by_page); | 344 data.wheel_scroll_by_page = PP_ToBool(scroll_by_page); |
| 344 | 345 |
| 345 return (new PPB_InputEvent_Shared(::ppapi::OBJECT_IS_IMPL, | 346 return (new PPB_InputEvent_Shared(::ppapi::OBJECT_IS_IMPL, |
| 346 instance, data))->GetReference(); | 347 instance, data))->GetReference(); |
| 347 } | 348 } |
| 348 | 349 |
| 349 } // namespace ppapi | 350 } // namespace ppapi |
| 350 } // namespace webkit | 351 } // namespace webkit |
| OLD | NEW |