| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 return res ? res->GetReference() : 0; | 83 return res ? res->GetReference() : 0; |
| 84 } | 84 } |
| 85 | 85 |
| 86 PP_Resource ResourceCreationImpl::CreateFileRef( | 86 PP_Resource ResourceCreationImpl::CreateFileRef( |
| 87 const ::ppapi::PPB_FileRef_CreateInfo& serialized) { | 87 const ::ppapi::PPB_FileRef_CreateInfo& serialized) { |
| 88 // When we're in-process, the host resource in the create info *is* the | 88 // When we're in-process, the host resource in the create info *is* the |
| 89 // resource, so we don't need to do anything. | 89 // resource, so we don't need to do anything. |
| 90 return serialized.resource.host_resource(); | 90 return serialized.resource.host_resource(); |
| 91 } | 91 } |
| 92 | 92 |
| 93 PP_Resource ResourceCreationImpl::CreateFlashDeviceID(PP_Instance instance) { | 93 PP_Resource ResourceCreationImpl::CreateFlashDRM(PP_Instance instance) { |
| 94 return 0; // Not supported in-process. | 94 return 0; // Not supported in-process. |
| 95 } | 95 } |
| 96 | 96 |
| 97 PP_Resource ResourceCreationImpl::CreateFlashFontFile( | 97 PP_Resource ResourceCreationImpl::CreateFlashFontFile( |
| 98 PP_Instance instance, | 98 PP_Instance instance, |
| 99 const PP_BrowserFont_Trusted_Description* description, | 99 const PP_BrowserFont_Trusted_Description* description, |
| 100 PP_PrivateFontCharset charset) { | 100 PP_PrivateFontCharset charset) { |
| 101 return 0; // Not supported in-process. | 101 return 0; // Not supported in-process. |
| 102 } | 102 } |
| 103 | 103 |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 wheel_delta, wheel_ticks, scroll_by_page); | 272 wheel_delta, wheel_ticks, scroll_by_page); |
| 273 } | 273 } |
| 274 | 274 |
| 275 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( | 275 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( |
| 276 PP_Instance instance) { | 276 PP_Instance instance) { |
| 277 return PPB_X509Certificate_Private_Impl::CreateResource(instance); | 277 return PPB_X509Certificate_Private_Impl::CreateResource(instance); |
| 278 } | 278 } |
| 279 | 279 |
| 280 } // namespace ppapi | 280 } // namespace ppapi |
| 281 } // namespace webkit | 281 } // namespace webkit |
| OLD | NEW |