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

Unified Diff: ui/chromeos/touch_exploration_controller.h

Issue 429633002: Added multi-finger gestures to touch_exploration_controller (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@passthrough
Patch Set: added closure mappings to release key events for gestures Created 6 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
Index: ui/chromeos/touch_exploration_controller.h
diff --git a/ui/chromeos/touch_exploration_controller.h b/ui/chromeos/touch_exploration_controller.h
index c8a3e085fcfe360df87aff0a3cfc61a921e38b07..a8f723ee26f86356c3b18019aa067e842f3179ab 100644
--- a/ui/chromeos/touch_exploration_controller.h
+++ b/ui/chromeos/touch_exploration_controller.h
@@ -341,6 +341,10 @@ class UI_CHROMEOS_EXPORT TouchExplorationController
// Gets enum name from integer value.
const char* EnumStateToString(State state);
+ // Maps each single/multi finger swipe to the function that dispatches
+ // the corresponding key events.
+ void InitializeSwipeClosures();
aboxhall 2014/08/05 23:43:42 I think the fact that they're closures is an imple
evy 2014/08/05 23:51:18 Done.
+
aura::Window* root_window_;
// Handles volume control. Not owned.
@@ -401,6 +405,12 @@ class UI_CHROMEOS_EXPORT TouchExplorationController
// testing, this clock is set to the simulated clock and used.
base::TickClock* tick_clock_;
+ // Maps swipes with the resulting functions that dispatch key events.
+ std::map<int, base::Closure> left_swipe_gestures_;
+ std::map<int, base::Closure> right_swipe_gestures_;
+ std::map<int, base::Closure> up_swipe_gestures_;
+ std::map<int, base::Closure> down_swipe_gestures_;
+
DISALLOW_COPY_AND_ASSIGN(TouchExplorationController);
};
« no previous file with comments | « no previous file | ui/chromeos/touch_exploration_controller.cc » ('j') | ui/chromeos/touch_exploration_controller.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698