Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1385)

Unified Diff: ui/views/events/event.h

Issue 10790019: Add gesture target fuzzing to views (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: sadrul's comments about testing addressed Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/views/events/event.cc » ('j') | ui/views/view.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | ui/views/events/event.cc » ('j') | ui/views/view.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698