Chromium Code Reviews| 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); |
| }; |