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

Side by Side Diff: ui/events/x/events_x.cc

Issue 1922783002: Move gfx::Display/Screen to display::Display/Screen in aura/events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
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_utils.h" 5 #include "ui/events/event_utils.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <string.h> 8 #include <string.h>
9 #include <X11/extensions/XInput.h> 9 #include <X11/extensions/XInput.h>
10 #include <X11/extensions/XInput2.h> 10 #include <X11/extensions/XInput2.h>
11 #include <X11/XKBlib.h> 11 #include <X11/XKBlib.h>
12 #include <X11/Xlib.h> 12 #include <X11/Xlib.h>
13 #include <X11/Xutil.h> 13 #include <X11/Xutil.h>
14 #include <cmath> 14 #include <cmath>
15 15
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/memory/singleton.h" 17 #include "base/memory/singleton.h"
18 #include "build/build_config.h" 18 #include "build/build_config.h"
19 #include "ui/display/display.h"
20 #include "ui/display/screen.h"
19 #include "ui/events/devices/x11/device_data_manager_x11.h" 21 #include "ui/events/devices/x11/device_data_manager_x11.h"
20 #include "ui/events/devices/x11/device_list_cache_x11.h" 22 #include "ui/events/devices/x11/device_list_cache_x11.h"
21 #include "ui/events/devices/x11/touch_factory_x11.h" 23 #include "ui/events/devices/x11/touch_factory_x11.h"
22 #include "ui/events/event.h" 24 #include "ui/events/event.h"
23 #include "ui/events/event_constants.h" 25 #include "ui/events/event_constants.h"
24 #include "ui/events/keycodes/keyboard_code_conversion_x.h" 26 #include "ui/events/keycodes/keyboard_code_conversion_x.h"
25 #include "ui/events/x/events_x_utils.h" 27 #include "ui/events/x/events_x_utils.h"
26 #include "ui/gfx/display.h"
27 #include "ui/gfx/geometry/point.h" 28 #include "ui/gfx/geometry/point.h"
28 #include "ui/gfx/screen.h"
29 #include "ui/gfx/x/x11_atom_cache.h" 29 #include "ui/gfx/x/x11_atom_cache.h"
30 #include "ui/gfx/x/x11_types.h" 30 #include "ui/gfx/x/x11_types.h"
31 31
32 namespace { 32 namespace {
33 33
34 unsigned int UpdateX11EventFlags(int ui_flags, unsigned int old_x_flags) { 34 unsigned int UpdateX11EventFlags(int ui_flags, unsigned int old_x_flags) {
35 static struct { 35 static struct {
36 int ui; 36 int ui;
37 int x; 37 int x;
38 } flags[] = { 38 } flags[] = {
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 xievent->detail = 232 xievent->detail =
233 UpdateX11EventButton(event->changed_button_flags(), xievent->detail); 233 UpdateX11EventButton(event->changed_button_flags(), xievent->detail);
234 break; 234 break;
235 } 235 }
236 default: 236 default:
237 break; 237 break;
238 } 238 }
239 } 239 }
240 240
241 } // namespace ui 241 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698