| 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 "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "ui/base/keycodes/keyboard_code_conversion_win.h" | 8 #include "ui/base/keycodes/keyboard_code_conversion_win.h" |
| 9 | 9 |
| 10 namespace aura { | 10 namespace aura { |
| 11 | 11 |
| 12 namespace { | 12 namespace { |
| 13 | 13 |
| 14 bool IsClientMouseEvent(const NativeEvent& native_event) { | 14 bool IsClientMouseEvent(const NativeEvent& native_event) { |
| 15 return native_event.message == WM_MOUSELEAVE || | 15 return native_event.message == WM_MOUSELEAVE || |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 } | 213 } |
| 214 | 214 |
| 215 KeyEvent::KeyEvent(NativeEvent native_event) | 215 KeyEvent::KeyEvent(NativeEvent native_event) |
| 216 : Event(native_event, | 216 : Event(native_event, |
| 217 EventTypeFromNative(native_event), | 217 EventTypeFromNative(native_event), |
| 218 GetKeyStateFlags()), | 218 GetKeyStateFlags()), |
| 219 key_code_(ui::KeyboardCodeForWindowsKeyCode(native_event.wParam)) { | 219 key_code_(ui::KeyboardCodeForWindowsKeyCode(native_event.wParam)) { |
| 220 } | 220 } |
| 221 | 221 |
| 222 } // namespace aura | 222 } // namespace aura |
| OLD | NEW |