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/keysym.h> | 9 #include <X11/keysym.h> |
10 #include <X11/Xlib.h> | 10 #include <X11/Xlib.h> |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "ui/events/keycodes/keyboard_code_conversion.h" | 23 #include "ui/events/keycodes/keyboard_code_conversion.h" |
24 #include "ui/gfx/geometry/point3_f.h" | 24 #include "ui/gfx/geometry/point3_f.h" |
25 #include "ui/gfx/geometry/point_conversions.h" | 25 #include "ui/gfx/geometry/point_conversions.h" |
26 #include "ui/gfx/geometry/safe_integer_conversions.h" | 26 #include "ui/gfx/geometry/safe_integer_conversions.h" |
27 #include "ui/gfx/transform.h" | 27 #include "ui/gfx/transform.h" |
28 #include "ui/gfx/transform_util.h" | 28 #include "ui/gfx/transform_util.h" |
29 | 29 |
30 #if defined(USE_X11) | 30 #if defined(USE_X11) |
31 #include "ui/events/keycodes/keyboard_code_conversion_x.h" | 31 #include "ui/events/keycodes/keyboard_code_conversion_x.h" |
32 #elif defined(USE_OZONE) | 32 #elif defined(USE_OZONE) |
33 #include "ui/events/ozone/layout/keyboard_layout_engine.h" | 33 #include "ui/events/ozone/layout/keyboard_layout_engine.h" // nogncheck |
34 #include "ui/events/ozone/layout/keyboard_layout_engine_manager.h" | 34 #include "ui/events/ozone/layout/keyboard_layout_engine_manager.h" // nogncheck |
35 #endif | 35 #endif |
36 | 36 |
37 namespace { | 37 namespace { |
38 | 38 |
39 std::string EventTypeName(ui::EventType type) { | 39 std::string EventTypeName(ui::EventType type) { |
40 #define RETURN_IF_TYPE(t) if (type == ui::t) return #t | 40 #define RETURN_IF_TYPE(t) if (type == ui::t) return #t |
41 #define CASE_TYPE(t) case ui::t: return #t | 41 #define CASE_TYPE(t) case ui::t: return #t |
42 switch (type) { | 42 switch (type) { |
43 CASE_TYPE(ET_UNKNOWN); | 43 CASE_TYPE(ET_UNKNOWN); |
44 CASE_TYPE(ET_MOUSE_PRESSED); | 44 CASE_TYPE(ET_MOUSE_PRESSED); |
(...skipping 928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
973 gfx::PointF(x, y), | 973 gfx::PointF(x, y), |
974 time_stamp, | 974 time_stamp, |
975 flags | EF_FROM_TOUCH), | 975 flags | EF_FROM_TOUCH), |
976 details_(details) { | 976 details_(details) { |
977 } | 977 } |
978 | 978 |
979 GestureEvent::~GestureEvent() { | 979 GestureEvent::~GestureEvent() { |
980 } | 980 } |
981 | 981 |
982 } // namespace ui | 982 } // namespace ui |
OLD | NEW |