OLD | NEW |
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/platform_window/x11/x11_window.h" | 5 #include "ui/platform_window/x11/x11_window.h" |
6 | 6 |
7 #include <X11/extensions/XInput2.h> | 7 #include <X11/extensions/XInput2.h> |
8 #include <X11/Xatom.h> | 8 #include <X11/Xatom.h> |
9 #include <X11/Xlib.h> | 9 #include <X11/Xlib.h> |
10 #include <X11/Xutil.h> | 10 #include <X11/Xutil.h> |
11 | 11 |
12 #include "ui/events/event.h" | 12 #include "ui/events/event.h" |
13 #include "ui/events/event_utils.h" | 13 #include "ui/events/event_utils.h" |
14 #include "ui/events/platform/platform_event_dispatcher.h" | 14 #include "ui/events/platform/platform_event_dispatcher.h" |
15 #include "ui/events/platform/platform_event_source.h" | 15 #include "ui/events/platform/platform_event_source.h" |
16 #include "ui/events/platform/x11/x11_event_source.h" | 16 #include "ui/events/platform/x11/x11_event_source.h" |
17 #include "ui/events/x/touch_factory_x11.h" | 17 #include "ui/events/x/touch_factory_x11.h" |
18 #include "ui/gfx/geometry/rect.h" | 18 #include "ui/gfx/geometry/rect.h" |
19 #include "ui/gfx/x/x11_atom_cache.h" | 19 #include "ui/gfx/x/x11_atom_cache.h" |
20 #include "ui/gfx/x/x11_types.h" | 20 #include "ui/gfx/x/x11_types.h" |
21 #include "ui/platform_window/platform_window_delegate.h" | 21 #include "ui/platform_window/types/platform_window_delegate.h" |
22 | 22 |
23 namespace ui { | 23 namespace ui { |
24 | 24 |
25 namespace { | 25 namespace { |
26 | 26 |
27 const char* kAtomsToCache[] = { | 27 const char* kAtomsToCache[] = { |
28 "WM_DELETE_WINDOW", | 28 "WM_DELETE_WINDOW", |
29 "_NET_WM_PING", | 29 "_NET_WM_PING", |
30 "_NET_WM_PID", | 30 "_NET_WM_PID", |
31 NULL | 31 NULL |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 | 346 |
347 case GenericEvent: { | 347 case GenericEvent: { |
348 ProcessXInput2Event(xev); | 348 ProcessXInput2Event(xev); |
349 break; | 349 break; |
350 } | 350 } |
351 } | 351 } |
352 return POST_DISPATCH_STOP_PROPAGATION; | 352 return POST_DISPATCH_STOP_PROPAGATION; |
353 } | 353 } |
354 | 354 |
355 } // namespace ui | 355 } // namespace ui |
OLD | NEW |