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

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

Issue 397063004: wip: not complete. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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"
(...skipping 11 matching lines...) Expand all
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 const EventDispatchCallback& dispatch);
27 virtual ~KeyEventConverterEvdev(); 27 virtual ~KeyEventConverterEvdev();
28 28
29 // Start & stop watching for events. 29 // Start & stop watching for events.
30 virtual void Start() OVERRIDE; 30 virtual void Start() OVERRIDE;
31 virtual void Stop() OVERRIDE; 31 virtual void Stop() OVERRIDE;
32 virtual bool HasIndirectTouch() OVERRIDE;
33 virtual bool HasRelXY() OVERRIDE;
32 34
33 // Overidden from base::MessagePumpLibevent::Watcher. 35 // Overidden from base::MessagePumpLibevent::Watcher.
34 virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE; 36 virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE;
35 virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE; 37 virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE;
36 38
37 void ProcessEvents(const struct input_event* inputs, int count); 39 void ProcessEvents(const struct input_event* inputs, int count);
38 40
39 private: 41 private:
40 // File descriptor for the /dev/input/event* instance. 42 // File descriptor for the /dev/input/event* instance.
41 int fd_; 43 int fd_;
42 44
43 // Path to input device. 45 // Path to input device.
44 base::FilePath path_; 46 base::FilePath path_;
45 47
46 // Shared modifier state. 48 // Shared modifier state.
47 EventModifiersEvdev* modifiers_; 49 EventModifiersEvdev* modifiers_;
48 50
49 // Controller for watching the input fd. 51 // Controller for watching the input fd.
50 base::MessagePumpLibevent::FileDescriptorWatcher controller_; 52 base::MessagePumpLibevent::FileDescriptorWatcher controller_;
51 53
52 void ConvertKeyEvent(int key, int value); 54 void ConvertKeyEvent(int key, int value);
53 55
54 DISALLOW_COPY_AND_ASSIGN(KeyEventConverterEvdev); 56 DISALLOW_COPY_AND_ASSIGN(KeyEventConverterEvdev);
55 }; 57 };
56 58
57 } // namspace ui 59 } // namspace ui
58 60
59 #endif // UI_EVENTS_OZONE_EVDEV_KEY_EVENT_CONVERTER_EVDEV_H_ 61 #endif // UI_EVENTS_OZONE_EVDEV_KEY_EVENT_CONVERTER_EVDEV_H_
60 62
OLDNEW
« no previous file with comments | « ui/events/ozone/evdev/event_factory_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