| OLD | NEW |
| 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 Loading... |
| 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; |
| 80 | 81 |
| 81 // If |enable_filter| is true, all keys on the internal keyboard except | 82 // If |enable_filter| is true, all keys on the internal keyboard except |
| 82 // |allowed_keys| are disabled. | 83 // |allowed_keys| are disabled. |
| 83 virtual void SetInternalKeyboardFilter(bool enable_filter, | 84 virtual void SetInternalKeyboardFilter(bool enable_filter, |
| 84 std::vector<DomCode> allowed_keys) = 0; | 85 std::vector<DomCode> allowed_keys) = 0; |
| 85 | 86 |
| 86 private: | 87 private: |
| 87 DISALLOW_COPY_AND_ASSIGN(InputController); | 88 DISALLOW_COPY_AND_ASSIGN(InputController); |
| 88 }; | 89 }; |
| 89 | 90 |
| 90 // Create an input controller that does nothing. | 91 // Create an input controller that does nothing. |
| 91 OZONE_EXPORT scoped_ptr<InputController> CreateStubInputController(); | 92 OZONE_EXPORT scoped_ptr<InputController> CreateStubInputController(); |
| 92 | 93 |
| 93 } // namespace ui | 94 } // namespace ui |
| 94 | 95 |
| 95 #endif // UI_OZONE_PUBLIC_INPUT_CONTROLLER_H_ | 96 #endif // UI_OZONE_PUBLIC_INPUT_CONTROLLER_H_ |
| OLD | NEW |