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

Side by Side Diff: ui/events/ozone/evdev/input_device_settings_evdev.h

Issue 1287103004: Sync ui/events to chromium @ https://codereview.chromium.org/1210203002 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebased Created 5 years, 4 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
(Empty)
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_
OLDNEW
« no previous file with comments | « ui/events/ozone/evdev/input_device_factory_evdev_proxy.cc ('k') | ui/events/ozone/evdev/input_device_settings_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698