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

Side by Side Diff: ui/events/ozone/evdev/event_converter_evdev.cc

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 #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
OLDNEW
« no previous file with comments | « ui/events/ozone/evdev/event_converter_evdev.h ('k') | ui/events/ozone/evdev/event_device_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698