| 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_broker_impl.h" | 14 #include "webkit/plugins/ppapi/ppb_broker_impl.h" |
| 15 #include "webkit/plugins/ppapi/ppb_buffer_impl.h" | 15 #include "webkit/plugins/ppapi/ppb_buffer_impl.h" |
| 16 #include "webkit/plugins/ppapi/ppb_directory_reader_impl.h" | 16 #include "webkit/plugins/ppapi/ppb_directory_reader_impl.h" |
| 17 #include "webkit/plugins/ppapi/ppb_file_ref_impl.h" | 17 #include "webkit/plugins/ppapi/ppb_file_ref_impl.h" |
| 18 #include "webkit/plugins/ppapi/ppb_file_system_impl.h" | 18 #include "webkit/plugins/ppapi/ppb_file_system_impl.h" |
| 19 #include "webkit/plugins/ppapi/ppb_flash_message_loop_impl.h" | 19 #include "webkit/plugins/ppapi/ppb_flash_message_loop_impl.h" |
| 20 #include "webkit/plugins/ppapi/ppb_graphics_3d_impl.h" | 20 #include "webkit/plugins/ppapi/ppb_graphics_3d_impl.h" |
| 21 #include "webkit/plugins/ppapi/ppb_host_resolver_private_impl.h" | |
| 22 #include "webkit/plugins/ppapi/ppb_image_data_impl.h" | 21 #include "webkit/plugins/ppapi/ppb_image_data_impl.h" |
| 23 #include "webkit/plugins/ppapi/ppb_network_monitor_private_impl.h" | 22 #include "webkit/plugins/ppapi/ppb_network_monitor_private_impl.h" |
| 24 #include "webkit/plugins/ppapi/ppb_scrollbar_impl.h" | 23 #include "webkit/plugins/ppapi/ppb_scrollbar_impl.h" |
| 25 #include "webkit/plugins/ppapi/ppb_tcp_server_socket_private_impl.h" | 24 #include "webkit/plugins/ppapi/ppb_tcp_server_socket_private_impl.h" |
| 26 #include "webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h" | 25 #include "webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h" |
| 27 #include "webkit/plugins/ppapi/ppb_url_loader_impl.h" | 26 #include "webkit/plugins/ppapi/ppb_url_loader_impl.h" |
| 28 #include "webkit/plugins/ppapi/ppb_video_decoder_impl.h" | 27 #include "webkit/plugins/ppapi/ppb_video_decoder_impl.h" |
| 29 #include "webkit/plugins/ppapi/ppb_x509_certificate_private_impl.h" | 28 #include "webkit/plugins/ppapi/ppb_x509_certificate_private_impl.h" |
| 30 #include "webkit/plugins/ppapi/resource_helper.h" | 29 #include "webkit/plugins/ppapi/resource_helper.h" |
| 31 | 30 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 return PPB_Graphics3D_Impl::Create(instance, share_context, attrib_list); | 122 return PPB_Graphics3D_Impl::Create(instance, share_context, attrib_list); |
| 124 } | 123 } |
| 125 | 124 |
| 126 PP_Resource ResourceCreationImpl::CreateGraphics3DRaw( | 125 PP_Resource ResourceCreationImpl::CreateGraphics3DRaw( |
| 127 PP_Instance instance, | 126 PP_Instance instance, |
| 128 PP_Resource share_context, | 127 PP_Resource share_context, |
| 129 const int32_t* attrib_list) { | 128 const int32_t* attrib_list) { |
| 130 return PPB_Graphics3D_Impl::CreateRaw(instance, share_context, attrib_list); | 129 return PPB_Graphics3D_Impl::CreateRaw(instance, share_context, attrib_list); |
| 131 } | 130 } |
| 132 | 131 |
| 133 PP_Resource ResourceCreationImpl::CreateHostResolverPrivate( | |
| 134 PP_Instance instance) { | |
| 135 return (new PPB_HostResolver_Private_Impl(instance))->GetReference(); | |
| 136 } | |
| 137 | |
| 138 PP_Resource ResourceCreationImpl::CreateImageData(PP_Instance instance, | 132 PP_Resource ResourceCreationImpl::CreateImageData(PP_Instance instance, |
| 139 PP_ImageDataFormat format, | 133 PP_ImageDataFormat format, |
| 140 const PP_Size& size, | 134 const PP_Size& size, |
| 141 PP_Bool init_to_zero) { | 135 PP_Bool init_to_zero) { |
| 142 return PPB_ImageData_Impl::CreatePlatform(instance, format, size, | 136 return PPB_ImageData_Impl::CreatePlatform(instance, format, size, |
| 143 init_to_zero); | 137 init_to_zero); |
| 144 } | 138 } |
| 145 | 139 |
| 146 PP_Resource ResourceCreationImpl::CreateImageDataNaCl(PP_Instance instance, | 140 PP_Resource ResourceCreationImpl::CreateImageDataNaCl(PP_Instance instance, |
| 147 PP_ImageDataFormat format, | 141 PP_ImageDataFormat format, |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 wheel_delta, wheel_ticks, scroll_by_page); | 256 wheel_delta, wheel_ticks, scroll_by_page); |
| 263 } | 257 } |
| 264 | 258 |
| 265 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( | 259 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( |
| 266 PP_Instance instance) { | 260 PP_Instance instance) { |
| 267 return PPB_X509Certificate_Private_Impl::CreateResource(instance); | 261 return PPB_X509Certificate_Private_Impl::CreateResource(instance); |
| 268 } | 262 } |
| 269 | 263 |
| 270 } // namespace ppapi | 264 } // namespace ppapi |
| 271 } // namespace webkit | 265 } // namespace webkit |
| OLD | NEW |