| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/event_utils.h" | 5 #include "ui/events/event_utils.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <string.h> | 8 #include <string.h> |
| 9 #include <X11/extensions/XInput.h> | 9 #include <X11/extensions/XInput.h> |
| 10 #include <X11/extensions/XInput2.h> | 10 #include <X11/extensions/XInput2.h> |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 namespace ui { | 77 namespace ui { |
| 78 | 78 |
| 79 EventType EventTypeFromNative(const base::NativeEvent& native_event) { | 79 EventType EventTypeFromNative(const base::NativeEvent& native_event) { |
| 80 return EventTypeFromXEvent(*native_event); | 80 return EventTypeFromXEvent(*native_event); |
| 81 } | 81 } |
| 82 | 82 |
| 83 int EventFlagsFromNative(const base::NativeEvent& native_event) { | 83 int EventFlagsFromNative(const base::NativeEvent& native_event) { |
| 84 return EventFlagsFromXEvent(*native_event); | 84 return EventFlagsFromXEvent(*native_event); |
| 85 } | 85 } |
| 86 | 86 |
| 87 base::TimeDelta EventTimeFromNative(const base::NativeEvent& native_event) { | 87 base::TimeTicks EventTimeFromNative(const base::NativeEvent& native_event) { |
| 88 return EventTimeFromXEvent(*native_event); | 88 return EventTimeFromXEvent(*native_event); |
| 89 } | 89 } |
| 90 | 90 |
| 91 gfx::Point EventLocationFromNative(const base::NativeEvent& native_event) { | 91 gfx::Point EventLocationFromNative(const base::NativeEvent& native_event) { |
| 92 return EventLocationFromXEvent(*native_event); | 92 return EventLocationFromXEvent(*native_event); |
| 93 } | 93 } |
| 94 | 94 |
| 95 gfx::Point EventSystemLocationFromNative( | 95 gfx::Point EventSystemLocationFromNative( |
| 96 const base::NativeEvent& native_event) { | 96 const base::NativeEvent& native_event) { |
| 97 return EventSystemLocationFromXEvent(*native_event); | 97 return EventSystemLocationFromXEvent(*native_event); |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 xievent->detail = | 225 xievent->detail = |
| 226 UpdateX11EventButton(event->changed_button_flags(), xievent->detail); | 226 UpdateX11EventButton(event->changed_button_flags(), xievent->detail); |
| 227 break; | 227 break; |
| 228 } | 228 } |
| 229 default: | 229 default: |
| 230 break; | 230 break; |
| 231 } | 231 } |
| 232 } | 232 } |
| 233 | 233 |
| 234 } // namespace ui | 234 } // namespace ui |
| OLD | NEW |