Sync ui/events to chromium @ https://crrev.com/336230
ui/gfx/screen_aura.cc -> ui/gfx/screen_stub.cc
Carrying forward previous rename of:
gesture_provider_aura -> gesture_provider_impl
motion_event_aura -> motion_event_impl
Does not include the following files that remain unused
even after upcoming ozone integration.
platform/x11/x11_event_source_glib.cc
keycodes/keyboard_code_conversion_mac.h
keycodes/keyboard_code_conversion_mac.mm
keycodes/keyboard_code_conversion_win.cc
keycodes/keyboard_code_conversion_win.h
cocoa/cocoa_event_utils.h
cocoa/cocoa_event_utils.mm
cocoa/events_mac.mm
win/events_win.cc
linux/text_edit_command_auralinux.cc
linux/text_edit_command_auralinux.h
linux/text_edit_key_bindings_delegate_auralinux.cc
linux/text_edit_key_bindings_delegate_auralinux.h
test/cocoa_test_event_utils.h
test/cocoa_test_event_utils.mm
gestures/blink/web_gesture_curve_impl_unittest.cc
android/scroller*
ozone/evdev/libgestures_glue*
ozone/layout/xkb/
ozone/chromeos/*
ui/gfx/screen_ios.mm
BUG=
R=jamesr@chromium.org
Review URL: https://codereview.chromium.org/1287103004 .
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 0000000..0014ba1
--- /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_