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

Unified Diff: ui/chromeos/touch_exploration_controller.h

Issue 2476843003: Toggle spoken feedback if two fingers are held down. (Closed)
Patch Set: Send events from TouchExplorationController to TouchAccessibilityEnabler Created 4 years, 1 month 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 92de1eaad5effcfa825c485a0ea801794793be10..31d23d2f12e52d2a07c7cca30cc8d72c22477017 100644
--- a/ui/chromeos/touch_exploration_controller.h
+++ b/ui/chromeos/touch_exploration_controller.h
@@ -26,6 +26,7 @@ class Event;
class EventHandler;
class GestureEvent;
class GestureProviderAura;
+class TouchAccessibilityEnabler;
class TouchEvent;
// A delegate to handle commands in response to detected accessibility gesture
@@ -181,7 +182,8 @@ class UI_CHROMEOS_EXPORT TouchExplorationController
public:
explicit TouchExplorationController(
aura::Window* root_window,
- ui::TouchExplorationControllerDelegate* delegate);
+ ui::TouchExplorationControllerDelegate* delegate,
+ TouchAccessibilityEnabler* touch_accessibility_enabler);
~TouchExplorationController() override;
// Make synthesized touch events are anchored at this point. This is
@@ -507,6 +509,12 @@ class UI_CHROMEOS_EXPORT TouchExplorationController
// LocatedEvents within this area should be left alone.
gfx::Rect exclude_bounds_;
+ // Code that detects a touch-screen gesture to enable or disable
+ // accessibility. That handler is always running, whereas this is not,
+ // but events need to be sent to TouchAccessibilityEnabler before being
+ // rewritten when TouchExplorationController is running.
+ TouchAccessibilityEnabler* touch_accessibility_enabler_;
+
DISALLOW_COPY_AND_ASSIGN(TouchExplorationController);
};

Powered by Google App Engine
This is Rietveld 408576698