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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 } | 112 } |
113 | 113 |
114 PP_Resource ResourceCreationImpl::CreateDirectoryReader( | 114 PP_Resource ResourceCreationImpl::CreateDirectoryReader( |
115 PP_Resource directory_ref) { | 115 PP_Resource directory_ref) { |
116 return PPB_DirectoryReader_Impl::Create(directory_ref); | 116 return PPB_DirectoryReader_Impl::Create(directory_ref); |
117 } | 117 } |
118 | 118 |
119 PP_Resource ResourceCreationImpl::CreateFileChooser( | 119 PP_Resource ResourceCreationImpl::CreateFileChooser( |
120 PP_Instance instance, | 120 PP_Instance instance, |
121 PP_FileChooserMode_Dev mode, | 121 PP_FileChooserMode_Dev mode, |
122 const char* accept_mime_types) { | 122 const char* accept_types) { |
123 return PPB_FileChooser_Impl::Create(instance, mode, accept_mime_types); | 123 return PPB_FileChooser_Impl::Create(instance, mode, accept_types); |
124 } | 124 } |
125 | 125 |
126 PP_Resource ResourceCreationImpl::CreateFileIO(PP_Instance instance) { | 126 PP_Resource ResourceCreationImpl::CreateFileIO(PP_Instance instance) { |
127 return (new PPB_FileIO_Impl(instance))->GetReference(); | 127 return (new PPB_FileIO_Impl(instance))->GetReference(); |
128 } | 128 } |
129 | 129 |
130 PP_Resource ResourceCreationImpl::CreateFileRef(PP_Resource file_system, | 130 PP_Resource ResourceCreationImpl::CreateFileRef(PP_Resource file_system, |
131 const char* path) { | 131 const char* path) { |
132 PPB_FileRef_Impl* res = PPB_FileRef_Impl::CreateInternal(file_system, path); | 132 PPB_FileRef_Impl* res = PPB_FileRef_Impl::CreateInternal(file_system, path); |
133 return res ? res->GetReference() : 0; | 133 return res ? res->GetReference() : 0; |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 wheel_delta, wheel_ticks, scroll_by_page); | 318 wheel_delta, wheel_ticks, scroll_by_page); |
319 } | 319 } |
320 | 320 |
321 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( | 321 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( |
322 PP_Instance instance) { | 322 PP_Instance instance) { |
323 return PPB_X509Certificate_Private_Impl::CreateResource(instance); | 323 return PPB_X509Certificate_Private_Impl::CreateResource(instance); |
324 } | 324 } |
325 | 325 |
326 } // namespace ppapi | 326 } // namespace ppapi |
327 } // namespace webkit | 327 } // namespace webkit |
OLD | NEW |