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

Unified Diff: ui/chromeos/touch_exploration_controller.h

Issue 2880043002: Implement touch exploration touch typing (Closed)
Patch Set: Remove observer. Created 3 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 6727c2a5eded9d6faf66f69cc16bfa2c649ddee5..ffd3476ae52cc3089f33a8a3d02deb76e5472051 100644
--- a/ui/chromeos/touch_exploration_controller.h
+++ b/ui/chromeos/touch_exploration_controller.h
@@ -194,6 +194,10 @@ class UI_CHROMEOS_EXPORT TouchExplorationController
// |bounds| are in root window coordinates.
void SetExcludeBounds(const gfx::Rect& bounds);
+ // For touch explore release state that fall within |bounds|, causes a tap to
+ // be synthesized and dispatched to the anchor point.
+ void SetLiftActivationBounds(const gfx::Rect& bounds);
+
private:
friend class TouchExplorationControllerTestApi;
@@ -296,7 +300,9 @@ class UI_CHROMEOS_EXPORT TouchExplorationController
void PlaySoundForTimer();
- void SendSimulatedClick();
+ void SendSimulatedClickOrTap();
+ void SendSimulatedTap();
+ void MaybeSendSimulatedTapInLiftActivationBounds(const ui::TouchEvent& event);
// Some constants used in touch_exploration_controller:
@@ -514,6 +520,8 @@ class UI_CHROMEOS_EXPORT TouchExplorationController
// rewritten when TouchExplorationController is running.
TouchAccessibilityEnabler* touch_accessibility_enabler_;
+ gfx::Rect lift_activation_bounds_;
+
DISALLOW_COPY_AND_ASSIGN(TouchExplorationController);
};

Powered by Google App Engine
This is Rietveld 408576698