| 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/views/events/event.h" | 5 #include "ui/views/events/event.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "ui/base/keycodes/keyboard_code_conversion.h" | 8 #include "ui/base/keycodes/keyboard_code_conversion.h" |
| 9 #include "ui/views/widget/root_view.h" | |
| 10 #include "views/view.h" | 9 #include "views/view.h" |
| 10 #include "views/widget/root_view.h" |
| 11 | 11 |
| 12 namespace views { | 12 namespace views { |
| 13 | 13 |
| 14 //////////////////////////////////////////////////////////////////////////////// | 14 //////////////////////////////////////////////////////////////////////////////// |
| 15 // Event, protected: | 15 // Event, protected: |
| 16 | 16 |
| 17 Event::Event(ui::EventType type, int flags) | 17 Event::Event(ui::EventType type, int flags) |
| 18 : type_(type), | 18 : type_(type), |
| 19 time_stamp_(base::Time::NowFromSystemTime()), | 19 time_stamp_(base::Time::NowFromSystemTime()), |
| 20 flags_(flags) { | 20 flags_(flags) { |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 } | 191 } |
| 192 | 192 |
| 193 //////////////////////////////////////////////////////////////////////////////// | 193 //////////////////////////////////////////////////////////////////////////////// |
| 194 // MouseWheelEvent, public: | 194 // MouseWheelEvent, public: |
| 195 | 195 |
| 196 // This value matches windows WHEEL_DELTA. | 196 // This value matches windows WHEEL_DELTA. |
| 197 // static | 197 // static |
| 198 const int MouseWheelEvent::kWheelDelta = 120; | 198 const int MouseWheelEvent::kWheelDelta = 120; |
| 199 | 199 |
| 200 } // namespace views | 200 } // namespace views |
| OLD | NEW |