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

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

Issue 616633002: [Ozone-Evdev] Propagate touchscreen device information to DeviceDataManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 2 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_EVENT_READER_LIBEVDEV_CROS_H_ 5 #ifndef UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_EVENT_READER_LIBEVDEV_CROS_H_
6 #define UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_EVENT_READER_LIBEVDEV_CROS_H_ 6 #define UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_EVENT_READER_LIBEVDEV_CROS_H_
7 7
8 #include <libevdev/libevdev.h> 8 #include <libevdev/libevdev.h>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 19 matching lines...) Expand all
30 virtual void OnLibEvdevCrosOpen(Evdev* evdev, EventStateRec* evstate) = 0; 30 virtual void OnLibEvdevCrosOpen(Evdev* evdev, EventStateRec* evstate) = 0;
31 31
32 // Notifier for event. This is called with the updated event state. 32 // Notifier for event. This is called with the updated event state.
33 virtual void OnLibEvdevCrosEvent(Evdev* evdev, 33 virtual void OnLibEvdevCrosEvent(Evdev* evdev,
34 EventStateRec* state, 34 EventStateRec* state,
35 const timeval& time) = 0; 35 const timeval& time) = 0;
36 }; 36 };
37 37
38 EventReaderLibevdevCros(int fd, 38 EventReaderLibevdevCros(int fd,
39 const base::FilePath& path, 39 const base::FilePath& path,
40 scoped_ptr<EventDeviceInfo> device_info,
40 scoped_ptr<Delegate> delegate); 41 scoped_ptr<Delegate> delegate);
41 ~EventReaderLibevdevCros(); 42 ~EventReaderLibevdevCros();
42 43
43 // EventConverterEvdev: 44 // EventConverterEvdev:
44 virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE; 45 virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE;
45 46
46 private: 47 private:
47 static void OnSynReport(void* data, 48 static void OnSynReport(void* data,
48 EventStateRec* evstate, 49 EventStateRec* evstate,
49 struct timeval* tv); 50 struct timeval* tv);
(...skipping 10 matching lines...) Expand all
60 61
61 // Delegate for event processing. 62 // Delegate for event processing.
62 scoped_ptr<Delegate> delegate_; 63 scoped_ptr<Delegate> delegate_;
63 64
64 DISALLOW_COPY_AND_ASSIGN(EventReaderLibevdevCros); 65 DISALLOW_COPY_AND_ASSIGN(EventReaderLibevdevCros);
65 }; 66 };
66 67
67 } // namspace ui 68 } // namspace ui
68 69
69 #endif // UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_EVENT_READER_LIBEVDEV_CROS_H_ 70 #endif // UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_EVENT_READER_LIBEVDEV_CROS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698