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

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

Issue 864253002: Dump property values for the touch log source (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed nits. Created 5 years, 11 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 unified diff | Download patch
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 <set> 8 #include <set>
9 #include <string>
9 10
10 #include "base/macros.h" 11 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
12 #include "ui/ozone/ozone_export.h" 13 #include "ui/ozone/ozone_export.h"
13 14
14 namespace base { 15 namespace base {
15 class TimeDelta; 16 class TimeDelta;
16 } 17 }
17 18
18 namespace ui { 19 namespace ui {
(...skipping 29 matching lines...) Expand all
48 virtual void SetTouchpadSensitivity(int value) = 0; 49 virtual void SetTouchpadSensitivity(int value) = 0;
49 virtual void SetTapToClick(bool enabled) = 0; 50 virtual void SetTapToClick(bool enabled) = 0;
50 virtual void SetThreeFingerClick(bool enabled) = 0; 51 virtual void SetThreeFingerClick(bool enabled) = 0;
51 virtual void SetTapDragging(bool enabled) = 0; 52 virtual void SetTapDragging(bool enabled) = 0;
52 virtual void SetNaturalScroll(bool enabled) = 0; 53 virtual void SetNaturalScroll(bool enabled) = 0;
53 54
54 // Mouse settings. 55 // Mouse settings.
55 virtual void SetMouseSensitivity(int value) = 0; 56 virtual void SetMouseSensitivity(int value) = 0;
56 virtual void SetPrimaryButtonRight(bool right) = 0; 57 virtual void SetPrimaryButtonRight(bool right) = 0;
57 58
59 // Touch log collection.
60 virtual std::string GetGestureDeviceStatus() = 0;
spang 2015/01/23 18:39:43 This needs to be asynchronous because we are movin
61
58 // Temporarily enable/disable Tap-to-click. Used to enhance the user 62 // Temporarily enable/disable Tap-to-click. Used to enhance the user
59 // experience in some use cases (e.g., typing, watching video). 63 // experience in some use cases (e.g., typing, watching video).
60 virtual void SetTapToClickPaused(bool state) = 0; 64 virtual void SetTapToClickPaused(bool state) = 0;
61 65
62 // Disables the internal touchpad. 66 // Disables the internal touchpad.
63 virtual void DisableInternalTouchpad() = 0; 67 virtual void DisableInternalTouchpad() = 0;
64 68
65 // Enables the internal touchpad. 69 // Enables the internal touchpad.
66 virtual void EnableInternalTouchpad() = 0; 70 virtual void EnableInternalTouchpad() = 0;
67 71
68 // Disables all keys on the internal keyboard except |excepted_keys|. 72 // Disables all keys on the internal keyboard except |excepted_keys|.
69 virtual void DisableInternalKeyboardExceptKeys( 73 virtual void DisableInternalKeyboardExceptKeys(
70 scoped_ptr<std::set<DomCode>> excepted_keys) = 0; 74 scoped_ptr<std::set<DomCode>> excepted_keys) = 0;
71 75
72 // Enables all keys on the internal keyboard. 76 // Enables all keys on the internal keyboard.
73 virtual void EnableInternalKeyboard() = 0; 77 virtual void EnableInternalKeyboard() = 0;
74 78
75 private: 79 private:
76 DISALLOW_COPY_AND_ASSIGN(InputController); 80 DISALLOW_COPY_AND_ASSIGN(InputController);
77 }; 81 };
78 82
79 // Create an input controller that does nothing. 83 // Create an input controller that does nothing.
80 OZONE_EXPORT scoped_ptr<InputController> CreateStubInputController(); 84 OZONE_EXPORT scoped_ptr<InputController> CreateStubInputController();
81 85
82 } // namespace ui 86 } // namespace ui
83 87
84 #endif // UI_OZONE_PUBLIC_INPUT_CONTROLLER_H_ 88 #endif // UI_OZONE_PUBLIC_INPUT_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc ('k') | ui/ozone/public/input_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698