Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Side by Side Diff: webkit/plugins/ppapi/resource_creation_impl.cc

Issue 10634017: ppapi: Add ResourceCreationAPI::CreateTouchInputEvent for creating touch-events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/plugins/ppapi/resource_creation_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/resource_creation_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698