| 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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 uint32_t modifiers, | 219 uint32_t modifiers, |
| 220 PP_InputEvent_MouseButton mouse_button, | 220 PP_InputEvent_MouseButton mouse_button, |
| 221 const PP_Point* mouse_position, | 221 const PP_Point* mouse_position, |
| 222 int32_t click_count, | 222 int32_t click_count, |
| 223 const PP_Point* mouse_movement) { | 223 const PP_Point* mouse_movement) { |
| 224 return PPB_InputEvent_Shared::CreateMouseInputEvent( | 224 return PPB_InputEvent_Shared::CreateMouseInputEvent( |
| 225 ::ppapi::OBJECT_IS_IMPL, instance, type, time_stamp, modifiers, | 225 ::ppapi::OBJECT_IS_IMPL, instance, type, time_stamp, modifiers, |
| 226 mouse_button, mouse_position, click_count, mouse_movement); | 226 mouse_button, mouse_position, click_count, mouse_movement); |
| 227 } | 227 } |
| 228 | 228 |
| 229 PP_Resource ResourceCreationImpl::CreateTouchInputEvent( |
| 230 PP_Instance instance, |
| 231 PP_InputEvent_Type type, |
| 232 PP_TimeTicks time_stamp, |
| 233 uint32_t modifiers) { |
| 234 return PPB_InputEvent_Shared::CreateTouchInputEvent( |
| 235 ::ppapi::OBJECT_IS_IMPL, instance, type, time_stamp, modifiers); |
| 236 } |
| 237 |
| 229 PP_Resource ResourceCreationImpl::CreateNetworkMonitor( | 238 PP_Resource ResourceCreationImpl::CreateNetworkMonitor( |
| 230 PP_Instance instance, | 239 PP_Instance instance, |
| 231 PPB_NetworkMonitor_Callback callback, | 240 PPB_NetworkMonitor_Callback callback, |
| 232 void* user_data) { | 241 void* user_data) { |
| 233 return PPB_NetworkMonitor_Private_Impl::Create(instance, callback, user_data); | 242 return PPB_NetworkMonitor_Private_Impl::Create(instance, callback, user_data); |
| 234 } | 243 } |
| 235 | 244 |
| 236 PP_Resource ResourceCreationImpl::CreateScrollbar(PP_Instance instance, | 245 PP_Resource ResourceCreationImpl::CreateScrollbar(PP_Instance instance, |
| 237 PP_Bool vertical) { | 246 PP_Bool vertical) { |
| 238 return PPB_Scrollbar_Impl::Create(instance, PP_ToBool(vertical)); | 247 return PPB_Scrollbar_Impl::Create(instance, PP_ToBool(vertical)); |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 wheel_delta, wheel_ticks, scroll_by_page); | 320 wheel_delta, wheel_ticks, scroll_by_page); |
| 312 } | 321 } |
| 313 | 322 |
| 314 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( | 323 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( |
| 315 PP_Instance instance) { | 324 PP_Instance instance) { |
| 316 return PPB_X509Certificate_Private_Impl::CreateResource(instance); | 325 return PPB_X509Certificate_Private_Impl::CreateResource(instance); |
| 317 } | 326 } |
| 318 | 327 |
| 319 } // namespace ppapi | 328 } // namespace ppapi |
| 320 } // namespace webkit | 329 } // namespace webkit |
| OLD | NEW |