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/view.h" |
9 #include "ui/views/widget/root_view.h" | 10 #include "ui/views/widget/root_view.h" |
10 #include "views/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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 | 195 |
196 #if defined(OS_WIN) | 196 #if defined(OS_WIN) |
197 // This value matches windows WHEEL_DELTA. | 197 // This value matches windows WHEEL_DELTA. |
198 // static | 198 // static |
199 const int MouseWheelEvent::kWheelDelta = 120; | 199 const int MouseWheelEvent::kWheelDelta = 120; |
200 #else | 200 #else |
201 // This value matches GTK+ wheel scroll amount. | 201 // This value matches GTK+ wheel scroll amount. |
202 const int MouseWheelEvent::kWheelDelta = 53; | 202 const int MouseWheelEvent::kWheelDelta = 53; |
203 #endif | 203 #endif |
204 } // namespace views | 204 } // namespace views |
OLD | NEW |