| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 | 68 |
| 69 PP_Resource ResourceCreationImpl::CreateBroker(PP_Instance instance) { | 69 PP_Resource ResourceCreationImpl::CreateBroker(PP_Instance instance) { |
| 70 return (new PPB_Broker_Impl(instance))->GetReference(); | 70 return (new PPB_Broker_Impl(instance))->GetReference(); |
| 71 } | 71 } |
| 72 | 72 |
| 73 PP_Resource ResourceCreationImpl::CreateBuffer(PP_Instance instance, | 73 PP_Resource ResourceCreationImpl::CreateBuffer(PP_Instance instance, |
| 74 uint32_t size) { | 74 uint32_t size) { |
| 75 return PPB_Buffer_Impl::Create(instance, size); | 75 return PPB_Buffer_Impl::Create(instance, size); |
| 76 } | 76 } |
| 77 | 77 |
| 78 PP_Resource ResourceCreationImpl::CreateDirectoryReader( | |
| 79 PP_Instance instance, | |
| 80 PP_Resource directory_ref) { | |
| 81 return 0; // Not supported in-process. | |
| 82 } | |
| 83 | |
| 84 PP_Resource ResourceCreationImpl::CreateFileRef( | 78 PP_Resource ResourceCreationImpl::CreateFileRef( |
| 85 PP_Instance instance, | 79 PP_Instance instance, |
| 86 PP_Resource file_system, | 80 PP_Resource file_system, |
| 87 const char* path) { | 81 const char* path) { |
| 88 PPB_FileRef_Impl* res = PPB_FileRef_Impl::CreateInternal( | 82 PPB_FileRef_Impl* res = PPB_FileRef_Impl::CreateInternal( |
| 89 instance, file_system, path); | 83 instance, file_system, path); |
| 90 return res ? res->GetReference() : 0; | 84 return res ? res->GetReference() : 0; |
| 91 } | 85 } |
| 92 | 86 |
| 93 PP_Resource ResourceCreationImpl::CreateFlashDeviceID(PP_Instance instance) { | 87 PP_Resource ResourceCreationImpl::CreateFlashDeviceID(PP_Instance instance) { |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 wheel_delta, wheel_ticks, scroll_by_page); | 255 wheel_delta, wheel_ticks, scroll_by_page); |
| 262 } | 256 } |
| 263 | 257 |
| 264 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( | 258 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( |
| 265 PP_Instance instance) { | 259 PP_Instance instance) { |
| 266 return PPB_X509Certificate_Private_Impl::CreateResource(instance); | 260 return PPB_X509Certificate_Private_Impl::CreateResource(instance); |
| 267 } | 261 } |
| 268 | 262 |
| 269 } // namespace ppapi | 263 } // namespace ppapi |
| 270 } // namespace webkit | 264 } // namespace webkit |
| OLD | NEW |