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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 PP_Resource share_context, | 123 PP_Resource share_context, |
124 const int32_t* attrib_list) { | 124 const int32_t* attrib_list) { |
125 return PPB_Graphics3D_Impl::CreateRaw(instance, share_context, attrib_list); | 125 return PPB_Graphics3D_Impl::CreateRaw(instance, share_context, attrib_list); |
126 } | 126 } |
127 | 127 |
128 PP_Resource ResourceCreationImpl::CreateHostResolverPrivate( | 128 PP_Resource ResourceCreationImpl::CreateHostResolverPrivate( |
129 PP_Instance instance) { | 129 PP_Instance instance) { |
130 return 0; // Not supported in-process. | 130 return 0; // Not supported in-process. |
131 } | 131 } |
132 | 132 |
133 PP_Resource ResourceCreationImpl::CreateImageData(PP_Instance instance, | 133 PP_Resource ResourceCreationImpl::CreateImageDataPlatform( |
134 PP_ImageDataFormat format, | 134 PP_Instance instance, |
135 const PP_Size* size, | 135 PP_ImageDataFormat format, |
136 PP_Bool init_to_zero) { | 136 const PP_Size* size, |
| 137 PP_Bool init_to_zero) { |
137 return PPB_ImageData_Impl::CreatePlatform(instance, format, *size, | 138 return PPB_ImageData_Impl::CreatePlatform(instance, format, *size, |
138 init_to_zero); | 139 init_to_zero); |
139 } | 140 } |
140 | 141 |
141 PP_Resource ResourceCreationImpl::CreateImageDataNaCl(PP_Instance instance, | 142 PP_Resource ResourceCreationImpl::CreateImageDataSimple( |
142 PP_ImageDataFormat format, | 143 PP_Instance instance, |
143 const PP_Size* size, | 144 PP_ImageDataFormat format, |
144 PP_Bool init_to_zero) { | 145 const PP_Size* size, |
145 return PPB_ImageData_Impl::CreateNaCl(instance, format, *size, init_to_zero); | 146 PP_Bool init_to_zero) { |
| 147 return |
| 148 PPB_ImageData_Impl::CreateSimple(instance, format, *size, init_to_zero); |
146 } | 149 } |
147 | 150 |
148 PP_Resource ResourceCreationImpl::CreateIMEInputEvent( | 151 PP_Resource ResourceCreationImpl::CreateIMEInputEvent( |
149 PP_Instance instance, | 152 PP_Instance instance, |
150 PP_InputEvent_Type type, | 153 PP_InputEvent_Type type, |
151 PP_TimeTicks time_stamp, | 154 PP_TimeTicks time_stamp, |
152 struct PP_Var text, | 155 struct PP_Var text, |
153 uint32_t segment_number, | 156 uint32_t segment_number, |
154 const uint32_t* segment_offsets, | 157 const uint32_t* segment_offsets, |
155 int32_t target_segment, | 158 int32_t target_segment, |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 wheel_delta, wheel_ticks, scroll_by_page); | 275 wheel_delta, wheel_ticks, scroll_by_page); |
273 } | 276 } |
274 | 277 |
275 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( | 278 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( |
276 PP_Instance instance) { | 279 PP_Instance instance) { |
277 return PPB_X509Certificate_Private_Impl::CreateResource(instance); | 280 return PPB_X509Certificate_Private_Impl::CreateResource(instance); |
278 } | 281 } |
279 | 282 |
280 } // namespace ppapi | 283 } // namespace ppapi |
281 } // namespace webkit | 284 } // namespace webkit |
OLD | NEW |