| 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 "content/renderer/pepper/resource_creation_impl.h" | 5 #include "content/renderer/pepper/resource_creation_impl.h" |
| 6 | 6 |
| 7 #include "content/renderer/pepper/common.h" | 7 #include "content/renderer/pepper/common.h" |
| 8 #include "content/renderer/pepper/ppb_audio_impl.h" | 8 #include "content/renderer/pepper/ppb_audio_impl.h" |
| 9 #include "content/renderer/pepper/ppb_broker_impl.h" | 9 #include "content/renderer/pepper/ppb_broker_impl.h" |
| 10 #include "content/renderer/pepper/ppb_buffer_impl.h" | 10 #include "content/renderer/pepper/ppb_buffer_impl.h" |
| 11 #include "content/renderer/pepper/ppb_flash_message_loop_impl.h" | 11 #include "content/renderer/pepper/ppb_flash_message_loop_impl.h" |
| 12 #include "content/renderer/pepper/ppb_graphics_3d_impl.h" | 12 #include "content/renderer/pepper/ppb_graphics_3d_impl.h" |
| 13 #include "content/renderer/pepper/ppb_image_data_impl.h" | 13 #include "content/renderer/pepper/ppb_image_data_impl.h" |
| 14 #include "content/renderer/pepper/ppb_scrollbar_impl.h" | 14 #include "content/renderer/pepper/ppb_scrollbar_impl.h" |
| 15 #include "content/renderer/pepper/ppb_video_decoder_impl.h" | 15 #include "content/renderer/pepper/ppb_video_decoder_impl.h" |
| 16 #include "ppapi/c/pp_size.h" | 16 #include "ppapi/c/pp_size.h" |
| 17 #include "ppapi/shared_impl/ppb_audio_config_shared.h" | 17 #include "ppapi/shared_impl/ppb_audio_config_shared.h" |
| 18 #include "ppapi/shared_impl/ppb_audio_shared.h" | 18 #include "ppapi/shared_impl/ppb_audio_shared.h" |
| 19 #include "ppapi/shared_impl/ppb_image_data_shared.h" | 19 #include "ppapi/shared_impl/ppb_image_data_shared.h" |
| 20 #include "ppapi/shared_impl/ppb_input_event_shared.h" | 20 #include "ppapi/shared_impl/ppb_input_event_shared.h" |
| 21 #include "ppapi/shared_impl/ppb_resource_array_shared.h" | |
| 22 #include "ppapi/shared_impl/var.h" | 21 #include "ppapi/shared_impl/var.h" |
| 23 | 22 |
| 24 using ppapi::InputEventData; | 23 using ppapi::InputEventData; |
| 25 using ppapi::PPB_InputEvent_Shared; | 24 using ppapi::PPB_InputEvent_Shared; |
| 26 using ppapi::PPB_ResourceArray_Shared; | |
| 27 using ppapi::StringVar; | 25 using ppapi::StringVar; |
| 28 | 26 |
| 29 namespace content { | 27 namespace content { |
| 30 | 28 |
| 31 ResourceCreationImpl::ResourceCreationImpl(PepperPluginInstanceImpl* instance) { | 29 ResourceCreationImpl::ResourceCreationImpl(PepperPluginInstanceImpl* instance) { |
| 32 } | 30 } |
| 33 | 31 |
| 34 ResourceCreationImpl::~ResourceCreationImpl() { | 32 ResourceCreationImpl::~ResourceCreationImpl() { |
| 35 } | 33 } |
| 36 | 34 |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 | 226 |
| 229 PP_Resource ResourceCreationImpl::CreateScrollbar(PP_Instance instance, | 227 PP_Resource ResourceCreationImpl::CreateScrollbar(PP_Instance instance, |
| 230 PP_Bool vertical) { | 228 PP_Bool vertical) { |
| 231 return PPB_Scrollbar_Impl::Create(instance, PP_ToBool(vertical)); | 229 return PPB_Scrollbar_Impl::Create(instance, PP_ToBool(vertical)); |
| 232 } | 230 } |
| 233 | 231 |
| 234 PP_Resource ResourceCreationImpl::CreateTalk(PP_Instance /* instance */) { | 232 PP_Resource ResourceCreationImpl::CreateTalk(PP_Instance /* instance */) { |
| 235 return 0; // Not supported in-process. | 233 return 0; // Not supported in-process. |
| 236 } | 234 } |
| 237 | 235 |
| 238 PP_Resource ResourceCreationImpl::CreateResourceArray( | |
| 239 PP_Instance instance, | |
| 240 const PP_Resource elements[], | |
| 241 uint32_t size) { | |
| 242 PPB_ResourceArray_Shared* object = new PPB_ResourceArray_Shared( | |
| 243 ppapi::OBJECT_IS_IMPL, instance, elements, size); | |
| 244 return object->GetReference(); | |
| 245 } | |
| 246 | |
| 247 PP_Resource ResourceCreationImpl::CreateTCPServerSocketPrivate( | 236 PP_Resource ResourceCreationImpl::CreateTCPServerSocketPrivate( |
| 248 PP_Instance instance) { | 237 PP_Instance instance) { |
| 249 return 0; // Not supported in-process. | 238 return 0; // Not supported in-process. |
| 250 } | 239 } |
| 251 | 240 |
| 252 PP_Resource ResourceCreationImpl::CreateTCPSocket1_0(PP_Instance instance) { | 241 PP_Resource ResourceCreationImpl::CreateTCPSocket1_0(PP_Instance instance) { |
| 253 return 0; // Not supported in-process. | 242 return 0; // Not supported in-process. |
| 254 } | 243 } |
| 255 | 244 |
| 256 PP_Resource ResourceCreationImpl::CreateTCPSocket(PP_Instance instance) { | 245 PP_Resource ResourceCreationImpl::CreateTCPSocket(PP_Instance instance) { |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 ppapi::OBJECT_IS_IMPL, instance, time_stamp, modifiers, | 290 ppapi::OBJECT_IS_IMPL, instance, time_stamp, modifiers, |
| 302 wheel_delta, wheel_ticks, scroll_by_page); | 291 wheel_delta, wheel_ticks, scroll_by_page); |
| 303 } | 292 } |
| 304 | 293 |
| 305 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( | 294 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( |
| 306 PP_Instance instance) { | 295 PP_Instance instance) { |
| 307 return 0; // Not supported in-process. | 296 return 0; // Not supported in-process. |
| 308 } | 297 } |
| 309 | 298 |
| 310 } // namespace content | 299 } // namespace content |
| OLD | NEW |