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

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: rtl ui 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..46b9ef48089678fab9e38bc0bebfbc1c67411b14 100644
--- a/ash/autoclick/autoclick_controller.h
+++ b/ash/autoclick/autoclick_controller.h
@@ -5,12 +5,14 @@
#ifndef ASH_AUTOCLICK_AUTOCLICK_CONTROLLER_H
#define ASH_AUTOCLICK_AUTOCLICK_CONTROLLER_H
+#include "ash/ash_export.h"
+
namespace ash {
// 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.
-class AutoclickController {
+class ASH_EXPORT AutoclickController {
public:
virtual ~AutoclickController() {}
@@ -20,15 +22,19 @@ 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();
+ // The default wait time between last mouse movement and sending
+ // the autoclick.
+ static const int kDefaultAutoclickDelayMs;
+
protected:
AutoclickController() {}
};

Powered by Google App Engine
This is Rietveld 408576698