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

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

Issue 1412623006: Developer Feature: Add Debug Accelerators to Toggle Touchscreen/Touchpad On or Off (CrOS) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sadrul's comment Created 5 years, 1 month 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 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 virtual void GetTouchEventLog(const base::FilePath& out_dir, 70 virtual void GetTouchEventLog(const base::FilePath& out_dir,
71 const GetTouchEventLogReply& reply) = 0; 71 const GetTouchEventLogReply& reply) = 0;
72 // Touchscreen log settings. 72 // Touchscreen log settings.
73 virtual void SetTouchEventLoggingEnabled(bool enabled) = 0; 73 virtual void SetTouchEventLoggingEnabled(bool enabled) = 0;
74 74
75 // Temporarily enable/disable Tap-to-click. Used to enhance the user 75 // Temporarily enable/disable Tap-to-click. Used to enhance the user
76 // experience in some use cases (e.g., typing, watching video). 76 // experience in some use cases (e.g., typing, watching video).
77 virtual void SetTapToClickPaused(bool state) = 0; 77 virtual void SetTapToClickPaused(bool state) = 0;
78 78
79 virtual void SetInternalTouchpadEnabled(bool enabled) = 0; 79 virtual void SetInternalTouchpadEnabled(bool enabled) = 0;
80 virtual bool IsInternalTouchpadEnabled() const = 0;
81
82 virtual void SetTouchscreensEnabled(bool enabled) = 0;
80 83
81 // If |enable_filter| is true, all keys on the internal keyboard except 84 // If |enable_filter| is true, all keys on the internal keyboard except
82 // |allowed_keys| are disabled. 85 // |allowed_keys| are disabled.
83 virtual void SetInternalKeyboardFilter(bool enable_filter, 86 virtual void SetInternalKeyboardFilter(bool enable_filter,
84 std::vector<DomCode> allowed_keys) = 0; 87 std::vector<DomCode> allowed_keys) = 0;
85 88
86 private: 89 private:
87 DISALLOW_COPY_AND_ASSIGN(InputController); 90 DISALLOW_COPY_AND_ASSIGN(InputController);
88 }; 91 };
89 92
90 // Create an input controller that does nothing. 93 // Create an input controller that does nothing.
91 OZONE_EXPORT scoped_ptr<InputController> CreateStubInputController(); 94 OZONE_EXPORT scoped_ptr<InputController> CreateStubInputController();
92 95
93 } // namespace ui 96 } // namespace ui
94 97
95 #endif // UI_OZONE_PUBLIC_INPUT_CONTROLLER_H_ 98 #endif // UI_OZONE_PUBLIC_INPUT_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698