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

Unified Diff: ui/events/ozone/evdev/event_factory_evdev.cc

Issue 868213002: [PATCH 7/11] ozone: evdev: Move GesturePropertyProvider to InputDeviceFactoryEvdev (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 11 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
« no previous file with comments | « ui/events/ozone/evdev/event_factory_evdev.h ('k') | ui/events/ozone/evdev/input_controller_evdev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/evdev/event_factory_evdev.cc
diff --git a/ui/events/ozone/evdev/event_factory_evdev.cc b/ui/events/ozone/evdev/event_factory_evdev.cc
index 3ae161ff507cabc034629f6e81f0ff818447ec3f..b1350984d1786119d2691246792bd1968a4afcce 100644
--- a/ui/events/ozone/evdev/event_factory_evdev.cc
+++ b/ui/events/ozone/evdev/event_factory_evdev.cc
@@ -19,10 +19,6 @@
#include "ui/events/ozone/evdev/input_device_factory_evdev.h"
#include "ui/events/ozone/evdev/input_injector_evdev.h"
-#if defined(USE_EVDEV_GESTURES)
-#include "ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.h"
-#endif
-
namespace ui {
EventFactoryEvdev::EventFactoryEvdev(CursorDelegateEvdev* cursor,
@@ -34,16 +30,7 @@ EventFactoryEvdev::EventFactoryEvdev(CursorDelegateEvdev* cursor,
base::Bind(&EventFactoryEvdev::PostUiEvent, base::Unretained(this))),
keyboard_(&modifiers_, keyboard_layout, dispatch_callback_),
cursor_(cursor),
-#if defined(USE_EVDEV_GESTURES)
- gesture_property_provider_(new GesturePropertyProvider),
-#endif
- input_controller_(&keyboard_,
- &button_map_
-#if defined(USE_EVDEV_GESTURES)
- ,
- gesture_property_provider_.get()
-#endif
- ),
+ input_controller_(&keyboard_, &button_map_),
initialized_(false),
weak_ptr_factory_(this) {
DCHECK(device_manager_);
@@ -56,12 +43,8 @@ void EventFactoryEvdev::Init() {
DCHECK(!initialized_);
// Set up device factory.
- input_device_factory_.reset(
- new InputDeviceFactoryEvdev(this, base::ThreadTaskRunnerHandle::Get(),
-#if defined(USE_EVDEV_GESTURES)
- gesture_property_provider_.get(),
-#endif
- cursor_));
+ input_device_factory_.reset(new InputDeviceFactoryEvdev(
+ this, base::ThreadTaskRunnerHandle::Get(), cursor_));
// TODO(spang): This settings interface is really broken. crbug.com/450899
input_controller_.SetInputDeviceFactory(input_device_factory_.get());
« no previous file with comments | « ui/events/ozone/evdev/event_factory_evdev.h ('k') | ui/events/ozone/evdev/input_controller_evdev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698