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

Side by Side Diff: ui/events/ozone/evdev/libgestures_glue/gesture_interpreter_libevdev_cros.h

Issue 545063006: ozone: evdev: Add gesture property provider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add INFO_SEVERITY to log property activities. Useful for debugging before a property value setting … Created 6 years, 3 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_INTERPRETER_LIBEVDEV_CROS _H_ 5 #ifndef UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_INTERPRETER_LIBEVDEV_CROS _H_
6 #define UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_INTERPRETER_LIBEVDEV_CROS _H_ 6 #define UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_INTERPRETER_LIBEVDEV_CROS _H_
7 7
8 #include <gestures/gestures.h> 8 #include <gestures/gestures.h>
9 #include <libevdev/libevdev.h> 9 #include <libevdev/libevdev.h>
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "ui/events/ozone/evdev/cursor_delegate_evdev.h" 13 #include "ui/events/ozone/evdev/cursor_delegate_evdev.h"
14 #include "ui/events/ozone/evdev/events_ozone_evdev_export.h" 14 #include "ui/events/ozone/evdev/events_ozone_evdev_export.h"
15 #include "ui/events/ozone/evdev/libgestures_glue/event_reader_libevdev_cros.h" 15 #include "ui/events/ozone/evdev/libgestures_glue/event_reader_libevdev_cros.h"
16 #include "ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.h"
16 17
17 namespace ui { 18 namespace ui {
18 19
19 class Event; 20 class Event;
20 class EventDeviceInfo; 21 class EventDeviceInfo;
21 class EventModifiersEvdev; 22 class EventModifiersEvdev;
22 class CursorDelegateEvdev; 23 class CursorDelegateEvdev;
23 24
24 typedef base::Callback<void(Event*)> EventDispatchCallback; 25 typedef base::Callback<void(Event*)> EventDispatchCallback;
25 26
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 76
76 // Shared cursor state. 77 // Shared cursor state.
77 CursorDelegateEvdev* cursor_; 78 CursorDelegateEvdev* cursor_;
78 79
79 // Callback for dispatching events. 80 // Callback for dispatching events.
80 EventDispatchCallback dispatch_callback_; 81 EventDispatchCallback dispatch_callback_;
81 82
82 // Gestures interpretation state. 83 // Gestures interpretation state.
83 gestures::GestureInterpreter* interpreter_; 84 gestures::GestureInterpreter* interpreter_;
84 85
86 // Device properties.
87 GesturePropertyProvider::DeviceProperty device_props_;
88
85 DISALLOW_COPY_AND_ASSIGN(GestureInterpreterLibevdevCros); 89 DISALLOW_COPY_AND_ASSIGN(GestureInterpreterLibevdevCros);
86 }; 90 };
87 91
88 } // namspace ui 92 } // namspace ui
89 93
90 #endif // UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_INTERPRETER_LIBEVDEV_C ROS_H_ 94 #endif // UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_INTERPRETER_LIBEVDEV_C ROS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698