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

Unified Diff: ui/events/gestures/motion_event_aura.cc

Issue 407313002: Add a MotionEventGeneric implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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
Index: ui/events/gestures/motion_event_aura.cc
diff --git a/ui/events/gestures/motion_event_aura.cc b/ui/events/gestures/motion_event_aura.cc
index 6eea922748936d757796043ca55ac07eb3e70d0a..771b67f0990f8f254ccd4d783da09538b942cb4e 100644
--- a/ui/events/gestures/motion_event_aura.cc
+++ b/ui/events/gestures/motion_event_aura.cc
@@ -126,36 +126,6 @@ float MotionEventAura::GetPressure(size_t pointer_index) const {
return active_touches_[pointer_index].pressure;
}
-base::TimeTicks MotionEventAura::GetEventTime() const {
- return last_touch_time_;
-}
-
-size_t MotionEventAura::GetHistorySize() const { return 0; }
-
-base::TimeTicks MotionEventAura::GetHistoricalEventTime(
- size_t historical_index) const {
- NOTIMPLEMENTED();
- return base::TimeTicks();
-}
-
-float MotionEventAura::GetHistoricalTouchMajor(size_t pointer_index,
- size_t historical_index) const {
- NOTIMPLEMENTED();
- return 0;
-}
-
-float MotionEventAura::GetHistoricalX(size_t pointer_index,
- size_t historical_index) const {
- NOTIMPLEMENTED();
- return 0;
-}
-
-float MotionEventAura::GetHistoricalY(size_t pointer_index,
- size_t historical_index) const {
- NOTIMPLEMENTED();
- return 0;
-}
-
MotionEvent::ToolType MotionEventAura::GetToolType(size_t pointer_index) const {
NOTIMPLEMENTED();
return MotionEvent::TOOL_TYPE_UNKNOWN;
@@ -166,6 +136,10 @@ int MotionEventAura::GetButtonState() const {
return 0;
}
+base::TimeTicks MotionEventAura::GetEventTime() const {
+ return last_touch_time_;
+}
+
scoped_ptr<MotionEvent> MotionEventAura::Clone() const {
return scoped_ptr<MotionEvent>(new MotionEventAura(pointer_count_,
last_touch_time_,

Powered by Google App Engine
This is Rietveld 408576698