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_VIEWS_WIDGET_DESKTOP_AURA_X11_DESKTOP_HANDLER_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_X11_DESKTOP_HANDLER_H_ |
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_X11_DESKTOP_HANDLER_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_X11_DESKTOP_HANDLER_H_ |
7 | 7 |
8 #include <X11/Xlib.h> | 8 #include <X11/Xlib.h> |
9 // Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class. | 9 // Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class. |
10 #undef RootWindow | 10 #undef RootWindow |
11 | 11 |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "ui/aura/env_observer.h" | 14 #include "ui/aura/env_observer.h" |
15 #include "ui/events/platform/platform_event_dispatcher.h" | 15 #include "ui/events/platform/platform_event_dispatcher.h" |
16 #include "ui/gfx/x/x11_atom_cache.h" | 16 #include "ui/gfx/x/x11_atom_cache.h" |
17 #include "ui/gfx/x/x11_types.h" | 17 #include "ui/gfx/x/x11_types.h" |
18 #include "ui/views/views_export.h" | 18 #include "ui/views/views_export.h" |
19 | 19 |
| 20 namespace base { |
20 template <typename T> struct DefaultSingletonTraits; | 21 template <typename T> struct DefaultSingletonTraits; |
| 22 } |
21 | 23 |
22 namespace views { | 24 namespace views { |
23 | 25 |
24 // A singleton that owns global objects related to the desktop and listens for | 26 // A singleton that owns global objects related to the desktop and listens for |
25 // X11 events on the X11 root window. Destroys itself when aura::Env is | 27 // X11 events on the X11 root window. Destroys itself when aura::Env is |
26 // deleted. | 28 // deleted. |
27 class VIEWS_EXPORT X11DesktopHandler : public ui::PlatformEventDispatcher, | 29 class VIEWS_EXPORT X11DesktopHandler : public ui::PlatformEventDispatcher, |
28 public aura::EnvObserver { | 30 public aura::EnvObserver { |
29 public: | 31 public: |
30 // Returns the singleton handler. | 32 // Returns the singleton handler. |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 ui::X11AtomCache atom_cache_; | 105 ui::X11AtomCache atom_cache_; |
104 | 106 |
105 bool wm_supports_active_window_; | 107 bool wm_supports_active_window_; |
106 | 108 |
107 DISALLOW_COPY_AND_ASSIGN(X11DesktopHandler); | 109 DISALLOW_COPY_AND_ASSIGN(X11DesktopHandler); |
108 }; | 110 }; |
109 | 111 |
110 } // namespace views | 112 } // namespace views |
111 | 113 |
112 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_X11_DESKTOP_HANDLER_H_ | 114 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_X11_DESKTOP_HANDLER_H_ |
OLD | NEW |