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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 PPB_FileRef_Impl* res = PPB_FileRef_Impl::CreateInternal(file_system, path); | 131 PPB_FileRef_Impl* res = PPB_FileRef_Impl::CreateInternal(file_system, path); |
132 return res ? res->GetReference() : 0; | 132 return res ? res->GetReference() : 0; |
133 } | 133 } |
134 | 134 |
135 PP_Resource ResourceCreationImpl::CreateFileSystem( | 135 PP_Resource ResourceCreationImpl::CreateFileSystem( |
136 PP_Instance instance, | 136 PP_Instance instance, |
137 PP_FileSystemType type) { | 137 PP_FileSystemType type) { |
138 return PPB_FileSystem_Impl::Create(instance, type); | 138 return PPB_FileSystem_Impl::Create(instance, type); |
139 } | 139 } |
140 | 140 |
| 141 PP_Resource ResourceCreationImpl::CreateFlashDeviceID(PP_Instance instance) { |
| 142 return 0; // Not supported in-process. |
| 143 } |
| 144 |
141 PP_Resource ResourceCreationImpl::CreateFlashMenu( | 145 PP_Resource ResourceCreationImpl::CreateFlashMenu( |
142 PP_Instance instance, | 146 PP_Instance instance, |
143 const PP_Flash_Menu* menu_data) { | 147 const PP_Flash_Menu* menu_data) { |
144 return PPB_Flash_Menu_Impl::Create(instance, menu_data); | 148 return PPB_Flash_Menu_Impl::Create(instance, menu_data); |
145 } | 149 } |
146 | 150 |
147 PP_Resource ResourceCreationImpl::CreateFlashMessageLoop(PP_Instance instance) { | 151 PP_Resource ResourceCreationImpl::CreateFlashMessageLoop(PP_Instance instance) { |
148 return PPB_Flash_MessageLoop_Impl::Create(instance); | 152 return PPB_Flash_MessageLoop_Impl::Create(instance); |
149 } | 153 } |
150 | 154 |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 wheel_delta, wheel_ticks, scroll_by_page); | 311 wheel_delta, wheel_ticks, scroll_by_page); |
308 } | 312 } |
309 | 313 |
310 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( | 314 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( |
311 PP_Instance instance) { | 315 PP_Instance instance) { |
312 return PPB_X509Certificate_Private_Impl::CreateResource(instance); | 316 return PPB_X509Certificate_Private_Impl::CreateResource(instance); |
313 } | 317 } |
314 | 318 |
315 } // namespace ppapi | 319 } // namespace ppapi |
316 } // namespace webkit | 320 } // namespace webkit |
OLD | NEW |