OLD | NEW |
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 Loading... |
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 |
OLD | NEW |