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

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

Issue 1136503003: Consolidate ui/events/keycodes/dom[34]/ into .../dom/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 7 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
« no previous file with comments | « ui/events/ozone/BUILD.gn ('k') | ui/events/ozone/evdev/event_converter_evdev_impl_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_impl.h" 5 #include "ui/events/ozone/evdev/event_converter_evdev_impl.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <linux/input.h> 8 #include <linux/input.h>
9 9
10 #include "base/trace_event/trace_event.h" 10 #include "base/trace_event/trace_event.h"
11 #include "ui/events/event.h" 11 #include "ui/events/event.h"
12 #include "ui/events/event_utils.h" 12 #include "ui/events/event_utils.h"
13 #include "ui/events/keycodes/dom4/keycode_converter.h" 13 #include "ui/events/keycodes/dom/keycode_converter.h"
14 #include "ui/events/ozone/evdev/device_event_dispatcher_evdev.h" 14 #include "ui/events/ozone/evdev/device_event_dispatcher_evdev.h"
15 #include "ui/events/ozone/evdev/keyboard_util_evdev.h" 15 #include "ui/events/ozone/evdev/keyboard_util_evdev.h"
16 16
17 namespace ui { 17 namespace ui {
18 18
19 namespace { 19 namespace {
20 20
21 // Values for EV_KEY. 21 // Values for EV_KEY.
22 const int kKeyReleaseValue = 0; 22 const int kKeyReleaseValue = 0;
23 const int kKeyRepeatValue = 2; 23 const int kKeyRepeatValue = 2;
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 247
248 dispatcher_->DispatchMouseMoveEvent( 248 dispatcher_->DispatchMouseMoveEvent(
249 MouseMoveEventParams(input_device_.id, cursor_->GetLocation(), 249 MouseMoveEventParams(input_device_.id, cursor_->GetLocation(),
250 TimeDeltaFromInputEvent(input))); 250 TimeDeltaFromInputEvent(input)));
251 251
252 x_offset_ = 0; 252 x_offset_ = 0;
253 y_offset_ = 0; 253 y_offset_ = 0;
254 } 254 }
255 255
256 } // namespace ui 256 } // namespace ui
OLDNEW
« no previous file with comments | « ui/events/ozone/BUILD.gn ('k') | ui/events/ozone/evdev/event_converter_evdev_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698