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

Unified Diff: ui/chromeos/touch_exploration_controller.h

Issue 2880043002: Implement touch exploration touch typing (Closed)
Patch Set: Add comments. 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
« no previous file with comments | « ash/ash_touch_exploration_manager_chromeos.cc ('k') | ui/chromeos/touch_exploration_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..4076433f7c316ac148ad8ec7513b9a3b7a699f27 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);
+ // Updates |lift_activation_bounds_|. See |lift_activation_bounds_| for more
+ // information.
+ void SetLiftActivationBounds(const gfx::Rect& bounds);
+
private:
friend class TouchExplorationControllerTestApi;
@@ -296,7 +300,16 @@ class UI_CHROMEOS_EXPORT TouchExplorationController
void PlaySoundForTimer();
- void SendSimulatedClick();
+ // Sends a simulated click, if an anchor point was set explicitly. Otherwise,
+ // sends a simulated tap at anchor point.
+ void SendSimulatedClickOrTap();
+
+ // Sends a simulated tap at anchor point.
+ void SendSimulatedTap();
+
+ // Sends a simulated tap, if the anchor point falls within lift activation
+ // bounds.
+ void MaybeSendSimulatedTapInLiftActivationBounds(const ui::TouchEvent& event);
// Some constants used in touch_exploration_controller:
@@ -514,6 +527,11 @@ class UI_CHROMEOS_EXPORT TouchExplorationController
// rewritten when TouchExplorationController is running.
TouchAccessibilityEnabler* touch_accessibility_enabler_;
+ // Any touch exploration that both starts and ends (touch pressed, and
+ // released) within this rectangle, triggers a simulated single finger tap at
+ // the anchor point on release.
+ gfx::Rect lift_activation_bounds_;
+
DISALLOW_COPY_AND_ASSIGN(TouchExplorationController);
};
« no previous file with comments | « ash/ash_touch_exploration_manager_chromeos.cc ('k') | ui/chromeos/touch_exploration_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698