Supervised user whitelists: Cleanup
[chromium-blink-merge.git] / ui / ozone / public / input_controller.cc
blob30bb45955a27c2f4e73c5ae677a8ed9a6137aae8
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ui/ozone/public/input_controller.h"
7 #include "base/compiler_specific.h"
8 #include "base/logging.h"
10 namespace ui {
12 namespace {
14 class StubInputController : public InputController {
15 public:
16 StubInputController();
17 ~StubInputController() override;
19 // InputController:
20 bool HasMouse() override;
21 bool HasTouchpad() override;
22 bool IsCapsLockEnabled() override;
23 void SetCapsLockEnabled(bool enabled) override;
24 void SetNumLockEnabled(bool enabled) override;
25 bool IsAutoRepeatEnabled() override;
26 void SetAutoRepeatEnabled(bool enabled) override;
27 void SetAutoRepeatRate(const base::TimeDelta& delay,
28 const base::TimeDelta& interval) override;
29 void GetAutoRepeatRate(base::TimeDelta* delay,
30 base::TimeDelta* interval) override;
31 void SetTouchpadSensitivity(int value) override;
32 void SetTapToClick(bool enabled) override;
33 void SetThreeFingerClick(bool enabled) override;
34 void SetTapDragging(bool enabled) override;
35 void SetNaturalScroll(bool enabled) override;
36 void SetMouseSensitivity(int value) override;
37 void SetPrimaryButtonRight(bool right) override;
38 void SetTapToClickPaused(bool state) override;
39 void GetTouchDeviceStatus(const GetTouchDeviceStatusReply& reply) override;
40 void GetTouchEventLog(const base::FilePath& out_dir,
41 const GetTouchEventLogReply& reply) override;
42 void DisableInternalTouchpad() override;
43 void EnableInternalTouchpad() override;
44 void DisableInternalKeyboardExceptKeys(
45 scoped_ptr<std::set<DomCode>> excepted_keys) override;
46 void EnableInternalKeyboard() override;
48 private:
49 DISALLOW_COPY_AND_ASSIGN(StubInputController);
52 StubInputController::StubInputController() {
55 StubInputController::~StubInputController() {
58 bool StubInputController::HasMouse() {
59 NOTIMPLEMENTED();
60 return false;
63 bool StubInputController::HasTouchpad() {
64 NOTIMPLEMENTED();
65 return false;
68 bool StubInputController::IsCapsLockEnabled() {
69 return false;
72 void StubInputController::SetCapsLockEnabled(bool enabled) {
73 NOTIMPLEMENTED();
76 void StubInputController::SetNumLockEnabled(bool enabled) {
77 NOTIMPLEMENTED();
80 bool StubInputController::IsAutoRepeatEnabled() {
81 return true;
84 void StubInputController::SetAutoRepeatEnabled(bool enabled) {
85 NOTIMPLEMENTED();
88 void StubInputController::SetAutoRepeatRate(const base::TimeDelta& delay,
89 const base::TimeDelta& interval) {
90 NOTIMPLEMENTED();
93 void StubInputController::GetAutoRepeatRate(base::TimeDelta* delay,
94 base::TimeDelta* interval) {
95 NOTIMPLEMENTED();
98 void StubInputController::SetTouchpadSensitivity(int value) {
99 NOTIMPLEMENTED();
102 void StubInputController::SetTapToClick(bool enabled) {
103 NOTIMPLEMENTED();
106 void StubInputController::SetThreeFingerClick(bool enabled) {
107 NOTIMPLEMENTED();
110 void StubInputController::SetTapDragging(bool enabled) {
111 NOTIMPLEMENTED();
114 void StubInputController::SetNaturalScroll(bool enabled) {
115 NOTIMPLEMENTED();
118 void StubInputController::SetMouseSensitivity(int value) {
119 NOTIMPLEMENTED();
122 void StubInputController::SetPrimaryButtonRight(bool right) {
123 NOTIMPLEMENTED();
126 void StubInputController::SetTapToClickPaused(bool state) {
127 NOTIMPLEMENTED();
130 void StubInputController::GetTouchDeviceStatus(
131 const GetTouchDeviceStatusReply& reply) {
132 reply.Run(scoped_ptr<std::string>(new std::string));
135 void StubInputController::GetTouchEventLog(const base::FilePath& out_dir,
136 const GetTouchEventLogReply& reply) {
137 reply.Run(
138 scoped_ptr<std::vector<base::FilePath>>(new std::vector<base::FilePath>));
141 void StubInputController::DisableInternalTouchpad() {
142 NOTIMPLEMENTED();
145 void StubInputController::EnableInternalTouchpad() {
146 NOTIMPLEMENTED();
149 void StubInputController::DisableInternalKeyboardExceptKeys(
150 scoped_ptr<std::set<DomCode>> excepted_keys) {
151 NOTIMPLEMENTED();
154 void StubInputController::EnableInternalKeyboard() {
155 NOTIMPLEMENTED();
158 } // namespace
160 scoped_ptr<InputController> CreateStubInputController() {
161 return make_scoped_ptr(new StubInputController);
164 } // namespace ui