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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: ui/events/ozone/evdev/input_device_settings_evdev.h
diff --git a/ui/events/ozone/evdev/input_device_settings_evdev.h b/ui/events/ozone/evdev/input_device_settings_evdev.h
new file mode 100644
index 0000000000000000000000000000000000000000..0014ba1ccb55cfab1b7c794403c780ad611b7cf0
--- /dev/null
+++ b/ui/events/ozone/evdev/input_device_settings_evdev.h
@@ -0,0 +1,40 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_EVENTS_OZONE_EVDEV_INPUT_DEVICE_SETTINGS_EVDEV_H_
+#define UI_EVENTS_OZONE_EVDEV_INPUT_DEVICE_SETTINGS_EVDEV_H_
+
+#include <vector>
+
+namespace ui {
+
+enum class DomCode;
+
+struct InputDeviceSettingsEvdev {
+ InputDeviceSettingsEvdev();
+ InputDeviceSettingsEvdev(const InputDeviceSettingsEvdev& other);
+ ~InputDeviceSettingsEvdev();
+
+ static const int kDefaultSensitivity = 3;
+
+ // The initial settings are not critical since they will be shortly be changed
+ // to the user's preferences or the application's own defaults.
+ bool tap_to_click_enabled = true;
+ bool three_finger_click_enabled = false;
+ bool tap_dragging_enabled = false;
+ bool natural_scroll_enabled = false;
+ bool tap_to_click_paused = false;
+
+ int touchpad_sensitivity = kDefaultSensitivity;
+ int mouse_sensitivity = kDefaultSensitivity;
+
+ bool enable_devices = true; // If false, all input is disabled.
+ bool enable_internal_touchpad = true;
+ bool enable_internal_keyboard_filter = false;
+ std::vector<DomCode> internal_keyboard_allowed_keys;
+};
+
+} // namespace ui
+
+#endif // UI_EVENTS_OZONE_EVDEV_INPUT_DEVICE_SETTINGS_EVDEV_H_
« 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