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. |
(...skipping 12 matching lines...) Expand all Loading... |
23 namespace aura { | 23 namespace aura { |
24 namespace client { | 24 namespace client { |
25 class DefaultCaptureClient; | 25 class DefaultCaptureClient; |
26 class FocusClient; | 26 class FocusClient; |
27 class ScreenPositionClient; | 27 class ScreenPositionClient; |
28 } | 28 } |
29 } | 29 } |
30 | 30 |
31 namespace views { | 31 namespace views { |
32 class DesktopActivationClient; | 32 class DesktopActivationClient; |
33 class DesktopCursorClient; | |
34 class DesktopDispatcherClient; | 33 class DesktopDispatcherClient; |
35 class X11DesktopWindowMoveClient; | 34 class X11DesktopWindowMoveClient; |
36 class X11WindowEventFilter; | 35 class X11WindowEventFilter; |
37 | 36 |
| 37 namespace corewm { |
| 38 class CursorManager; |
| 39 } |
| 40 |
38 class VIEWS_EXPORT DesktopRootWindowHostLinux | 41 class VIEWS_EXPORT DesktopRootWindowHostLinux |
39 : public DesktopRootWindowHost, | 42 : public DesktopRootWindowHost, |
40 public aura::RootWindowHost, | 43 public aura::RootWindowHost, |
41 public MessageLoop::Dispatcher { | 44 public MessageLoop::Dispatcher { |
42 public: | 45 public: |
43 DesktopRootWindowHostLinux( | 46 DesktopRootWindowHostLinux( |
44 internal::NativeWidgetDelegate* native_widget_delegate, | 47 internal::NativeWidgetDelegate* native_widget_delegate, |
45 DesktopNativeWidgetAura* desktop_native_widget_aura, | 48 DesktopNativeWidgetAura* desktop_native_widget_aura, |
46 const gfx::Rect& initial_bounds); | 49 const gfx::Rect& initial_bounds); |
47 virtual ~DesktopRootWindowHostLinux(); | 50 virtual ~DesktopRootWindowHostLinux(); |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 // The window manager state bits. | 198 // The window manager state bits. |
196 std::set< ::Atom> window_properties_; | 199 std::set< ::Atom> window_properties_; |
197 | 200 |
198 // We are owned by the RootWindow, but we have to have a back pointer to it. | 201 // We are owned by the RootWindow, but we have to have a back pointer to it. |
199 aura::RootWindow* root_window_; | 202 aura::RootWindow* root_window_; |
200 | 203 |
201 // aura:: objects that we own. | 204 // aura:: objects that we own. |
202 scoped_ptr<aura::client::DefaultCaptureClient> capture_client_; | 205 scoped_ptr<aura::client::DefaultCaptureClient> capture_client_; |
203 scoped_ptr<aura::client::FocusClient> focus_client_; | 206 scoped_ptr<aura::client::FocusClient> focus_client_; |
204 scoped_ptr<DesktopActivationClient> activation_client_; | 207 scoped_ptr<DesktopActivationClient> activation_client_; |
205 scoped_ptr<DesktopCursorClient> cursor_client_; | 208 scoped_ptr<views::corewm::CursorManager> cursor_client_; |
206 scoped_ptr<DesktopDispatcherClient> dispatcher_client_; | 209 scoped_ptr<DesktopDispatcherClient> dispatcher_client_; |
207 scoped_ptr<aura::client::ScreenPositionClient> position_client_; | 210 scoped_ptr<aura::client::ScreenPositionClient> position_client_; |
208 | 211 |
209 // Current Aura cursor. | 212 // Current Aura cursor. |
210 gfx::NativeCursor current_cursor_; | 213 gfx::NativeCursor current_cursor_; |
211 | 214 |
212 scoped_ptr<X11WindowEventFilter> x11_window_event_filter_; | 215 scoped_ptr<X11WindowEventFilter> x11_window_event_filter_; |
213 scoped_ptr<X11DesktopWindowMoveClient> x11_window_move_client_; | 216 scoped_ptr<X11DesktopWindowMoveClient> x11_window_move_client_; |
214 | 217 |
215 // TODO(beng): Consider providing an interface to DesktopNativeWidgetAura | 218 // TODO(beng): Consider providing an interface to DesktopNativeWidgetAura |
(...skipping 11 matching lines...) Expand all Loading... |
227 // can notify widgets when they have lost capture, which controls a bunch of | 230 // can notify widgets when they have lost capture, which controls a bunch of |
228 // things in views like hiding menus. | 231 // things in views like hiding menus. |
229 static DesktopRootWindowHostLinux* g_current_capture; | 232 static DesktopRootWindowHostLinux* g_current_capture; |
230 | 233 |
231 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostLinux); | 234 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostLinux); |
232 }; | 235 }; |
233 | 236 |
234 } // namespace views | 237 } // namespace views |
235 | 238 |
236 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_LINUX_H_ | 239 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_LINUX_H_ |
OLD | NEW |