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/ppb_input_event_shared.h" | 9 #include "ppapi/shared_impl/ppb_input_event_shared.h" |
10 #include "ppapi/shared_impl/ppb_resource_array_shared.h" | 10 #include "ppapi/shared_impl/ppb_resource_array_shared.h" |
11 #include "ppapi/shared_impl/var.h" | 11 #include "ppapi/shared_impl/var.h" |
12 #include "webkit/plugins/ppapi/common.h" | 12 #include "webkit/plugins/ppapi/common.h" |
13 #include "webkit/plugins/ppapi/ppb_audio_impl.h" | 13 #include "webkit/plugins/ppapi/ppb_audio_impl.h" |
14 #include "webkit/plugins/ppapi/ppb_audio_input_impl.h" | 14 #include "webkit/plugins/ppapi/ppb_audio_input_impl.h" |
15 #include "webkit/plugins/ppapi/ppb_broker_impl.h" | 15 #include "webkit/plugins/ppapi/ppb_broker_impl.h" |
16 #include "webkit/plugins/ppapi/ppb_buffer_impl.h" | 16 #include "webkit/plugins/ppapi/ppb_buffer_impl.h" |
17 #include "webkit/plugins/ppapi/ppb_directory_reader_impl.h" | 17 #include "webkit/plugins/ppapi/ppb_directory_reader_impl.h" |
18 #include "webkit/plugins/ppapi/ppb_file_chooser_impl.h" | 18 #include "webkit/plugins/ppapi/ppb_file_chooser_impl.h" |
19 #include "webkit/plugins/ppapi/ppb_file_io_impl.h" | 19 #include "webkit/plugins/ppapi/ppb_file_io_impl.h" |
20 #include "webkit/plugins/ppapi/ppb_file_ref_impl.h" | 20 #include "webkit/plugins/ppapi/ppb_file_ref_impl.h" |
21 #include "webkit/plugins/ppapi/ppb_file_system_impl.h" | 21 #include "webkit/plugins/ppapi/ppb_file_system_impl.h" |
22 #include "webkit/plugins/ppapi/ppb_flash_menu_impl.h" | 22 #include "webkit/plugins/ppapi/ppb_flash_menu_impl.h" |
| 23 #include "webkit/plugins/ppapi/ppb_flash_message_loop_impl.h" |
23 #include "webkit/plugins/ppapi/ppb_flash_net_connector_impl.h" | 24 #include "webkit/plugins/ppapi/ppb_flash_net_connector_impl.h" |
24 #include "webkit/plugins/ppapi/ppb_font_impl.h" | 25 #include "webkit/plugins/ppapi/ppb_font_impl.h" |
25 #include "webkit/plugins/ppapi/ppb_graphics_2d_impl.h" | 26 #include "webkit/plugins/ppapi/ppb_graphics_2d_impl.h" |
26 #include "webkit/plugins/ppapi/ppb_graphics_3d_impl.h" | 27 #include "webkit/plugins/ppapi/ppb_graphics_3d_impl.h" |
27 #include "webkit/plugins/ppapi/ppb_image_data_impl.h" | 28 #include "webkit/plugins/ppapi/ppb_image_data_impl.h" |
28 #include "webkit/plugins/ppapi/ppb_scrollbar_impl.h" | 29 #include "webkit/plugins/ppapi/ppb_scrollbar_impl.h" |
29 #include "webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h" | 30 #include "webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h" |
30 #include "webkit/plugins/ppapi/ppb_transport_impl.h" | 31 #include "webkit/plugins/ppapi/ppb_transport_impl.h" |
31 #include "webkit/plugins/ppapi/ppb_udp_socket_private_impl.h" | 32 #include "webkit/plugins/ppapi/ppb_udp_socket_private_impl.h" |
32 #include "webkit/plugins/ppapi/ppb_url_loader_impl.h" | 33 #include "webkit/plugins/ppapi/ppb_url_loader_impl.h" |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 PP_FileSystemType type) { | 128 PP_FileSystemType type) { |
128 return PPB_FileSystem_Impl::Create(instance, type); | 129 return PPB_FileSystem_Impl::Create(instance, type); |
129 } | 130 } |
130 | 131 |
131 PP_Resource ResourceCreationImpl::CreateFlashMenu( | 132 PP_Resource ResourceCreationImpl::CreateFlashMenu( |
132 PP_Instance instance, | 133 PP_Instance instance, |
133 const PP_Flash_Menu* menu_data) { | 134 const PP_Flash_Menu* menu_data) { |
134 return PPB_Flash_Menu_Impl::Create(instance, menu_data); | 135 return PPB_Flash_Menu_Impl::Create(instance, menu_data); |
135 } | 136 } |
136 | 137 |
| 138 PP_Resource ResourceCreationImpl::CreateFlashMessageLoop(PP_Instance instance) { |
| 139 return PPB_Flash_MessageLoop_Impl::Create(instance); |
| 140 } |
| 141 |
137 PP_Resource ResourceCreationImpl::CreateFlashNetConnector( | 142 PP_Resource ResourceCreationImpl::CreateFlashNetConnector( |
138 PP_Instance instance) { | 143 PP_Instance instance) { |
139 return (new PPB_Flash_NetConnector_Impl(instance))->GetReference(); | 144 return (new PPB_Flash_NetConnector_Impl(instance))->GetReference(); |
140 } | 145 } |
141 | 146 |
142 PP_Resource ResourceCreationImpl::CreateFontObject( | 147 PP_Resource ResourceCreationImpl::CreateFontObject( |
143 PP_Instance instance, | 148 PP_Instance instance, |
144 const PP_FontDescription_Dev* description) { | 149 const PP_FontDescription_Dev* description) { |
145 return PPB_Font_Impl::Create(instance, *description); | 150 return PPB_Font_Impl::Create(instance, *description); |
146 } | 151 } |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 data.wheel_delta = *wheel_delta; | 314 data.wheel_delta = *wheel_delta; |
310 data.wheel_ticks = *wheel_ticks; | 315 data.wheel_ticks = *wheel_ticks; |
311 data.wheel_scroll_by_page = PP_ToBool(scroll_by_page); | 316 data.wheel_scroll_by_page = PP_ToBool(scroll_by_page); |
312 | 317 |
313 return (new PPB_InputEvent_Shared(PPB_InputEvent_Shared::InitAsImpl(), | 318 return (new PPB_InputEvent_Shared(PPB_InputEvent_Shared::InitAsImpl(), |
314 instance, data))->GetReference(); | 319 instance, data))->GetReference(); |
315 } | 320 } |
316 | 321 |
317 } // namespace ppapi | 322 } // namespace ppapi |
318 } // namespace webkit | 323 } // namespace webkit |
OLD | NEW |