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

Side by Side Diff: ui/events/ozone/events_ozone.cc

Issue 750593003: Ozone X11 platform Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup leftover stuff Created 6 years 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/keycodes/keyboard_codes_posix.h ('k') | ui/events/platform/BUILD.gn » ('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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/events_ozone.h" 5 #include "ui/events/ozone/events_ozone.h"
6 6
7 #include "ui/events/event.h" 7 #include "ui/events/event.h"
8 #include "ui/events/event_constants.h" 8 #include "ui/events/event_constants.h"
9 #include "ui/events/event_utils.h" 9 #include "ui/events/event_utils.h"
10 10
11 namespace ui { 11 namespace ui {
12 12
13 void UpdateDeviceList() { NOTIMPLEMENTED(); }
14
15 base::TimeDelta EventTimeFromNative(const base::NativeEvent& native_event) { 13 base::TimeDelta EventTimeFromNative(const base::NativeEvent& native_event) {
16 const ui::Event* event = static_cast<const ui::Event*>(native_event); 14 const ui::Event* event = static_cast<const ui::Event*>(native_event);
17 return event->time_stamp(); 15 return event->time_stamp();
18 } 16 }
19 17
20 int EventFlagsFromNative(const base::NativeEvent& native_event) { 18 int EventFlagsFromNative(const base::NativeEvent& native_event) {
21 const ui::Event* event = static_cast<const ui::Event*>(native_event); 19 const ui::Event* event = static_cast<const ui::Event*>(native_event);
22 return event->flags(); 20 return event->flags();
23 } 21 }
24 22
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 callback.Run(&touch_event); 193 callback.Run(&touch_event);
196 } else if (native_ui_event->IsScrollEvent()) { 194 } else if (native_ui_event->IsScrollEvent()) {
197 ui::ScrollEvent scroll_event(native_event); 195 ui::ScrollEvent scroll_event(native_event);
198 callback.Run(&scroll_event); 196 callback.Run(&scroll_event);
199 } else { 197 } else {
200 NOTREACHED(); 198 NOTREACHED();
201 } 199 }
202 } 200 }
203 201
204 } // namespace ui 202 } // namespace ui
OLDNEW
« no previous file with comments | « ui/events/keycodes/keyboard_codes_posix.h ('k') | ui/events/platform/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698