| 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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 data.event_modifiers = modifiers; | 253 data.event_modifiers = modifiers; |
| 254 data.mouse_button = mouse_button; | 254 data.mouse_button = mouse_button; |
| 255 data.mouse_position = *mouse_position; | 255 data.mouse_position = *mouse_position; |
| 256 data.mouse_click_count = click_count; | 256 data.mouse_click_count = click_count; |
| 257 | 257 |
| 258 return PPB_InputEvent_Impl::Create(instance_, data); | 258 return PPB_InputEvent_Impl::Create(instance_, data); |
| 259 } | 259 } |
| 260 | 260 |
| 261 PP_Resource ResourceCreationImpl::CreateScrollbar(PP_Instance instance, | 261 PP_Resource ResourceCreationImpl::CreateScrollbar(PP_Instance instance, |
| 262 PP_Bool vertical) { | 262 PP_Bool vertical) { |
| 263 return ReturnResource(new PPB_Scrollbar_Impl(instance_, PP_ToBool(vertical))); | 263 return PPB_Scrollbar_Impl::Create(instance_, PP_ToBool(vertical)); |
| 264 } | 264 } |
| 265 | 265 |
| 266 PP_Resource ResourceCreationImpl::CreateSurface3D( | 266 PP_Resource ResourceCreationImpl::CreateSurface3D( |
| 267 PP_Instance instance, | 267 PP_Instance instance, |
| 268 PP_Config3D_Dev config, | 268 PP_Config3D_Dev config, |
| 269 const int32_t* attrib_list) { | 269 const int32_t* attrib_list) { |
| 270 return PPB_Surface3D_Impl::Create(instance_, config, attrib_list); | 270 return PPB_Surface3D_Impl::Create(instance_, config, attrib_list); |
| 271 } | 271 } |
| 272 | 272 |
| 273 PP_Resource ResourceCreationImpl::CreateTransport(PP_Instance instance, | 273 PP_Resource ResourceCreationImpl::CreateTransport(PP_Instance instance, |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 data.event_modifiers = modifiers; | 309 data.event_modifiers = modifiers; |
| 310 data.wheel_delta = *wheel_delta; | 310 data.wheel_delta = *wheel_delta; |
| 311 data.wheel_ticks = *wheel_ticks; | 311 data.wheel_ticks = *wheel_ticks; |
| 312 data.wheel_scroll_by_page = PP_ToBool(scroll_by_page); | 312 data.wheel_scroll_by_page = PP_ToBool(scroll_by_page); |
| 313 | 313 |
| 314 return PPB_InputEvent_Impl::Create(instance_, data); | 314 return PPB_InputEvent_Impl::Create(instance_, data); |
| 315 } | 315 } |
| 316 | 316 |
| 317 } // namespace ppapi | 317 } // namespace ppapi |
| 318 } // namespace webkit | 318 } // namespace webkit |
| OLD | NEW |