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

Unified Diff: ui/base/events/event.cc

Issue 11188012: gesture recognizer: Remove the touch-event queue. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge Created 8 years, 2 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/base/events/event.h ('k') | ui/base/events/event_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/events/event.cc
diff --git a/ui/base/events/event.cc b/ui/base/events/event.cc
index f16d471625f3d4a2bff23d009c4c30a8023a55ee..96a7e7dc5f6f13a8fe8225d34ef2c1dab5f81b17 100644
--- a/ui/base/events/event.cc
+++ b/ui/base/events/event.cc
@@ -307,6 +307,23 @@ TouchEvent::TouchEvent(EventType type,
set_time_stamp(time_stamp);
}
+TouchEvent::TouchEvent(EventType type,
+ const gfx::Point& location,
+ int flags,
+ int touch_id,
+ base::TimeDelta timestamp,
+ float radius_x,
+ float radius_y,
+ float angle,
+ float force)
+ : LocatedEvent(type, location, location, flags),
+ touch_id_(touch_id),
+ radius_x_(radius_x),
+ radius_y_(radius_y),
+ rotation_angle_(angle),
+ force_(force) {
+}
+
TouchEvent::~TouchEvent() {
}
@@ -326,25 +343,6 @@ void TouchEvent::UpdateForRootTransform(const gfx::Transform& root_transform) {
}
////////////////////////////////////////////////////////////////////////////////
-// TestTouchEvent
-
-TestTouchEvent::TestTouchEvent(EventType type,
- int x,
- int y,
- int flags,
- int touch_id,
- float radius_x,
- float radius_y,
- float angle,
- float force)
- : TouchEvent(type, gfx::Point(x, y), touch_id, base::TimeDelta()) {
- set_flags(flags);
- set_radius(radius_x, radius_y);
- set_rotation_angle(angle);
- set_force(force);
-}
-
-////////////////////////////////////////////////////////////////////////////////
// KeyEvent
KeyEvent::KeyEvent(const base::NativeEvent& native_event, bool is_char)
« no previous file with comments | « ui/base/events/event.h ('k') | ui/base/events/event_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698