OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/input_event_impl.h" | 8 #include "ppapi/shared_impl/input_event_impl.h" |
9 #include "ppapi/shared_impl/var.h" | 9 #include "ppapi/shared_impl/var.h" |
10 #include "webkit/plugins/ppapi/common.h" | 10 #include "webkit/plugins/ppapi/common.h" |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 | 174 |
175 PP_Resource ResourceCreationImpl::CreateGraphics2D( | 175 PP_Resource ResourceCreationImpl::CreateGraphics2D( |
176 PP_Instance pp_instance, | 176 PP_Instance pp_instance, |
177 const PP_Size& size, | 177 const PP_Size& size, |
178 PP_Bool is_always_opaque) { | 178 PP_Bool is_always_opaque) { |
179 return PPB_Graphics2D_Impl::Create(instance_, size, is_always_opaque); | 179 return PPB_Graphics2D_Impl::Create(instance_, size, is_always_opaque); |
180 } | 180 } |
181 | 181 |
182 PP_Resource ResourceCreationImpl::CreateGraphics3D( | 182 PP_Resource ResourceCreationImpl::CreateGraphics3D( |
183 PP_Instance instance, | 183 PP_Instance instance, |
184 PP_Config3D_Dev config, | |
185 PP_Resource share_context, | 184 PP_Resource share_context, |
186 const int32_t* attrib_list) { | 185 const int32_t* attrib_list) { |
187 return PPB_Graphics3D_Impl::Create(instance_, config, share_context, | 186 return PPB_Graphics3D_Impl::Create(instance_, share_context, attrib_list); |
188 attrib_list); | |
189 } | 187 } |
190 | 188 |
191 PP_Resource ResourceCreationImpl::CreateGraphics3DRaw( | 189 PP_Resource ResourceCreationImpl::CreateGraphics3DRaw( |
192 PP_Instance instance, | 190 PP_Instance instance, |
193 PP_Config3D_Dev config, | |
194 PP_Resource share_context, | 191 PP_Resource share_context, |
195 const int32_t* attrib_list) { | 192 const int32_t* attrib_list) { |
196 return PPB_Graphics3D_Impl::CreateRaw(instance_, config, share_context, | 193 return PPB_Graphics3D_Impl::CreateRaw(instance_, share_context, attrib_list); |
197 attrib_list); | |
198 } | 194 } |
199 | 195 |
200 PP_Resource ResourceCreationImpl::CreateImageData(PP_Instance pp_instance, | 196 PP_Resource ResourceCreationImpl::CreateImageData(PP_Instance pp_instance, |
201 PP_ImageDataFormat format, | 197 PP_ImageDataFormat format, |
202 const PP_Size& size, | 198 const PP_Size& size, |
203 PP_Bool init_to_zero) { | 199 PP_Bool init_to_zero) { |
204 return PPB_ImageData_Impl::Create(instance_, format, size, init_to_zero); | 200 return PPB_ImageData_Impl::Create(instance_, format, size, init_to_zero); |
205 } | 201 } |
206 | 202 |
207 PP_Resource ResourceCreationImpl::CreateKeyboardInputEvent( | 203 PP_Resource ResourceCreationImpl::CreateKeyboardInputEvent( |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 data.event_modifiers = modifiers; | 305 data.event_modifiers = modifiers; |
310 data.wheel_delta = *wheel_delta; | 306 data.wheel_delta = *wheel_delta; |
311 data.wheel_ticks = *wheel_ticks; | 307 data.wheel_ticks = *wheel_ticks; |
312 data.wheel_scroll_by_page = PP_ToBool(scroll_by_page); | 308 data.wheel_scroll_by_page = PP_ToBool(scroll_by_page); |
313 | 309 |
314 return PPB_InputEvent_Impl::Create(instance_, data); | 310 return PPB_InputEvent_Impl::Create(instance_, data); |
315 } | 311 } |
316 | 312 |
317 } // namespace ppapi | 313 } // namespace ppapi |
318 } // namespace webkit | 314 } // namespace webkit |
OLD | NEW |