blob: 481660fbda281cf456fef2bdc001ef97ec459133 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_AUTOCLICK_AUTOCLICK_CONTROLLER_H
#define ASH_AUTOCLICK_AUTOCLICK_CONTROLLER_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 {
public:
virtual ~AutoclickController() {}
// Set whether autoclicking is enabled.
virtual void SetEnabled(bool enabled) = 0;
// 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;
// Returns the wait time in milliseconds.
virtual int GetClickWaitTime() const = 0;
static AutoclickController* CreateInstance();
protected:
AutoclickController() {}
};
} // namespace ash
#endif // ASH_AUTOCLICK_AUTOCLICK_CONTROLLER_H
|