Index: ui/views/events/event.h |
diff --git a/ui/views/events/event.h b/ui/views/events/event.h |
index 433d5cfd74c9ece7d8cd5e507db4a95ea383d53b..e64ad817e6ad4eacd706e1e9f59d07ba5a70f54e 100644 |
--- a/ui/views/events/event.h |
+++ b/ui/views/events/event.h |
@@ -438,6 +438,7 @@ class VIEWS_EXPORT GestureEvent : public LocatedEvent, |
private: |
friend class internal::RootView; |
+ friend class GestureEventForTest; |
GestureEvent(const GestureEvent& model, View* root); |
@@ -452,6 +453,9 @@ class VIEWS_EXPORT GestureEvent : public LocatedEvent, |
class VIEWS_EXPORT GestureEventForTest : public GestureEvent { |
public: |
GestureEventForTest(ui::EventType type, int x, int y, int flags); |
+ void set_details(const ui::GestureEventDetails details) { |
+ details_ = details; |
+ } |
private: |
DISALLOW_COPY_AND_ASSIGN(GestureEventForTest); |