Craig Stout | f8b40b5 | 2015-08-13 11:48:01 -0700 | [diff] [blame] | 1 | // Copyright 2015 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 | #ifndef UI_EVENTS_OZONE_EVDEV_INPUT_DEVICE_SETTINGS_EVDEV_H_ |
| 6 | #define UI_EVENTS_OZONE_EVDEV_INPUT_DEVICE_SETTINGS_EVDEV_H_ |
| 7 | |
| 8 | #include <vector> |
| 9 | |
| 10 | namespace ui { |
| 11 | |
| 12 | enum class DomCode; |
| 13 | |
| 14 | struct InputDeviceSettingsEvdev { |
| 15 | InputDeviceSettingsEvdev(); |
| 16 | InputDeviceSettingsEvdev(const InputDeviceSettingsEvdev& other); |
| 17 | ~InputDeviceSettingsEvdev(); |
| 18 | |
| 19 | static const int kDefaultSensitivity = 3; |
| 20 | |
| 21 | // The initial settings are not critical since they will be shortly be changed |
| 22 | // to the user's preferences or the application's own defaults. |
| 23 | bool tap_to_click_enabled = true; |
| 24 | bool three_finger_click_enabled = false; |
| 25 | bool tap_dragging_enabled = false; |
| 26 | bool natural_scroll_enabled = false; |
| 27 | bool tap_to_click_paused = false; |
| 28 | |
| 29 | int touchpad_sensitivity = kDefaultSensitivity; |
| 30 | int mouse_sensitivity = kDefaultSensitivity; |
| 31 | |
| 32 | bool enable_devices = true; // If false, all input is disabled. |
| 33 | bool enable_internal_touchpad = true; |
| 34 | bool enable_internal_keyboard_filter = false; |
| 35 | std::vector<DomCode> internal_keyboard_allowed_keys; |
| 36 | }; |
| 37 | |
| 38 | } // namespace ui |
| 39 | |
| 40 | #endif // UI_EVENTS_OZONE_EVDEV_INPUT_DEVICE_SETTINGS_EVDEV_H_ |