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

Unified Diff: ui/chromeos/touch_exploration_controller.h

Issue 1953613002: Make touch accessibility gestures work with ChromeVox Next (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 7 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 00fe1bb20f56ecd4612839528724f5ab5cdef19b..99aa7c10eedf66f2963742bbdc3da8278e3e49b6 100644
--- a/ui/chromeos/touch_exploration_controller.h
+++ b/ui/chromeos/touch_exploration_controller.h
@@ -9,6 +9,7 @@
#include "base/time/tick_clock.h"
#include "base/timer/timer.h"
#include "base/values.h"
+#include "ui/accessibility/ax_enums.h"
#include "ui/chromeos/ui_chromeos_export.h"
#include "ui/events/event.h"
#include "ui/events/event_rewriter.h"
@@ -56,6 +57,10 @@ class TouchExplorationControllerDelegate {
// This function should be called when the enter screen earcon should be
// played.
virtual void PlayEnterScreenEarcon() = 0;
+
+ // Called when the user performed an accessibility gesture while in touch
+ // accessibility mode, that should be forwarded to ChromeVox.
+ virtual void HandleAccessibilityGesture(ui::AXGesture gesture) = 0;
};
// TouchExplorationController is used in tandem with "Spoken Feedback" to
@@ -261,13 +266,6 @@ class UI_CHROMEOS_EXPORT TouchExplorationController
void SideSlideControl(ui::GestureEvent* gesture);
- // Dispatches the keyboard short cut Shift+Search+<arrow key>
- // outside the event rewritting flow.
- void DispatchShiftSearchKeyEvent(const ui::KeyboardCode third_key);
-
- // Binds DispatchShiftSearchKeyEvent to a specific third key.
- base::Closure BindShiftSearchKeyEvent(const ui::KeyboardCode third_key);
-
// Dispatches a single key with the given flags.
void DispatchKeyWithFlags(const ui::KeyboardCode key, int flags);
@@ -414,10 +412,6 @@ 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 InitializeSwipeGestureMaps();
-
aura::Window* root_window_;
// Handles volume control. Not owned.
@@ -481,13 +475,6 @@ class UI_CHROMEOS_EXPORT TouchExplorationController
// testing, this clock is set to the simulated clock and used.
base::TickClock* tick_clock_;
- // Maps the number of fingers in a swipe to 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);
};

Powered by Google App Engine
This is Rietveld 408576698