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_DESKTOP_ROOT_WINDOW_HOST_LINUX_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_LINUX_H_ |
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_LINUX_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_LINUX_H_ |
7 | 7 |
8 #include <X11/Xlib.h> | 8 #include <X11/Xlib.h> |
9 | 9 |
10 // Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class. | 10 // Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class. |
11 #undef RootWindow | 11 #undef RootWindow |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "ui/aura/client/cursor_client.h" | 15 #include "ui/aura/client/cursor_client.h" |
16 #include "ui/aura/root_window_host.h" | 16 #include "ui/aura/root_window_host.h" |
17 #include "ui/gfx/rect.h" | 17 #include "ui/gfx/rect.h" |
18 #include "ui/base/cursor/cursor_loader_x11.h" | 18 #include "ui/base/cursor/cursor_loader_x11.h" |
19 #include "ui/base/x/x11_atom_cache.h" | 19 #include "ui/base/x/x11_atom_cache.h" |
20 #include "ui/views/ime/input_method_delegate.h" | 20 #include "ui/views/ime/input_method_delegate.h" |
21 #include "ui/views/views_export.h" | 21 #include "ui/views/views_export.h" |
22 #include "ui/views/widget/desktop_aura/desktop_root_window_host.h" | 22 #include "ui/views/widget/desktop_aura/desktop_root_window_host.h" |
23 | 23 |
24 namespace aura { | 24 namespace aura { |
25 class FocusManager; | |
26 namespace client { | 25 namespace client { |
27 class DefaultCaptureClient; | 26 class DefaultCaptureClient; |
| 27 class FocusClient; |
28 class ScreenPositionClient; | 28 class ScreenPositionClient; |
29 } | 29 } |
30 } | 30 } |
31 | 31 |
32 namespace views { | 32 namespace views { |
33 class DesktopActivationClient; | 33 class DesktopActivationClient; |
34 class DesktopCursorClient; | 34 class DesktopCursorClient; |
35 class DesktopDispatcherClient; | 35 class DesktopDispatcherClient; |
36 class X11DesktopWindowMoveClient; | 36 class X11DesktopWindowMoveClient; |
37 class X11WindowEventFilter; | 37 class X11WindowEventFilter; |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 bool focus_when_shown_; | 202 bool focus_when_shown_; |
203 | 203 |
204 // The window manager state bits. | 204 // The window manager state bits. |
205 std::set< ::Atom> window_properties_; | 205 std::set< ::Atom> window_properties_; |
206 | 206 |
207 // We are owned by the RootWindow, but we have to have a back pointer to it. | 207 // We are owned by the RootWindow, but we have to have a back pointer to it. |
208 aura::RootWindow* root_window_; | 208 aura::RootWindow* root_window_; |
209 | 209 |
210 // aura:: objects that we own. | 210 // aura:: objects that we own. |
211 scoped_ptr<aura::client::DefaultCaptureClient> capture_client_; | 211 scoped_ptr<aura::client::DefaultCaptureClient> capture_client_; |
212 scoped_ptr<aura::FocusManager> focus_manager_; | 212 scoped_ptr<aura::client::FocusClient> focus_client_; |
213 scoped_ptr<DesktopActivationClient> activation_client_; | 213 scoped_ptr<DesktopActivationClient> activation_client_; |
214 scoped_ptr<DesktopCursorClient> cursor_client_; | 214 scoped_ptr<DesktopCursorClient> cursor_client_; |
215 scoped_ptr<DesktopDispatcherClient> dispatcher_client_; | 215 scoped_ptr<DesktopDispatcherClient> dispatcher_client_; |
216 scoped_ptr<aura::client::ScreenPositionClient> position_client_; | 216 scoped_ptr<aura::client::ScreenPositionClient> position_client_; |
217 | 217 |
218 // Current Aura cursor. | 218 // Current Aura cursor. |
219 gfx::NativeCursor current_cursor_; | 219 gfx::NativeCursor current_cursor_; |
220 | 220 |
221 // The invisible cursor. | 221 // The invisible cursor. |
222 ::Cursor invisible_cursor_; | 222 ::Cursor invisible_cursor_; |
(...skipping 21 matching lines...) Expand all Loading... |
244 // can notify widgets when they have lost capture, which controls a bunch of | 244 // can notify widgets when they have lost capture, which controls a bunch of |
245 // things in views like hiding menus. | 245 // things in views like hiding menus. |
246 static DesktopRootWindowHostLinux* g_current_capture; | 246 static DesktopRootWindowHostLinux* g_current_capture; |
247 | 247 |
248 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostLinux); | 248 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostLinux); |
249 }; | 249 }; |
250 | 250 |
251 } // namespace views | 251 } // namespace views |
252 | 252 |
253 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_LINUX_H_ | 253 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_LINUX_H_ |
OLD | NEW |