| 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" |
| 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_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_io_impl.h" | 18 #include "webkit/plugins/ppapi/ppb_file_io_impl.h" |
| 19 #include "webkit/plugins/ppapi/ppb_file_ref_impl.h" | 19 #include "webkit/plugins/ppapi/ppb_file_ref_impl.h" |
| 20 #include "webkit/plugins/ppapi/ppb_file_system_impl.h" | 20 #include "webkit/plugins/ppapi/ppb_file_system_impl.h" |
| 21 #include "webkit/plugins/ppapi/ppb_flash_message_loop_impl.h" | 21 #include "webkit/plugins/ppapi/ppb_flash_message_loop_impl.h" |
| 22 #include "webkit/plugins/ppapi/ppb_graphics_2d_impl.h" | |
| 23 #include "webkit/plugins/ppapi/ppb_graphics_3d_impl.h" | 22 #include "webkit/plugins/ppapi/ppb_graphics_3d_impl.h" |
| 24 #include "webkit/plugins/ppapi/ppb_host_resolver_private_impl.h" | 23 #include "webkit/plugins/ppapi/ppb_host_resolver_private_impl.h" |
| 25 #include "webkit/plugins/ppapi/ppb_image_data_impl.h" | 24 #include "webkit/plugins/ppapi/ppb_image_data_impl.h" |
| 26 #include "webkit/plugins/ppapi/ppb_network_monitor_private_impl.h" | 25 #include "webkit/plugins/ppapi/ppb_network_monitor_private_impl.h" |
| 27 #include "webkit/plugins/ppapi/ppb_scrollbar_impl.h" | 26 #include "webkit/plugins/ppapi/ppb_scrollbar_impl.h" |
| 28 #include "webkit/plugins/ppapi/ppb_tcp_server_socket_private_impl.h" | 27 #include "webkit/plugins/ppapi/ppb_tcp_server_socket_private_impl.h" |
| 29 #include "webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h" | 28 #include "webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h" |
| 30 #include "webkit/plugins/ppapi/ppb_udp_socket_private_impl.h" | 29 #include "webkit/plugins/ppapi/ppb_udp_socket_private_impl.h" |
| 31 #include "webkit/plugins/ppapi/ppb_url_loader_impl.h" | 30 #include "webkit/plugins/ppapi/ppb_url_loader_impl.h" |
| 32 #include "webkit/plugins/ppapi/ppb_video_decoder_impl.h" | 31 #include "webkit/plugins/ppapi/ppb_video_decoder_impl.h" |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 PP_Resource ResourceCreationImpl::CreateFlashMenu( | 128 PP_Resource ResourceCreationImpl::CreateFlashMenu( |
| 130 PP_Instance instance, | 129 PP_Instance instance, |
| 131 const PP_Flash_Menu* menu_data) { | 130 const PP_Flash_Menu* menu_data) { |
| 132 return 0; // Not supported in-process. | 131 return 0; // Not supported in-process. |
| 133 } | 132 } |
| 134 | 133 |
| 135 PP_Resource ResourceCreationImpl::CreateFlashMessageLoop(PP_Instance instance) { | 134 PP_Resource ResourceCreationImpl::CreateFlashMessageLoop(PP_Instance instance) { |
| 136 return PPB_Flash_MessageLoop_Impl::Create(instance); | 135 return PPB_Flash_MessageLoop_Impl::Create(instance); |
| 137 } | 136 } |
| 138 | 137 |
| 139 PP_Resource ResourceCreationImpl::CreateGraphics2D( | |
| 140 PP_Instance instance, | |
| 141 const PP_Size& size, | |
| 142 PP_Bool is_always_opaque) { | |
| 143 return PPB_Graphics2D_Impl::Create(instance, size, is_always_opaque); | |
| 144 } | |
| 145 | |
| 146 PP_Resource ResourceCreationImpl::CreateGraphics3D( | 138 PP_Resource ResourceCreationImpl::CreateGraphics3D( |
| 147 PP_Instance instance, | 139 PP_Instance instance, |
| 148 PP_Resource share_context, | 140 PP_Resource share_context, |
| 149 const int32_t* attrib_list) { | 141 const int32_t* attrib_list) { |
| 150 return PPB_Graphics3D_Impl::Create(instance, share_context, attrib_list); | 142 return PPB_Graphics3D_Impl::Create(instance, share_context, attrib_list); |
| 151 } | 143 } |
| 152 | 144 |
| 153 PP_Resource ResourceCreationImpl::CreateGraphics3DRaw( | 145 PP_Resource ResourceCreationImpl::CreateGraphics3DRaw( |
| 154 PP_Instance instance, | 146 PP_Instance instance, |
| 155 PP_Resource share_context, | 147 PP_Resource share_context, |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 wheel_delta, wheel_ticks, scroll_by_page); | 285 wheel_delta, wheel_ticks, scroll_by_page); |
| 294 } | 286 } |
| 295 | 287 |
| 296 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( | 288 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( |
| 297 PP_Instance instance) { | 289 PP_Instance instance) { |
| 298 return PPB_X509Certificate_Private_Impl::CreateResource(instance); | 290 return PPB_X509Certificate_Private_Impl::CreateResource(instance); |
| 299 } | 291 } |
| 300 | 292 |
| 301 } // namespace ppapi | 293 } // namespace ppapi |
| 302 } // namespace webkit | 294 } // namespace webkit |
| OLD | NEW |