OLD | NEW |
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 #include "ui/events/ozone/evdev/event_converter_evdev.h" | 5 #include "ui/events/ozone/evdev/event_converter_evdev.h" |
6 | 6 |
7 #include "ui/events/event.h" | 7 #include "ui/events/event.h" |
8 #include "ui/events/ozone/event_factory_ozone.h" | 8 #include "ui/events/ozone/event_factory_ozone.h" |
9 | 9 |
10 namespace ui { | 10 namespace ui { |
11 | 11 |
12 EventConverterEvdev::EventConverterEvdev() {} | 12 EventConverterEvdev::EventConverterEvdev() {} |
13 | 13 |
| 14 EventConverterEvdev::EventConverterEvdev(const EventDispatchCallback& callback) |
| 15 : dispatch_callback_(callback) {} |
| 16 |
14 EventConverterEvdev::~EventConverterEvdev() {} | 17 EventConverterEvdev::~EventConverterEvdev() {} |
15 | 18 |
16 void EventConverterEvdev::DispatchEventToCallback(ui::Event* event) { | 19 void EventConverterEvdev::DispatchEventToCallback(ui::Event* event) { |
17 dispatch_callback_.Run(event); | 20 dispatch_callback_.Run(event); |
18 } | 21 } |
19 | 22 |
20 } // namespace ui | 23 } // namespace ui |
OLD | NEW |