| 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" |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 void* user_data) { | 201 void* user_data) { |
| 202 return PPB_NetworkMonitor_Private_Impl::Create(instance, callback, user_data); | 202 return PPB_NetworkMonitor_Private_Impl::Create(instance, callback, user_data); |
| 203 } | 203 } |
| 204 | 204 |
| 205 PP_Resource ResourceCreationImpl::CreateScrollbar(PP_Instance instance, | 205 PP_Resource ResourceCreationImpl::CreateScrollbar(PP_Instance instance, |
| 206 PP_Bool vertical) { | 206 PP_Bool vertical) { |
| 207 return PPB_Scrollbar_Impl::Create(instance, PP_ToBool(vertical)); | 207 return PPB_Scrollbar_Impl::Create(instance, PP_ToBool(vertical)); |
| 208 } | 208 } |
| 209 | 209 |
| 210 PP_Resource ResourceCreationImpl::CreateTalk(PP_Instance /* instance */) { | 210 PP_Resource ResourceCreationImpl::CreateTalk(PP_Instance /* instance */) { |
| 211 // Not implemented in-process. | 211 return 0; // Not supported in-process. |
| 212 return 0; | |
| 213 } | 212 } |
| 214 | 213 |
| 215 PP_Resource ResourceCreationImpl::CreateResourceArray( | 214 PP_Resource ResourceCreationImpl::CreateResourceArray( |
| 216 PP_Instance instance, | 215 PP_Instance instance, |
| 217 const PP_Resource elements[], | 216 const PP_Resource elements[], |
| 218 uint32_t size) { | 217 uint32_t size) { |
| 219 PPB_ResourceArray_Shared* object = new PPB_ResourceArray_Shared( | 218 PPB_ResourceArray_Shared* object = new PPB_ResourceArray_Shared( |
| 220 ::ppapi::OBJECT_IS_IMPL, instance, elements, size); | 219 ::ppapi::OBJECT_IS_IMPL, instance, elements, size); |
| 221 return object->GetReference(); | 220 return object->GetReference(); |
| 222 } | 221 } |
| (...skipping 19 matching lines...) Expand all Loading... |
| 242 return 0; // VideoCapture is not supported in process now. | 241 return 0; // VideoCapture is not supported in process now. |
| 243 } | 242 } |
| 244 | 243 |
| 245 PP_Resource ResourceCreationImpl::CreateVideoDecoder( | 244 PP_Resource ResourceCreationImpl::CreateVideoDecoder( |
| 246 PP_Instance instance, | 245 PP_Instance instance, |
| 247 PP_Resource graphics3d_id, | 246 PP_Resource graphics3d_id, |
| 248 PP_VideoDecoder_Profile profile) { | 247 PP_VideoDecoder_Profile profile) { |
| 249 return PPB_VideoDecoder_Impl::Create(instance, graphics3d_id, profile); | 248 return PPB_VideoDecoder_Impl::Create(instance, graphics3d_id, profile); |
| 250 } | 249 } |
| 251 | 250 |
| 251 PP_Resource ResourceCreationImpl::CreateVideoDestination( |
| 252 PP_Instance instance) { |
| 253 return 0; // Not supported in-process. |
| 254 } |
| 255 |
| 256 PP_Resource ResourceCreationImpl::CreateVideoSource( |
| 257 PP_Instance instance) { |
| 258 return 0; // Not supported in-process. |
| 259 } |
| 260 |
| 252 PP_Resource ResourceCreationImpl::CreateWheelInputEvent( | 261 PP_Resource ResourceCreationImpl::CreateWheelInputEvent( |
| 253 PP_Instance instance, | 262 PP_Instance instance, |
| 254 PP_TimeTicks time_stamp, | 263 PP_TimeTicks time_stamp, |
| 255 uint32_t modifiers, | 264 uint32_t modifiers, |
| 256 const PP_FloatPoint* wheel_delta, | 265 const PP_FloatPoint* wheel_delta, |
| 257 const PP_FloatPoint* wheel_ticks, | 266 const PP_FloatPoint* wheel_ticks, |
| 258 PP_Bool scroll_by_page) { | 267 PP_Bool scroll_by_page) { |
| 259 return PPB_InputEvent_Shared::CreateWheelInputEvent( | 268 return PPB_InputEvent_Shared::CreateWheelInputEvent( |
| 260 ::ppapi::OBJECT_IS_IMPL, instance, time_stamp, modifiers, | 269 ::ppapi::OBJECT_IS_IMPL, instance, time_stamp, modifiers, |
| 261 wheel_delta, wheel_ticks, scroll_by_page); | 270 wheel_delta, wheel_ticks, scroll_by_page); |
| 262 } | 271 } |
| 263 | 272 |
| 264 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( | 273 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( |
| 265 PP_Instance instance) { | 274 PP_Instance instance) { |
| 266 return PPB_X509Certificate_Private_Impl::CreateResource(instance); | 275 return PPB_X509Certificate_Private_Impl::CreateResource(instance); |
| 267 } | 276 } |
| 268 | 277 |
| 269 } // namespace ppapi | 278 } // namespace ppapi |
| 270 } // namespace webkit | 279 } // namespace webkit |
| OLD | NEW |