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

Unified Diff: ui/aura/event.cc

Issue 9773024: This patch implements Chromium's Aura gesture recognizer in terms of utouch-grail and utouch-frame … (Closed) Base URL: https://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 8 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 | « ui/aura/event.h ('k') | ui/aura/gestures/apple_magic_trackpad/device.prop » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/event.cc
===================================================================
--- ui/aura/event.cc (revision 126124)
+++ ui/aura/event.cc (working copy)
@@ -376,11 +376,9 @@
int y,
int flags,
base::Time time_stamp,
- float delta_x,
- float delta_y)
+ const GestureEvent::Properties& properties)
: LocatedEvent(type, gfx::Point(x, y), gfx::Point(x, y), flags),
- delta_x_(delta_x),
- delta_y_(delta_y) {
+ properties_(properties) {
// XXX: Why is aura::Event::time_stamp_ a TimeDelta instead of a Time?
set_time_stamp(base::TimeDelta::FromSeconds(time_stamp.ToDoubleT()));
}
@@ -389,8 +387,7 @@
Window* source,
Window* target)
: LocatedEvent(model, source, target),
- delta_x_(model.delta_x_),
- delta_y_(model.delta_y_) {
+ properties_(model.properties_) {
}
} // namespace aura
« no previous file with comments | « ui/aura/event.h ('k') | ui/aura/gestures/apple_magic_trackpad/device.prop » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698