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

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: No longer using screen coordinates Created 8 years, 4 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.cc » ('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..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);
« no previous file with comments | « no previous file | ui/views/events/event.cc » ('j') | ui/views/view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698