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

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
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..08d1e0cf3bd13c8e78b6030faee15e739cdd03a6 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/dev/ppb_touch_event_dev.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_Dev> touches;
+ std::vector<PP_TouchPoint_Dev> changed_touches;
+ std::vector<PP_TouchPoint_Dev> target_touches;
};
// This simple class implements the PPB_InputEvent_API in terms of the
@@ -83,6 +88,11 @@ 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 uint32_t GetTouchCount(PP_TouchListType list) OVERRIDE;
+ virtual PP_TouchPoint_Dev GetTouchByIndex(PP_TouchListType list,
+ uint32_t index) OVERRIDE;
+ virtual PP_TouchPoint_Dev GetTouchById(PP_TouchListType list,
+ uint32_t id) OVERRIDE;
// Implementations for event creation.
static PP_Resource CreateIMEInputEvent(ResourceObjectType type,

Powered by Google App Engine
This is Rietveld 408576698