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::CreateImageData( |
134 PP_ImageDataFormat format, | 134 PP_Instance instance, |
135 const PP_Size* size, | 135 ::ppapi::PPB_ImageData_Shared::ImageDataType type, |
136 PP_Bool init_to_zero) { | 136 PP_ImageDataFormat format, |
137 return PPB_ImageData_Impl::CreatePlatform(instance, format, *size, | 137 const PP_Size* size, |
138 init_to_zero); | 138 PP_Bool init_to_zero) { |
139 } | 139 return PPB_ImageData_Impl::Create(instance, type, |
140 | 140 format, *size, init_to_zero); |
141 PP_Resource ResourceCreationImpl::CreateImageDataNaCl(PP_Instance instance, | |
142 PP_ImageDataFormat format, | |
143 const PP_Size* size, | |
144 PP_Bool init_to_zero) { | |
145 return PPB_ImageData_Impl::CreateNaCl(instance, format, *size, init_to_zero); | |
146 } | 141 } |
147 | 142 |
148 PP_Resource ResourceCreationImpl::CreateIMEInputEvent( | 143 PP_Resource ResourceCreationImpl::CreateIMEInputEvent( |
149 PP_Instance instance, | 144 PP_Instance instance, |
150 PP_InputEvent_Type type, | 145 PP_InputEvent_Type type, |
151 PP_TimeTicks time_stamp, | 146 PP_TimeTicks time_stamp, |
152 struct PP_Var text, | 147 struct PP_Var text, |
153 uint32_t segment_number, | 148 uint32_t segment_number, |
154 const uint32_t* segment_offsets, | 149 const uint32_t* segment_offsets, |
155 int32_t target_segment, | 150 int32_t target_segment, |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 wheel_delta, wheel_ticks, scroll_by_page); | 279 wheel_delta, wheel_ticks, scroll_by_page); |
285 } | 280 } |
286 | 281 |
287 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( | 282 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( |
288 PP_Instance instance) { | 283 PP_Instance instance) { |
289 return PPB_X509Certificate_Private_Impl::CreateResource(instance); | 284 return PPB_X509Certificate_Private_Impl::CreateResource(instance); |
290 } | 285 } |
291 | 286 |
292 } // namespace ppapi | 287 } // namespace ppapi |
293 } // namespace webkit | 288 } // namespace webkit |
OLD | NEW |