Chromium Code Reviews| 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(); |