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 #if defined(USE_X11) | 7 #if defined(USE_X11) |
8 #include <X11/extensions/XInput2.h> | 8 #include <X11/extensions/XInput2.h> |
9 #include <X11/Xlib.h> | 9 #include <X11/Xlib.h> |
10 #endif | 10 #endif |
11 | 11 |
12 #include <cmath> | 12 #include <cmath> |
13 #include <cstring> | 13 #include <cstring> |
14 | 14 |
15 #include "base/metrics/histogram.h" | 15 #include "base/metrics/histogram.h" |
16 #include "base/strings/stringprintf.h" | 16 #include "base/strings/stringprintf.h" |
17 #include "ui/events/event_utils.h" | 17 #include "ui/events/event_utils.h" |
18 #include "ui/events/keycodes/keyboard_code_conversion.h" | 18 #include "ui/events/keycodes/keyboard_code_conversion.h" |
19 #include "ui/gfx/point3_f.h" | 19 #include "ui/gfx/geometry/point3_f.h" |
20 #include "ui/gfx/point_conversions.h" | 20 #include "ui/gfx/point_conversions.h" |
21 #include "ui/gfx/transform.h" | 21 #include "ui/gfx/transform.h" |
22 #include "ui/gfx/transform_util.h" | 22 #include "ui/gfx/transform_util.h" |
23 | 23 |
24 #if defined(USE_X11) | 24 #if defined(USE_X11) |
25 #include "ui/events/keycodes/keyboard_code_conversion_x.h" | 25 #include "ui/events/keycodes/keyboard_code_conversion_x.h" |
26 #elif defined(USE_OZONE) | 26 #elif defined(USE_OZONE) |
27 #include "ui/events/keycodes/keyboard_code_conversion.h" | 27 #include "ui/events/keycodes/keyboard_code_conversion.h" |
28 #endif | 28 #endif |
29 | 29 |
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
759 gfx::PointF(x, y), | 759 gfx::PointF(x, y), |
760 time_stamp, | 760 time_stamp, |
761 flags | EF_FROM_TOUCH), | 761 flags | EF_FROM_TOUCH), |
762 details_(details) { | 762 details_(details) { |
763 } | 763 } |
764 | 764 |
765 GestureEvent::~GestureEvent() { | 765 GestureEvent::~GestureEvent() { |
766 } | 766 } |
767 | 767 |
768 } // namespace ui | 768 } // namespace ui |
OLD | NEW |