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

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

Issue 623293004: replace OVERRIDE and FINAL with override and final in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master 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_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/ozone/evdev/event_converter_evdev.h" 11 #include "ui/events/ozone/evdev/event_converter_evdev.h"
12 #include "ui/events/ozone/evdev/event_modifiers_evdev.h" 12 #include "ui/events/ozone/evdev/event_modifiers_evdev.h"
13 #include "ui/events/ozone/evdev/events_ozone_evdev_export.h" 13 #include "ui/events/ozone/evdev/events_ozone_evdev_export.h"
14 14
15 struct input_event; 15 struct input_event;
16 16
17 namespace ui { 17 namespace ui {
18 18
19 class EVENTS_OZONE_EVDEV_EXPORT KeyEventConverterEvdev 19 class EVENTS_OZONE_EVDEV_EXPORT KeyEventConverterEvdev
20 : public EventConverterEvdev { 20 : public EventConverterEvdev {
21 public: 21 public:
22 KeyEventConverterEvdev(int fd, 22 KeyEventConverterEvdev(int fd,
23 base::FilePath path, 23 base::FilePath path,
24 int id, 24 int id,
25 EventModifiersEvdev* modifiers, 25 EventModifiersEvdev* modifiers,
26 const EventDispatchCallback& dispatch); 26 const EventDispatchCallback& dispatch);
27 virtual ~KeyEventConverterEvdev(); 27 virtual ~KeyEventConverterEvdev();
28 28
29 // EventConverterEvdev: 29 // EventConverterEvdev:
30 virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE; 30 virtual void OnFileCanReadWithoutBlocking(int fd) override;
31 31
32 void ProcessEvents(const struct input_event* inputs, int count); 32 void ProcessEvents(const struct input_event* inputs, int count);
33 33
34 private: 34 private:
35 // Callback for dispatching events. 35 // Callback for dispatching events.
36 EventDispatchCallback callback_; 36 EventDispatchCallback callback_;
37 37
38 // Shared modifier state. 38 // Shared modifier state.
39 EventModifiersEvdev* modifiers_; 39 EventModifiersEvdev* modifiers_;
40 40
41 // Controller for watching the input fd. 41 // Controller for watching the input fd.
42 base::MessagePumpLibevent::FileDescriptorWatcher controller_; 42 base::MessagePumpLibevent::FileDescriptorWatcher controller_;
43 43
44 void ConvertKeyEvent(int key, int value); 44 void ConvertKeyEvent(int key, int value);
45 45
46 DISALLOW_COPY_AND_ASSIGN(KeyEventConverterEvdev); 46 DISALLOW_COPY_AND_ASSIGN(KeyEventConverterEvdev);
47 }; 47 };
48 48
49 } // namspace ui 49 } // namspace ui
50 50
51 #endif // UI_EVENTS_OZONE_EVDEV_KEY_EVENT_CONVERTER_EVDEV_H_ 51 #endif // UI_EVENTS_OZONE_EVDEV_KEY_EVENT_CONVERTER_EVDEV_H_
52 52
OLDNEW
« no previous file with comments | « ui/events/ozone/evdev/event_factory_evdev.h ('k') | ui/events/ozone/evdev/key_event_converter_evdev_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698