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 "ui/aura/event.h" | 5 #include "ui/aura/event.h" |
6 | 6 |
7 #include "ui/aura/window.h" | 7 #include "ui/aura/window.h" |
8 | 8 |
9 namespace aura { | 9 namespace aura { |
10 | 10 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 const gfx::Point& location, | 42 const gfx::Point& location, |
43 int flags) | 43 int flags) |
44 : Event(type, flags), | 44 : Event(type, flags), |
45 location_(location) { | 45 location_(location) { |
46 } | 46 } |
47 | 47 |
48 MouseEvent::MouseEvent(const MouseEvent& model, Window* source, Window* target) | 48 MouseEvent::MouseEvent(const MouseEvent& model, Window* source, Window* target) |
49 : LocatedEvent(model, source, target) { | 49 : LocatedEvent(model, source, target) { |
50 } | 50 } |
51 | 51 |
| 52 MouseEvent::MouseEvent(const MouseEvent& model, |
| 53 Window* source, |
| 54 Window* target, |
| 55 ui::EventType type) |
| 56 : LocatedEvent(model, source, target) { |
| 57 set_type(type); |
| 58 } |
| 59 |
52 MouseEvent::MouseEvent(ui::EventType type, | 60 MouseEvent::MouseEvent(ui::EventType type, |
53 const gfx::Point& location, | 61 const gfx::Point& location, |
54 int flags) | 62 int flags) |
55 : LocatedEvent(type, location, flags) { | 63 : LocatedEvent(type, location, flags) { |
56 } | 64 } |
57 | 65 |
58 KeyEvent::KeyEvent(ui::EventType type, | 66 KeyEvent::KeyEvent(ui::EventType type, |
59 ui::KeyboardCode key_code, | 67 ui::KeyboardCode key_code, |
60 int flags) | 68 int flags) |
61 : Event(type, flags), | 69 : Event(type, flags), |
62 key_code_(key_code) { | 70 key_code_(key_code) { |
63 } | 71 } |
64 | 72 |
65 } // namespace aura | 73 } // namespace aura |
66 | 74 |
OLD | NEW |