| 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 "aura/window.h" | 7 #include "ui/aura/window.h" |
| 8 | 8 |
| 9 namespace aura { | 9 namespace aura { |
| 10 | 10 |
| 11 Event::Event(ui::EventType type, int flags) | 11 Event::Event(ui::EventType type, int flags) |
| 12 : type_(type), | 12 : type_(type), |
| 13 time_stamp_(base::Time::NowFromSystemTime()), | 13 time_stamp_(base::Time::NowFromSystemTime()), |
| 14 flags_(flags) { | 14 flags_(flags) { |
| 15 Init(); | 15 Init(); |
| 16 } | 16 } |
| 17 | 17 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 KeyEvent::KeyEvent(ui::EventType type, | 58 KeyEvent::KeyEvent(ui::EventType type, |
| 59 ui::KeyboardCode key_code, | 59 ui::KeyboardCode key_code, |
| 60 int flags) | 60 int flags) |
| 61 : Event(type, flags), | 61 : Event(type, flags), |
| 62 key_code_(key_code) { | 62 key_code_(key_code) { |
| 63 } | 63 } |
| 64 | 64 |
| 65 } // namespace aura | 65 } // namespace aura |
| 66 | 66 |
| OLD | NEW |