| 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 cdebad72f71bb7ec3d947bd52a940f5956d14ff7..a6113e9f1cde930bd647b1baf4639df12ea0ec3f 100644
|
| --- a/ppapi/shared_impl/ppb_input_event_shared.h
|
| +++ b/ppapi/shared_impl/ppb_input_event_shared.h
|
| @@ -18,6 +18,11 @@
|
|
|
| namespace ppapi {
|
|
|
| +struct TouchPointWithTilt {
|
| + PP_TouchPoint touch;
|
| + PP_FloatPoint tilt;
|
| +};
|
| +
|
| // IF YOU ADD STUFF TO THIS CLASS
|
| // ==============================
|
| // Be sure to add it to the STRUCT_TRAITS at the top of ppapi_messages.h
|
| @@ -55,9 +60,9 @@ struct PPAPI_SHARED_EXPORT InputEventData {
|
| 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;
|
| + std::vector<TouchPointWithTilt> touches;
|
| + std::vector<TouchPointWithTilt> changed_touches;
|
| + std::vector<TouchPointWithTilt> target_touches;
|
| };
|
|
|
| // This simple class implements the PPB_InputEvent_API in terms of the
|
| @@ -97,6 +102,9 @@ class PPAPI_SHARED_EXPORT PPB_InputEvent_Shared
|
| uint32_t GetTouchCount(PP_TouchListType list) override;
|
| PP_TouchPoint GetTouchByIndex(PP_TouchListType list, uint32_t index) override;
|
| PP_TouchPoint GetTouchById(PP_TouchListType list, uint32_t id) override;
|
| + PP_FloatPoint GetTouchTiltByIndex(PP_TouchListType list,
|
| + uint32_t index) override;
|
| + PP_FloatPoint GetTouchTiltById(PP_TouchListType list, uint32_t id) override;
|
|
|
| // Implementations for event creation.
|
| static PP_Resource CreateIMEInputEvent(ResourceObjectType type,
|
|
|