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 #ifndef UI_AURA_WINDOW_TREE_HOST_X11_H_ | 5 #ifndef UI_AURA_WINDOW_TREE_HOST_X11_H_ |
6 #define UI_AURA_WINDOW_TREE_HOST_X11_H_ | 6 #define UI_AURA_WINDOW_TREE_HOST_X11_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 | 11 |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "ui/aura/aura_export.h" | 13 #include "ui/aura/aura_export.h" |
14 #include "ui/aura/window_tree_host.h" | 14 #include "ui/aura/window_tree_host.h" |
15 #include "ui/events/platform/platform_event_dispatcher.h" | 15 #include "ui/events/platform/platform_event_dispatcher.h" |
16 #include "ui/gfx/geometry/insets.h" | 16 #include "ui/gfx/geometry/insets.h" |
17 #include "ui/gfx/geometry/rect.h" | 17 #include "ui/gfx/geometry/rect.h" |
18 #include "ui/gfx/x/x11_atom_cache.h" | 18 #include "ui/gfx/x/x11_atom_cache.h" |
19 | 19 |
20 // X forward decls to avoid including Xlib.h in a header file. | 20 // X forward decls to avoid including Xlib.h in a header file. |
21 typedef struct _XDisplay XDisplay; | 21 typedef struct _XDisplay XDisplay; |
22 typedef unsigned long XID; | 22 typedef unsigned long XID; |
23 typedef XID Window; | 23 typedef XID Window; |
24 | 24 |
25 namespace ui { | 25 namespace ui { |
26 class MouseEvent; | |
27 class XScopedEventSelector; | 26 class XScopedEventSelector; |
28 } | 27 } |
29 | 28 |
30 namespace aura { | 29 namespace aura { |
31 | 30 |
32 class AURA_EXPORT WindowTreeHostX11 : public WindowTreeHost, | 31 class AURA_EXPORT WindowTreeHostX11 : public WindowTreeHost, |
33 public ui::PlatformEventDispatcher { | 32 public ui::PlatformEventDispatcher { |
34 public: | 33 public: |
35 explicit WindowTreeHostX11(const gfx::Rect& bounds); | 34 explicit WindowTreeHostX11(const gfx::Rect& bounds); |
36 ~WindowTreeHostX11() override; | 35 ~WindowTreeHostX11() override; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 namespace test { | 105 namespace test { |
107 | 106 |
108 // Set the default value of the override redirect flag used to | 107 // Set the default value of the override redirect flag used to |
109 // create a X window for WindowTreeHostX11. | 108 // create a X window for WindowTreeHostX11. |
110 AURA_EXPORT void SetUseOverrideRedirectWindowByDefault(bool override_redirect); | 109 AURA_EXPORT void SetUseOverrideRedirectWindowByDefault(bool override_redirect); |
111 | 110 |
112 } // namespace test | 111 } // namespace test |
113 } // namespace aura | 112 } // namespace aura |
114 | 113 |
115 #endif // UI_AURA_WINDOW_TREE_HOST_X11_H_ | 114 #endif // UI_AURA_WINDOW_TREE_HOST_X11_H_ |
OLD | NEW |