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

Side by Side Diff: ui/events/ozone/evdev/touch_event_converter_evdev.h

Issue 193813003: ozone: evdev: Add libgestures bindings for touchpad & mouse support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moved 1 space by 1 character Created 6 years, 8 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 | Annotate | Revision Log
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_TOUCH_EVENT_CONVERTER_EVDEV_H_ 5 #ifndef UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_
6 #define UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_ 6 #define UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_
7 7
8 #include <bitset> 8 #include <bitset>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 10 matching lines...) Expand all
21 21
22 class EVENTS_EXPORT TouchEventConverterEvdev 22 class EVENTS_EXPORT TouchEventConverterEvdev
23 : public EventConverterEvdev, 23 : public EventConverterEvdev,
24 public base::MessagePumpLibevent::Watcher { 24 public base::MessagePumpLibevent::Watcher {
25 public: 25 public:
26 enum { 26 enum {
27 MAX_FINGERS = 11 27 MAX_FINGERS = 11
28 }; 28 };
29 TouchEventConverterEvdev(int fd, 29 TouchEventConverterEvdev(int fd,
30 base::FilePath path, 30 base::FilePath path,
31 const EventDeviceInfo& info); 31 const EventDeviceInfo& info,
32 const EventDispatchCallback& dispatch);
32 virtual ~TouchEventConverterEvdev(); 33 virtual ~TouchEventConverterEvdev();
33 34
34 // Start & stop watching for events. 35 // Start & stop watching for events.
35 virtual void Start() OVERRIDE; 36 virtual void Start() OVERRIDE;
36 virtual void Stop() OVERRIDE; 37 virtual void Stop() OVERRIDE;
37 38
38 private: 39 private:
39 friend class MockTouchEventConverterEvdev; 40 friend class MockTouchEventConverterEvdev;
40 41
41 // Unsafe part of initialization. 42 // Unsafe part of initialization.
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // Controller for watching the input fd. 92 // Controller for watching the input fd.
92 base::MessagePumpLibevent::FileDescriptorWatcher controller_; 93 base::MessagePumpLibevent::FileDescriptorWatcher controller_;
93 94
94 DISALLOW_COPY_AND_ASSIGN(TouchEventConverterEvdev); 95 DISALLOW_COPY_AND_ASSIGN(TouchEventConverterEvdev);
95 }; 96 };
96 97
97 } // namespace ui 98 } // namespace ui
98 99
99 #endif // UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_ 100 #endif // UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_
100 101
OLDNEW
« no previous file with comments | « ui/events/ozone/evdev/libgestures_glue/gesture_timer_provider.cc ('k') | ui/events/ozone/evdev/touch_event_converter_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698