Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: ui/events/event.cc

Issue 1285183008: Ozone integration. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: add missing license header Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/events/BUILD.gn ('k') | ui/events/ozone/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ui/events/BUILD.gn ('k') | ui/events/ozone/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698