OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "aura/event.h" | 5 #include "ui/aura/event.h" |
6 | 6 |
7 #include <X11/Xlib.h> | 7 #include <X11/Xlib.h> |
8 #include <X11/extensions/XInput2.h> | 8 #include <X11/extensions/XInput2.h> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "ui/base/keycodes/keyboard_code_conversion_x.h" | 11 #include "ui/base/keycodes/keyboard_code_conversion_x.h" |
12 | 12 |
13 namespace aura { | 13 namespace aura { |
14 | 14 |
15 namespace { | 15 namespace { |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 } | 184 } |
185 | 185 |
186 KeyEvent::KeyEvent(NativeEvent native_event) | 186 KeyEvent::KeyEvent(NativeEvent native_event) |
187 : Event(native_event, | 187 : Event(native_event, |
188 EventTypeFromNative(native_event), | 188 EventTypeFromNative(native_event), |
189 GetEventFlagsFromXState(native_event->xbutton.state)), | 189 GetEventFlagsFromXState(native_event->xbutton.state)), |
190 key_code_(ui::KeyboardCodeFromXKeyEvent(native_event)) { | 190 key_code_(ui::KeyboardCodeFromXKeyEvent(native_event)) { |
191 } | 191 } |
192 | 192 |
193 } // namespace aura | 193 } // namespace aura |
OLD | NEW |