| Index: views/events/event.h
|
| diff --git a/views/events/event.h b/views/events/event.h
|
| index 5312ecd5fad694c824ad5f471fadf6ed5680f24a..91a4684c236b0fc4aaed532f454d8b4b4d2b5a2f 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,25 @@ 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);
|
| +
|
| + float delta_x() const { return delta_x_; }
|
| + float delta_y() const { return delta_y_; }
|
| +
|
| + private:
|
| + float delta_x_;
|
| + float delta_y_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(GestureEvent);
|
| +};
|
| +
|
| } // namespace views
|
|
|
| #endif // VIEWS_EVENTS_EVENT_H_
|
|
|