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_font_shared.h" | 9 #include "ppapi/shared_impl/private/ppb_font_shared.h" |
10 #include "ppapi/shared_impl/ppb_input_event_shared.h" | 10 #include "ppapi/shared_impl/ppb_input_event_shared.h" |
11 #include "ppapi/shared_impl/ppb_resource_array_shared.h" | 11 #include "ppapi/shared_impl/ppb_resource_array_shared.h" |
12 #include "ppapi/shared_impl/var.h" | 12 #include "ppapi/shared_impl/var.h" |
13 #include "webkit/plugins/ppapi/common.h" | 13 #include "webkit/plugins/ppapi/common.h" |
14 #include "webkit/plugins/ppapi/ppb_audio_impl.h" | 14 #include "webkit/plugins/ppapi/ppb_audio_impl.h" |
15 #include "webkit/plugins/ppapi/ppb_audio_input_impl.h" | 15 #include "webkit/plugins/ppapi/ppb_audio_input_impl.h" |
16 #include "webkit/plugins/ppapi/ppb_broker_impl.h" | 16 #include "webkit/plugins/ppapi/ppb_broker_impl.h" |
17 #include "webkit/plugins/ppapi/ppb_buffer_impl.h" | 17 #include "webkit/plugins/ppapi/ppb_buffer_impl.h" |
18 #include "webkit/plugins/ppapi/ppb_directory_reader_impl.h" | 18 #include "webkit/plugins/ppapi/ppb_directory_reader_impl.h" |
19 #include "webkit/plugins/ppapi/ppb_file_chooser_impl.h" | 19 #include "webkit/plugins/ppapi/ppb_file_chooser_impl.h" |
20 #include "webkit/plugins/ppapi/ppb_file_io_impl.h" | 20 #include "webkit/plugins/ppapi/ppb_file_io_impl.h" |
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_net_connector_impl.h" | 25 #include "webkit/plugins/ppapi/ppb_flash_net_connector_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" |
33 #include "webkit/plugins/ppapi/ppb_url_request_info_impl.h" | 34 #include "webkit/plugins/ppapi/ppb_url_request_info_impl.h" |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 PP_FileSystemType type) { | 129 PP_FileSystemType type) { |
129 return PPB_FileSystem_Impl::Create(instance, type); | 130 return PPB_FileSystem_Impl::Create(instance, type); |
130 } | 131 } |
131 | 132 |
132 PP_Resource ResourceCreationImpl::CreateFlashMenu( | 133 PP_Resource ResourceCreationImpl::CreateFlashMenu( |
133 PP_Instance instance, | 134 PP_Instance instance, |
134 const PP_Flash_Menu* menu_data) { | 135 const PP_Flash_Menu* menu_data) { |
135 return PPB_Flash_Menu_Impl::Create(instance, menu_data); | 136 return PPB_Flash_Menu_Impl::Create(instance, menu_data); |
136 } | 137 } |
137 | 138 |
| 139 PP_Resource ResourceCreationImpl::CreateFlashMessageLoop(PP_Instance instance) { |
| 140 return PPB_Flash_MessageLoop_Impl::Create(instance); |
| 141 } |
| 142 |
138 PP_Resource ResourceCreationImpl::CreateFlashNetConnector( | 143 PP_Resource ResourceCreationImpl::CreateFlashNetConnector( |
139 PP_Instance instance) { | 144 PP_Instance instance) { |
140 return (new PPB_Flash_NetConnector_Impl(instance))->GetReference(); | 145 return (new PPB_Flash_NetConnector_Impl(instance))->GetReference(); |
141 } | 146 } |
142 | 147 |
143 PP_Resource ResourceCreationImpl::CreateFontObject( | 148 PP_Resource ResourceCreationImpl::CreateFontObject( |
144 PP_Instance instance, | 149 PP_Instance instance, |
145 const PP_FontDescription_Dev* description) { | 150 const PP_FontDescription_Dev* description) { |
146 PluginInstance* plugin_instance = | 151 PluginInstance* plugin_instance = |
147 ResourceHelper::PPInstanceToPluginInstance(instance); | 152 ResourceHelper::PPInstanceToPluginInstance(instance); |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 data.wheel_delta = *wheel_delta; | 320 data.wheel_delta = *wheel_delta; |
316 data.wheel_ticks = *wheel_ticks; | 321 data.wheel_ticks = *wheel_ticks; |
317 data.wheel_scroll_by_page = PP_ToBool(scroll_by_page); | 322 data.wheel_scroll_by_page = PP_ToBool(scroll_by_page); |
318 | 323 |
319 return (new PPB_InputEvent_Shared(PPB_InputEvent_Shared::InitAsImpl(), | 324 return (new PPB_InputEvent_Shared(PPB_InputEvent_Shared::InitAsImpl(), |
320 instance, data))->GetReference(); | 325 instance, data))->GetReference(); |
321 } | 326 } |
322 | 327 |
323 } // namespace ppapi | 328 } // namespace ppapi |
324 } // namespace webkit | 329 } // namespace webkit |
OLD | NEW |