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

Unified Diff: ppapi/shared_impl/ppb_input_event_shared.h

Issue 10543159: ppapi: Add support for 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | ppapi/shared_impl/ppb_input_event_shared.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/ppb_input_event_shared.h
diff --git a/ppapi/shared_impl/ppb_input_event_shared.h b/ppapi/shared_impl/ppb_input_event_shared.h
index 74108b3eb00f6335bab535cba17c528bf2d3a2c8..2518e9e3913e125928f3273d20c8406a187f78f0 100644
--- a/ppapi/shared_impl/ppb_input_event_shared.h
+++ b/ppapi/shared_impl/ppb_input_event_shared.h
@@ -10,6 +10,7 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
+#include "ppapi/c/ppb_input_event.h"
#include "ppapi/shared_impl/resource.h"
#include "ppapi/thunk/ppb_input_event_api.h"
@@ -48,6 +49,10 @@ struct PPAPI_SHARED_EXPORT InputEventData {
int32_t composition_target_segment;
uint32_t composition_selection_start;
uint32_t composition_selection_end;
+
+ std::vector<PP_TouchPoint> touches;
+ std::vector<PP_TouchPoint> changed_touches;
+ std::vector<PP_TouchPoint> target_touches;
};
// This simple class implements the PPB_InputEvent_API in terms of the
@@ -83,6 +88,13 @@ class PPAPI_SHARED_EXPORT PPB_InputEvent_Shared
virtual uint32_t GetIMESegmentOffset(uint32_t index) OVERRIDE;
virtual int32_t GetIMETargetSegment() OVERRIDE;
virtual void GetIMESelection(uint32_t* start, uint32_t* end) OVERRIDE;
+ virtual void AddTouchPoint(PP_TouchListType list,
+ const PP_TouchPoint& point) OVERRIDE;
+ virtual uint32_t GetTouchCount(PP_TouchListType list) OVERRIDE;
+ virtual PP_TouchPoint GetTouchByIndex(PP_TouchListType list,
+ uint32_t index) OVERRIDE;
+ virtual PP_TouchPoint GetTouchById(PP_TouchListType list,
+ uint32_t id) OVERRIDE;
// Implementations for event creation.
static PP_Resource CreateIMEInputEvent(ResourceObjectType type,
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | ppapi/shared_impl/ppb_input_event_shared.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698