Index: ui/views/events/event.h |
diff --git a/ui/views/events/event.h b/ui/views/events/event.h |
index 433d5cfd74c9ece7d8cd5e507db4a95ea383d53b..79a62bf4b93f7499e447a74a621b77622663ec8f 100644 |
--- a/ui/views/events/event.h |
+++ b/ui/views/events/event.h |
@@ -436,6 +436,9 @@ class VIEWS_EXPORT GestureEvent : public LocatedEvent, |
protected: |
GestureEvent(ui::EventType type, int x, int y, int flags); |
+ // Used for views testing. |
+ void set_details(ui::GestureEventDetails details) { details_ = details; } |
sky
2012/08/02 15:52:08
const ui::GestureEventDetails& here and 458.
Can
tdanderson
2012/08/02 18:11:37
Done.
|
+ |
private: |
friend class internal::RootView; |
@@ -452,6 +455,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(ui::GestureEventDetails details) { |
+ GestureEvent::set_details(details); |
+ } |
private: |
DISALLOW_COPY_AND_ASSIGN(GestureEventForTest); |