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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 | 167 |
168 PP_Resource ResourceCreationImpl::CreateHostResolverPrivate( | 168 PP_Resource ResourceCreationImpl::CreateHostResolverPrivate( |
169 PP_Instance instance) { | 169 PP_Instance instance) { |
170 return (new PPB_HostResolver_Private_Impl(instance))->GetReference(); | 170 return (new PPB_HostResolver_Private_Impl(instance))->GetReference(); |
171 } | 171 } |
172 | 172 |
173 PP_Resource ResourceCreationImpl::CreateImageData(PP_Instance instance, | 173 PP_Resource ResourceCreationImpl::CreateImageData(PP_Instance instance, |
174 PP_ImageDataFormat format, | 174 PP_ImageDataFormat format, |
175 const PP_Size& size, | 175 const PP_Size& size, |
176 PP_Bool init_to_zero) { | 176 PP_Bool init_to_zero) { |
177 return PPB_ImageData_Impl::Create(instance, format, size, init_to_zero); | 177 return PPB_ImageData_Impl::CreatePlatform(instance, format, size, |
| 178 init_to_zero); |
| 179 } |
| 180 |
| 181 PP_Resource ResourceCreationImpl::CreateImageDataNaCl(PP_Instance instance, |
| 182 PP_ImageDataFormat format, |
| 183 const PP_Size& size, |
| 184 PP_Bool init_to_zero) { |
| 185 return PPB_ImageData_Impl::CreateNaCl(instance, format, size, init_to_zero); |
178 } | 186 } |
179 | 187 |
180 PP_Resource ResourceCreationImpl::CreateIMEInputEvent( | 188 PP_Resource ResourceCreationImpl::CreateIMEInputEvent( |
181 PP_Instance instance, | 189 PP_Instance instance, |
182 PP_InputEvent_Type type, | 190 PP_InputEvent_Type type, |
183 PP_TimeTicks time_stamp, | 191 PP_TimeTicks time_stamp, |
184 struct PP_Var text, | 192 struct PP_Var text, |
185 uint32_t segment_number, | 193 uint32_t segment_number, |
186 const uint32_t* segment_offsets, | 194 const uint32_t* segment_offsets, |
187 int32_t target_segment, | 195 int32_t target_segment, |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 wheel_delta, wheel_ticks, scroll_by_page); | 320 wheel_delta, wheel_ticks, scroll_by_page); |
313 } | 321 } |
314 | 322 |
315 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( | 323 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( |
316 PP_Instance instance) { | 324 PP_Instance instance) { |
317 return PPB_X509Certificate_Private_Impl::CreateResource(instance); | 325 return PPB_X509Certificate_Private_Impl::CreateResource(instance); |
318 } | 326 } |
319 | 327 |
320 } // namespace ppapi | 328 } // namespace ppapi |
321 } // namespace webkit | 329 } // namespace webkit |
OLD | NEW |