| 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_
|
|
|