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

Unified Diff: ash/autoclick/autoclick_controller.h

Issue 27196006: Add autoclick to settings page under the accessibility section. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add flag to chrome://flags Created 7 years, 2 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: ash/autoclick/autoclick_controller.h
diff --git a/ash/autoclick/autoclick_controller.h b/ash/autoclick/autoclick_controller.h
index 481660fbda281cf456fef2bdc001ef97ec459133..6bf072fc8a88b6def8f83cf7c03124ee65aa9c6b 100644
--- a/ash/autoclick/autoclick_controller.h
+++ b/ash/autoclick/autoclick_controller.h
@@ -7,6 +7,9 @@
namespace ash {
+// The default wait time between last mouse movement and sending the autoclick.
+const int kDefaultAutoclickDelayMs = 500;
oshima 2013/10/15 17:04:48 can you move this to static memeber of AutoclickCO
Tim Song 2013/10/15 22:23:31 Done.
+
// Controls the autoclick a11y feature in ash.
// If enabled, we will automatically send a click event a short time after
// the mouse had been at rest.
@@ -20,12 +23,12 @@ class AutoclickController {
// Returns true if autoclicking is enabled.
virtual bool IsEnabled() const = 0;
- // Set the time to wait from when the mouse stops moving to when
- // the autoclick event is sent.
- virtual void SetClickWaitTime(int wait_time_ms) = 0;
+ // Set the time to wait in milliseconds from when the mouse stops moving
+ // to when the autoclick event is sent.
+ virtual void SetAutoclickDelay(int delay_ms) = 0;
- // Returns the wait time in milliseconds.
- virtual int GetClickWaitTime() const = 0;
+ // Returns the autoclick delay in milliseconds.
+ virtual int GetAutoclickDelay() const = 0;
static AutoclickController* CreateInstance();
« no previous file with comments | « no previous file | ash/autoclick/autoclick_controller.cc » ('j') | chrome/browser/resources/options/browser_options.css » ('J')

Powered by Google App Engine
This is Rietveld 408576698