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.
5 #ifndef UI_EVENTS_OZONE_EVDEV_INPUT_DEVICE_SETTINGS_EVDEV_H_
6 #define UI_EVENTS_OZONE_EVDEV_INPUT_DEVICE_SETTINGS_EVDEV_H_
14 struct InputDeviceSettingsEvdev
{
15 InputDeviceSettingsEvdev();
16 InputDeviceSettingsEvdev(const InputDeviceSettingsEvdev
& other
);
17 ~InputDeviceSettingsEvdev();
19 static const int kDefaultSensitivity
= 3;
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 bool touch_event_logging_enabled
= true;
30 int touchpad_sensitivity
= kDefaultSensitivity
;
31 int mouse_sensitivity
= kDefaultSensitivity
;
33 bool enable_devices
= true; // If false, all input is disabled.
34 bool enable_internal_touchpad
= true;
35 bool enable_internal_keyboard_filter
= false;
36 std::vector
<DomCode
> internal_keyboard_allowed_keys
;
41 #endif // UI_EVENTS_OZONE_EVDEV_INPUT_DEVICE_SETTINGS_EVDEV_H_