| Index: views/events/event.h
|
| diff --git a/views/events/event.h b/views/events/event.h
|
| index a7b3620b08c92ae3fe470e467892fc988b23db67..226ac0044d08bdcbee1e018d5060e52574e5ea81 100644
|
| --- a/views/events/event.h
|
| +++ b/views/events/event.h
|
| @@ -109,6 +109,7 @@ class VIEWS_EXPORT Event {
|
| }
|
|
|
| void set_type(ui::EventType type) { type_ = type; }
|
| + void set_time_stamp(base::Time time_stamp) { time_stamp_ = time_stamp; }
|
|
|
| private:
|
| void operator=(const Event&);
|
| @@ -434,6 +435,34 @@ class VIEWS_EXPORT DropTargetEvent : public LocatedEvent {
|
| DISALLOW_COPY_AND_ASSIGN(DropTargetEvent);
|
| };
|
|
|
| +////////////////////////////////////////////////////////////////////////////////
|
| +// GestureEvent class
|
| +//
|
| +////////////////////////////////////////////////////////////////////////////////
|
| +class VIEWS_EXPORT GestureEvent : public LocatedEvent {
|
| + public:
|
| + GestureEvent(ui::EventType type, int x, int y, int flags,
|
| + base::Time time_stamp, float delta_x, float delta_y);
|
| +
|
| + // Create a new GestureEvent which is identical to the provided model.
|
| + // If source / target views are provided, the model location will be converted
|
| + // from |source| coordinate system to |target| coordinate system.
|
| + GestureEvent(const GestureEvent& model, View* source, View* target);
|
| +
|
| + float delta_x() const { return delta_x_; }
|
| + float delta_y() const { return delta_y_; }
|
| +
|
| + private:
|
| + friend class internal::RootView;
|
| +
|
| + GestureEvent(const GestureEvent& model, View* root);
|
| +
|
| + float delta_x_;
|
| + float delta_y_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(GestureEvent);
|
| +};
|
| +
|
| } // namespace views
|
|
|
| #endif // VIEWS_EVENTS_EVENT_H_
|
|
|