| Index: ui/events/event.h
|
| diff --git a/ui/events/event.h b/ui/events/event.h
|
| index b2f94569944a2511f7f4b7d90afb07fcbd6b1cd5..7257f625f40299b32510fb80850b4259db5f00c0 100644
|
| --- a/ui/events/event.h
|
| +++ b/ui/events/event.h
|
| @@ -187,6 +187,11 @@ class EVENTS_EXPORT Event {
|
| return type_ == ET_MOUSEWHEEL;
|
| }
|
|
|
| + bool IsLocatedEvent() const {
|
| + return IsMouseEvent() || IsScrollEvent() || IsTouchEvent() ||
|
| + IsGestureEvent();
|
| + }
|
| +
|
| // Convenience methods to cast |this| to a GestureEvent. IsGestureEvent()
|
| // must be true as a precondition to calling these methods.
|
| GestureEvent* AsGestureEvent();
|
|
|