5 #ifndef PPAPI_CPP_INPUT_EVENT_H_
6 #define PPAPI_CPP_INPUT_EVENT_H_
13 #include "ppapi/c/ppb_input_event.h"
15 #include "ppapi/cpp/touch_point.h"
58 explicit InputEvent(PP_Resource input_event_resource);
67 PP_InputEvent_Type
GetType()
const;
132 PP_InputEvent_Type type,
133 PP_TimeTicks time_stamp,
135 PP_InputEvent_MouseButton mouse_button,
136 const Point& mouse_position,
138 const Point& mouse_movement);
145 PP_InputEvent_MouseButton
GetButton()
const;
157 int32_t GetClickCount()
const;
201 PP_TimeTicks time_stamp,
205 bool scroll_by_page);
287 PP_InputEvent_Type type,
288 PP_TimeTicks time_stamp,
291 const Var& character_text);
317 PP_InputEvent_Type type,
318 PP_TimeTicks time_stamp,
321 const Var& character_text,
365 PP_InputEvent_Type type,
366 PP_TimeTicks time_stamp,
370 void AddTouchPoint(PP_TouchListType list, PP_TouchPoint point);
418 PP_InputEvent_Type type,
419 PP_TimeTicks time_stamp,
421 const std::vector<uint32_t>& segment_offsets,
422 int32_t target_segment,
423 const std::pair<uint32_t, uint32_t>& selection);
467 void GetSelection(uint32_t* start, uint32_t* end)
const;
471 #endif // PPAPI_CPP_INPUT_EVENT_H_
A 2 dimensional point with 0,0 being the upper-left starting coordinate.
Definition: point.h:18
Definition: instance_handle.h:44
Wrapper class for PP_TouchPoint.
Definition: touch_point.h:17
A generic type used for passing data types between the module and the page.
Definition: var.h:23
A reference counted module resource.
Definition: resource.h:20