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_ROOT_WINDOW_HOST_LINUX_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_LINUX_H_ |
6 #define UI_VIEWS_WIDGET_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_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; | 25 class FocusManager; |
26 namespace client { | 26 namespace client { |
27 class DefaultCaptureClient; | 27 class DefaultCaptureClient; |
28 class ScreenPositionClient; | 28 class ScreenPositionClient; |
29 } | 29 } |
30 } | 30 } |
31 | 31 |
32 namespace views { | 32 namespace views { |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 // there are no notifications when this changes. We need to track this so we | 243 // there are no notifications when this changes. We need to track this so we |
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_ROOT_WINDOW_HOST_LINUX_H_ | 253 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_LINUX_H_ |
OLD | NEW |