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

Side by Side Diff: ui/events/ozone/evdev/key_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_KEY_EVENT_CONVERTER_EVDEV_H_ 5 #ifndef UI_EVENTS_OZONE_EVDEV_KEY_EVENT_CONVERTER_EVDEV_H_
6 #define UI_EVENTS_OZONE_EVDEV_KEY_EVENT_CONVERTER_EVDEV_H_ 6 #define UI_EVENTS_OZONE_EVDEV_KEY_EVENT_CONVERTER_EVDEV_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/message_loop/message_pump_libevent.h" 9 #include "base/message_loop/message_pump_libevent.h"
10 #include "ui/events/event.h" 10 #include "ui/events/event.h"
11 #include "ui/events/events_export.h" 11 #include "ui/events/events_export.h"
12 #include "ui/events/ozone/evdev/event_converter_evdev.h" 12 #include "ui/events/ozone/evdev/event_converter_evdev.h"
13 #include "ui/events/ozone/evdev/event_modifiers_evdev.h" 13 #include "ui/events/ozone/evdev/event_modifiers_evdev.h"
14 14
15 struct input_event; 15 struct input_event;
16 16
17 namespace ui { 17 namespace ui {
18 18
19 class EVENTS_EXPORT KeyEventConverterEvdev 19 class EVENTS_EXPORT KeyEventConverterEvdev
20 : public EventConverterEvdev, 20 : public EventConverterEvdev,
21 public base::MessagePumpLibevent::Watcher { 21 public base::MessagePumpLibevent::Watcher {
22 public: 22 public:
23 KeyEventConverterEvdev(int fd, 23 KeyEventConverterEvdev(int fd,
24 base::FilePath path, 24 base::FilePath path,
25 EventModifiersEvdev* modifiers); 25 EventModifiersEvdev* modifiers,
26 const EventDispatchCallback& dispatch);
26 virtual ~KeyEventConverterEvdev(); 27 virtual ~KeyEventConverterEvdev();
27 28
28 // Start & stop watching for events. 29 // Start & stop watching for events.
29 virtual void Start() OVERRIDE; 30 virtual void Start() OVERRIDE;
30 virtual void Stop() OVERRIDE; 31 virtual void Stop() OVERRIDE;
31 32
32 // Overidden from base::MessagePumpLibevent::Watcher. 33 // Overidden from base::MessagePumpLibevent::Watcher.
33 virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE; 34 virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE;
34 virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE; 35 virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE;
35 36
(...skipping 14 matching lines...) Expand all
50 51
51 void ConvertKeyEvent(int key, int value); 52 void ConvertKeyEvent(int key, int value);
52 53
53 DISALLOW_COPY_AND_ASSIGN(KeyEventConverterEvdev); 54 DISALLOW_COPY_AND_ASSIGN(KeyEventConverterEvdev);
54 }; 55 };
55 56
56 } // namspace ui 57 } // namspace ui
57 58
58 #endif // UI_EVENTS_OZONE_EVDEV_KEY_EVENT_CONVERTER_EVDEV_H_ 59 #endif // UI_EVENTS_OZONE_EVDEV_KEY_EVENT_CONVERTER_EVDEV_H_
59 60
OLDNEW
« no previous file with comments | « ui/events/ozone/evdev/event_modifiers_evdev.cc ('k') | ui/events/ozone/evdev/key_event_converter_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698