struct EVENTS_BASE_EXPORT GestureEventDetails {
public:
GestureEventDetails();
+ explicit GestureEventDetails(EventType type);
GestureEventDetails(EventType type, float delta_x, float delta_y);
EventType type() const { return type_; }
data.tap_count = tap_count;
}
+ void set_scale(float scale) {
+ DCHECK_GE(scale, 0.0f);
+ DCHECK_EQ(type_, ET_GESTURE_PINCH_UPDATE);
+ data.scale = scale;
+ }
+
private:
EventType type_;
union Details {