| 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_X11_DESKTOP_HANDLER_H_ | 5 #ifndef UI_VIEWS_WIDGET_X11_DESKTOP_HANDLER_H_ |
| 6 #define UI_VIEWS_WIDGET_X11_DESKTOP_HANDLER_H_ | 6 #define UI_VIEWS_WIDGET_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 "base/message_loop.h" | 12 #include "base/message_loop.h" |
| 13 #include "ui/aura/env_observer.h" | 13 #include "ui/aura/env_observer.h" |
| 14 #include "ui/aura/x11_atom_cache.h" | 14 #include "ui/base/x/x11_atom_cache.h" |
| 15 #include "ui/views/views_export.h" | 15 #include "ui/views/views_export.h" |
| 16 | 16 |
| 17 template <typename T> struct DefaultSingletonTraits; | 17 template <typename T> struct DefaultSingletonTraits; |
| 18 | 18 |
| 19 namespace aura { | 19 namespace aura { |
| 20 class FocusManager; | 20 class FocusManager; |
| 21 class DesktopActivationClient; | 21 class DesktopActivationClient; |
| 22 } | 22 } |
| 23 | 23 |
| 24 namespace views { | 24 namespace views { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 52 | 52 |
| 53 // Handles changes in activation. | 53 // Handles changes in activation. |
| 54 void OnActiveWindowChanged(::Window window); | 54 void OnActiveWindowChanged(::Window window); |
| 55 | 55 |
| 56 // The display and the native X window hosting the root window. | 56 // The display and the native X window hosting the root window. |
| 57 Display* xdisplay_; | 57 Display* xdisplay_; |
| 58 | 58 |
| 59 // The native root window. | 59 // The native root window. |
| 60 ::Window x_root_window_; | 60 ::Window x_root_window_; |
| 61 | 61 |
| 62 aura::X11AtomCache atom_cache_; | 62 ui::X11AtomCache atom_cache_; |
| 63 | 63 |
| 64 // Global focus/activation managers. | 64 // Global focus/activation managers. |
| 65 scoped_ptr<aura::FocusManager> focus_manager_; | 65 scoped_ptr<aura::FocusManager> focus_manager_; |
| 66 scoped_ptr<aura::DesktopActivationClient> desktop_activation_client_; | 66 scoped_ptr<aura::DesktopActivationClient> desktop_activation_client_; |
| 67 | 67 |
| 68 DISALLOW_COPY_AND_ASSIGN(X11DesktopHandler); | 68 DISALLOW_COPY_AND_ASSIGN(X11DesktopHandler); |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 } // namespace views | 71 } // namespace views |
| 72 | 72 |
| 73 #endif // UI_VIEWS_WIDGET_X11_DESKTOP_HANDLER_H_ | 73 #endif // UI_VIEWS_WIDGET_X11_DESKTOP_HANDLER_H_ |
| OLD | NEW |