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 #if !defined(OZONE_X11) |
13 void UpdateDeviceList() { NOTIMPLEMENTED(); } | 14 void UpdateDeviceList() { NOTIMPLEMENTED(); } |
| 15 #endif |
14 | 16 |
15 base::TimeDelta EventTimeFromNative(const base::NativeEvent& native_event) { | 17 base::TimeDelta EventTimeFromNative(const base::NativeEvent& native_event) { |
16 const ui::Event* event = static_cast<const ui::Event*>(native_event); | 18 const ui::Event* event = static_cast<const ui::Event*>(native_event); |
17 return event->time_stamp(); | 19 return event->time_stamp(); |
18 } | 20 } |
19 | 21 |
20 int EventFlagsFromNative(const base::NativeEvent& native_event) { | 22 int EventFlagsFromNative(const base::NativeEvent& native_event) { |
21 const ui::Event* event = static_cast<const ui::Event*>(native_event); | 23 const ui::Event* event = static_cast<const ui::Event*>(native_event); |
22 return event->flags(); | 24 return event->flags(); |
23 } | 25 } |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 callback.Run(&touch_event); | 194 callback.Run(&touch_event); |
193 } else if (native_ui_event->IsScrollEvent()) { | 195 } else if (native_ui_event->IsScrollEvent()) { |
194 ui::ScrollEvent scroll_event(native_event); | 196 ui::ScrollEvent scroll_event(native_event); |
195 callback.Run(&scroll_event); | 197 callback.Run(&scroll_event); |
196 } else { | 198 } else { |
197 NOTREACHED(); | 199 NOTREACHED(); |
198 } | 200 } |
199 } | 201 } |
200 | 202 |
201 } // namespace ui | 203 } // namespace ui |
OLD | NEW |