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

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

Issue 10829262: views: Remove dependency on ui::TouchEvent/GestureEvent from views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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/views/events/event.h ('k') | ui/views/events/event_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/events/event.cc
diff --git a/ui/views/events/event.cc b/ui/views/events/event.cc
index b39190d911861f6cdc0cc1ffc6bc13f24e8d3a6c..dd04871bbd14bfb5ce3950b24a5564a1d385ef35 100644
--- a/ui/views/events/event.cc
+++ b/ui/views/events/event.cc
@@ -123,42 +123,6 @@ TouchEvent::TouchEvent(const TouchEvent& model, View* source, View* target)
TouchEvent::~TouchEvent() {
}
-ui::EventType TouchEvent::GetEventType() const {
- return type();
-}
-
-gfx::Point TouchEvent::GetLocation() const {
- return location();
-}
-
-int TouchEvent::GetTouchId() const {
- return touch_id_;
-}
-
-int TouchEvent::GetEventFlags() const {
- return flags();
-}
-
-base::TimeDelta TouchEvent::GetTimestamp() const {
- return base::TimeDelta::FromMilliseconds(time_stamp().ToDoubleT() * 1000);
-}
-
-float TouchEvent::RadiusX() const {
- return radius_x_;
-}
-
-float TouchEvent::RadiusY() const {
- return radius_y_;
-}
-
-float TouchEvent::RotationAngle() const {
- return rotation_angle_;
-}
-
-float TouchEvent::Force() const {
- return force_;
-}
-
////////////////////////////////////////////////////////////////////////////////
// TouchEvent, private:
@@ -208,13 +172,6 @@ GestureEvent::GestureEvent(ui::EventType type, int x, int y, int flags)
GestureEvent::~GestureEvent() {
}
-#if !defined(USE_AURA)
-int GestureEvent::GetLowestTouchId() const {
- // TODO:
- return 0;
-}
-#endif
-
GestureEventForTest::GestureEventForTest(ui::EventType type,
int x,
int y,
« no previous file with comments | « ui/views/events/event.h ('k') | ui/views/events/event_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698