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

Side by Side Diff: ui/events/devices/x11/device_data_manager_x11.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, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/devices/x11/device_data_manager_x11.h" 5 #include "ui/events/devices/x11/device_data_manager_x11.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <X11/extensions/XInput.h> 8 #include <X11/extensions/XInput.h>
9 #include <X11/extensions/XInput2.h> 9 #include <X11/extensions/XInput2.h>
10 #include <X11/Xlib.h> 10 #include <X11/Xlib.h>
11 11
12 #include <utility> 12 #include <utility>
13 13
14 #include "base/bind.h" 14 #include "base/bind.h"
15 #include "base/bind_helpers.h" 15 #include "base/bind_helpers.h"
16 #include "base/logging.h" 16 #include "base/logging.h"
17 #include "base/macros.h" 17 #include "base/macros.h"
18 #include "base/memory/singleton.h" 18 #include "base/memory/singleton.h"
19 #include "base/sys_info.h" 19 #include "base/sys_info.h"
20 #include "build/build_config.h" 20 #include "build/build_config.h"
21 #include "ui/display/display.h"
21 #include "ui/events/devices/keyboard_device.h" 22 #include "ui/events/devices/keyboard_device.h"
22 #include "ui/events/devices/x11/device_list_cache_x11.h" 23 #include "ui/events/devices/x11/device_list_cache_x11.h"
23 #include "ui/events/devices/x11/touch_factory_x11.h" 24 #include "ui/events/devices/x11/touch_factory_x11.h"
24 #include "ui/events/event_constants.h" 25 #include "ui/events/event_constants.h"
25 #include "ui/events/event_switches.h" 26 #include "ui/events/event_switches.h"
26 #include "ui/events/keycodes/keyboard_code_conversion_x.h" 27 #include "ui/events/keycodes/keyboard_code_conversion_x.h"
27 #include "ui/gfx/display.h"
28 #include "ui/gfx/geometry/point3_f.h" 28 #include "ui/gfx/geometry/point3_f.h"
29 #include "ui/gfx/x/x11_types.h" 29 #include "ui/gfx/x/x11_types.h"
30 30
31 // XIScrollClass was introduced in XI 2.1 so we need to define it here 31 // XIScrollClass was introduced in XI 2.1 so we need to define it here
32 // for backward-compatibility with older versions of XInput. 32 // for backward-compatibility with older versions of XInput.
33 #if !defined(XIScrollClass) 33 #if !defined(XIScrollClass)
34 #define XIScrollClass 3 34 #define XIScrollClass 3
35 #endif 35 #endif
36 36
37 // Multi-touch support was introduced in XI 2.2. Add XI event types here 37 // Multi-touch support was introduced in XI 2.2. Add XI event types here
(...skipping 843 matching lines...) Expand 10 before | Expand all | Expand 10 after
881 } else { 881 } else {
882 keyboards.erase(it); 882 keyboards.erase(it);
883 ++blocked_iter; 883 ++blocked_iter;
884 } 884 }
885 } 885 }
886 // Notify base class of updated list. 886 // Notify base class of updated list.
887 DeviceDataManager::OnKeyboardDevicesUpdated(keyboards); 887 DeviceDataManager::OnKeyboardDevicesUpdated(keyboards);
888 } 888 }
889 889
890 } // namespace ui 890 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698