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

Unified Diff: ui/aura/test/event_generator.cc

Issue 262483003: Implementation of the Touch Exploration Mode - Part I (ui) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@event_source
Patch Set: Created 6 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
Index: ui/aura/test/event_generator.cc
diff --git a/ui/aura/test/event_generator.cc b/ui/aura/test/event_generator.cc
index 8ee8085400b30ba5b3207f6c46b724ee8aa749a7..de4318e84d609afc93ce818ee0209acea40c264d 100644
--- a/ui/aura/test/event_generator.cc
+++ b/ui/aura/test/event_generator.cc
@@ -230,6 +230,16 @@ void EventGenerator::MoveTouchId(const gfx::Point& point, int touch_id) {
UpdateCurrentDispatcher(point);
}
+void EventGenerator::StationaryTouch() {
+ StationaryTouchId(0);
+}
+
+void EventGenerator::StationaryTouchId(int touch_id) {
+ TestTouchEvent touchev(
+ ui::ET_TOUCH_STATIONARY, GetLocationInCurrentRoot(), touch_id, flags_);
+ Dispatch(&touchev);
+}
+
void EventGenerator::ReleaseTouch() {
ReleaseTouchId(0);
}

Powered by Google App Engine
This is Rietveld 408576698