OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/events/event.h" | 5 #include "ui/events/event.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 | 10 |
11 #if defined(USE_X11) | 11 #if defined(USE_X11) |
12 #include <X11/extensions/XInput2.h> | 12 #include <X11/extensions/XInput2.h> |
13 #include <X11/keysym.h> | 13 #include <X11/keysym.h> |
14 #include <X11/Xlib.h> | 14 #include <X11/Xlib.h> |
15 #endif | 15 #endif |
16 | 16 |
17 #include <cmath> | 17 #include <cmath> |
18 #include <cstring> | 18 #include <cstring> |
19 | 19 |
20 #include "base/metrics/histogram.h" | 20 #include "base/metrics/histogram.h" |
| 21 #include "base/metrics/histogram_macros.h" |
21 #include "base/strings/stringprintf.h" | 22 #include "base/strings/stringprintf.h" |
22 #include "build/build_config.h" | 23 #include "build/build_config.h" |
23 #include "ui/events/base_event_utils.h" | 24 #include "ui/events/base_event_utils.h" |
24 #include "ui/events/event_utils.h" | 25 #include "ui/events/event_utils.h" |
25 #include "ui/events/keycodes/dom/dom_code.h" | 26 #include "ui/events/keycodes/dom/dom_code.h" |
26 #include "ui/events/keycodes/dom/dom_key.h" | 27 #include "ui/events/keycodes/dom/dom_key.h" |
27 #include "ui/events/keycodes/dom/keycode_converter.h" | 28 #include "ui/events/keycodes/dom/keycode_converter.h" |
28 #include "ui/events/keycodes/keyboard_code_conversion.h" | 29 #include "ui/events/keycodes/keyboard_code_conversion.h" |
29 #include "ui/gfx/geometry/point3_f.h" | 30 #include "ui/gfx/geometry/point3_f.h" |
30 #include "ui/gfx/geometry/point_conversions.h" | 31 #include "ui/gfx/geometry/point_conversions.h" |
(...skipping 1268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1299 gfx::PointF(x, y), | 1300 gfx::PointF(x, y), |
1300 time_stamp, | 1301 time_stamp, |
1301 flags | EF_FROM_TOUCH), | 1302 flags | EF_FROM_TOUCH), |
1302 details_(details), | 1303 details_(details), |
1303 unique_touch_event_id_(unique_touch_event_id) {} | 1304 unique_touch_event_id_(unique_touch_event_id) {} |
1304 | 1305 |
1305 GestureEvent::~GestureEvent() { | 1306 GestureEvent::~GestureEvent() { |
1306 } | 1307 } |
1307 | 1308 |
1308 } // namespace ui | 1309 } // namespace ui |
OLD | NEW |