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

Side by Side Diff: ui/ozone/public/input_controller.cc

Issue 802813002: ozone: Move InputControllerTest to a common place (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scoper & remove useless unused annotations Created 6 years 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 unified diff | Download patch
« no previous file with comments | « ui/ozone/public/input_controller.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #include "ui/ozone/public/input_controller.h"
6
7 #include "base/compiler_specific.h"
8 #include "base/logging.h"
9
10 namespace ui {
11
12 namespace {
13
14 class StubInputController : public InputController {
15 public:
16 StubInputController();
17 virtual ~StubInputController();
18
19 // InputController:
20 bool HasMouse() override;
21 bool HasTouchpad() override;
22 void SetTouchpadSensitivity(int value) override;
23 void SetTapToClick(bool enabled) override;
24 void SetThreeFingerClick(bool enabled) override;
25 void SetTapDragging(bool enabled) override;
26 void SetNaturalScroll(bool enabled) override;
27 void SetMouseSensitivity(int value) override;
28 void SetPrimaryButtonRight(bool right) override;
29
30 private:
31 DISALLOW_COPY_AND_ASSIGN(StubInputController);
32 };
33
34 StubInputController::StubInputController() {
35 }
36
37 StubInputController::~StubInputController() {
38 }
39
40 bool StubInputController::HasMouse() {
41 NOTIMPLEMENTED();
42 return false;
43 }
44
45 bool StubInputController::HasTouchpad() {
46 NOTIMPLEMENTED();
47 return false;
48 }
49
50 void StubInputController::SetTouchpadSensitivity(int value) {
51 NOTIMPLEMENTED();
52 }
53
54 void StubInputController::SetTapToClick(bool enabled) {
55 NOTIMPLEMENTED();
56 }
57
58 void StubInputController::SetThreeFingerClick(bool enabled) {
59 NOTIMPLEMENTED();
60 }
61
62 void StubInputController::SetTapDragging(bool enabled) {
63 NOTIMPLEMENTED();
64 }
65
66 void StubInputController::SetNaturalScroll(bool enabled) {
67 NOTIMPLEMENTED();
68 }
69
70 void StubInputController::SetMouseSensitivity(int value) {
71 NOTIMPLEMENTED();
72 }
73
74 void StubInputController::SetPrimaryButtonRight(bool right) {
75 NOTIMPLEMENTED();
76 }
77
78 } // namespace
79
80 scoped_ptr<InputController> CreateStubInputController() {
81 return make_scoped_ptr(new StubInputController);
82 }
83
84 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/public/input_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698