| 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" |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 void* user_data) { | 249 void* user_data) { |
| 250 NOTIMPLEMENTED(); | 250 NOTIMPLEMENTED(); |
| 251 return 0; | 251 return 0; |
| 252 } | 252 } |
| 253 | 253 |
| 254 PP_Resource ResourceCreationImpl::CreateScrollbar(PP_Instance instance, | 254 PP_Resource ResourceCreationImpl::CreateScrollbar(PP_Instance instance, |
| 255 PP_Bool vertical) { | 255 PP_Bool vertical) { |
| 256 return PPB_Scrollbar_Impl::Create(instance, PP_ToBool(vertical)); | 256 return PPB_Scrollbar_Impl::Create(instance, PP_ToBool(vertical)); |
| 257 } | 257 } |
| 258 | 258 |
| 259 PP_Resource ResourceCreationImpl::CreateTalk(PP_Instance /* instance */) { |
| 260 // Not implemented in-process. |
| 261 return 0; |
| 262 } |
| 263 |
| 259 PP_Resource ResourceCreationImpl::CreateResourceArray( | 264 PP_Resource ResourceCreationImpl::CreateResourceArray( |
| 260 PP_Instance instance, | 265 PP_Instance instance, |
| 261 const PP_Resource elements[], | 266 const PP_Resource elements[], |
| 262 uint32_t size) { | 267 uint32_t size) { |
| 263 PPB_ResourceArray_Shared* object = new PPB_ResourceArray_Shared( | 268 PPB_ResourceArray_Shared* object = new PPB_ResourceArray_Shared( |
| 264 ::ppapi::OBJECT_IS_IMPL, instance, elements, size); | 269 ::ppapi::OBJECT_IS_IMPL, instance, elements, size); |
| 265 return object->GetReference(); | 270 return object->GetReference(); |
| 266 } | 271 } |
| 267 | 272 |
| 268 PP_Resource ResourceCreationImpl::CreateTCPServerSocketPrivate( | 273 PP_Resource ResourceCreationImpl::CreateTCPServerSocketPrivate( |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 data.wheel_delta = *wheel_delta; | 341 data.wheel_delta = *wheel_delta; |
| 337 data.wheel_ticks = *wheel_ticks; | 342 data.wheel_ticks = *wheel_ticks; |
| 338 data.wheel_scroll_by_page = PP_ToBool(scroll_by_page); | 343 data.wheel_scroll_by_page = PP_ToBool(scroll_by_page); |
| 339 | 344 |
| 340 return (new PPB_InputEvent_Shared(::ppapi::OBJECT_IS_IMPL, | 345 return (new PPB_InputEvent_Shared(::ppapi::OBJECT_IS_IMPL, |
| 341 instance, data))->GetReference(); | 346 instance, data))->GetReference(); |
| 342 } | 347 } |
| 343 | 348 |
| 344 } // namespace ppapi | 349 } // namespace ppapi |
| 345 } // namespace webkit | 350 } // namespace webkit |
| OLD | NEW |