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

Unified Diff: ui/base/gestures/gesture_types.h

Issue 10831240: Remove TouchEvent interface, and rename TouchEventImpl to TouchEvent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge-tot 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 | « ui/base/gestures/gesture_sequence.cc ('k') | ui/views/events/event.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/gestures/gesture_types.h
diff --git a/ui/base/gestures/gesture_types.h b/ui/base/gestures/gesture_types.h
index b84faeecb61d45104c6b95bcf3016c582cf52f5b..48dae701f134e6f2d18a95bdd0fd6e2b62176d0c 100644
--- a/ui/base/gestures/gesture_types.h
+++ b/ui/base/gestures/gesture_types.h
@@ -12,6 +12,8 @@
namespace ui {
+class TouchEvent;
+
struct UI_EXPORT GestureEventDetails {
public:
GestureEventDetails(EventType type, float delta_x, float delta_y);
@@ -113,23 +115,6 @@ struct UI_EXPORT GestureEventDetails {
gfx::Rect bounding_box_;
};
-// An abstract type to represent touch-events. The gesture-recognizer uses this
-// interface to communicate with the touch-events.
-class UI_EXPORT TouchEvent {
- public:
- virtual ~TouchEvent() {}
-
- virtual EventType GetEventType() const = 0;
- virtual gfx::Point GetLocation() const = 0;
- virtual int GetTouchId() const = 0;
- virtual int GetEventFlags() const = 0;
- virtual base::TimeDelta GetTimestamp() const = 0;
- virtual float RadiusX() const = 0;
- virtual float RadiusY() const = 0;
- virtual float RotationAngle() const = 0;
- virtual float Force() const = 0;
-};
-
// An abstract type to represent gesture-events.
class UI_EXPORT GestureEvent {
public:
@@ -187,9 +172,9 @@ class UI_EXPORT GestureEventHelper {
unsigned int touch_id_bitfield) = 0;
virtual TouchEvent* CreateTouchEvent(EventType type,
- const gfx::Point& location,
- int touch_id,
- base::TimeDelta time_stamp) = 0;
+ const gfx::Point& location,
+ int touch_id,
+ base::TimeDelta time_stamp) = 0;
virtual bool DispatchLongPressGestureEvent(GestureEvent* event) = 0;
virtual bool DispatchCancelTouchEvent(TouchEvent* event) = 0;
« no previous file with comments | « ui/base/gestures/gesture_sequence.cc ('k') | ui/views/events/event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698