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

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

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/platform/test/test.gypi ('k') | ui/ozone/public/input_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_OZONE_PUBLIC_INPUT_CONTROLLER_H_ 5 #ifndef UI_OZONE_PUBLIC_INPUT_CONTROLLER_H_
6 #define UI_OZONE_PUBLIC_INPUT_CONTROLLER_H_ 6 #define UI_OZONE_PUBLIC_INPUT_CONTROLLER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
9 #include "ui/ozone/ozone_export.h" 10 #include "ui/ozone/ozone_export.h"
10 11
11 namespace ui { 12 namespace ui {
12 13
13 // Platform-specific interface for controlling input devices. 14 // Platform-specific interface for controlling input devices.
14 // 15 //
15 // The object provides methods for the preference page to configure input 16 // The object provides methods for the preference page to configure input
16 // devices w.r.t. the user setting. On ChromeOS, this replaces the inputcontrol 17 // devices w.r.t. the user setting. On ChromeOS, this replaces the inputcontrol
17 // script that is originally located at /opt/google/chrome/. 18 // script that is originally located at /opt/google/chrome/.
18 class OZONE_EXPORT InputController { 19 class OZONE_EXPORT InputController {
(...skipping 13 matching lines...) Expand all
32 virtual void SetThreeFingerClick(bool enabled) = 0; 33 virtual void SetThreeFingerClick(bool enabled) = 0;
33 virtual void SetTapDragging(bool enabled) = 0; 34 virtual void SetTapDragging(bool enabled) = 0;
34 virtual void SetNaturalScroll(bool enabled) = 0; 35 virtual void SetNaturalScroll(bool enabled) = 0;
35 virtual void SetMouseSensitivity(int value) = 0; 36 virtual void SetMouseSensitivity(int value) = 0;
36 virtual void SetPrimaryButtonRight(bool right) = 0; 37 virtual void SetPrimaryButtonRight(bool right) = 0;
37 38
38 private: 39 private:
39 DISALLOW_COPY_AND_ASSIGN(InputController); 40 DISALLOW_COPY_AND_ASSIGN(InputController);
40 }; 41 };
41 42
43 // Create an input controller that does nothing.
44 OZONE_EXPORT scoped_ptr<InputController> CreateStubInputController();
45
42 } // namespace ui 46 } // namespace ui
43 47
44 #endif // UI_OZONE_PUBLIC_INPUT_CONTROLLER_H_ 48 #endif // UI_OZONE_PUBLIC_INPUT_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/test/test.gypi ('k') | ui/ozone/public/input_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698