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_X11_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_X11_H_ |
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_X11_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_X11_H_ |
7 | 7 |
8 #include <X11/extensions/shape.h> | 8 #include <X11/extensions/shape.h> |
9 #include <X11/Xlib.h> | 9 #include <X11/Xlib.h> |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 namespace gfx { | 24 namespace gfx { |
25 class ImageSkia; | 25 class ImageSkia; |
26 class ImageSkiaRep; | 26 class ImageSkiaRep; |
27 } | 27 } |
28 | 28 |
29 namespace views { | 29 namespace views { |
30 class DesktopDragDropClientAuraX11; | 30 class DesktopDragDropClientAuraX11; |
31 class DesktopDispatcherClient; | 31 class DesktopDispatcherClient; |
32 class DesktopRootWindowHostObserverX11; | 32 class DesktopRootWindowHostObserverX11; |
33 class X11DesktopWindowMoveClient; | 33 class X11DesktopWindowMoveClient; |
| 34 class X11ScopedCapture; |
34 class X11WindowEventFilter; | 35 class X11WindowEventFilter; |
35 | 36 |
36 class VIEWS_EXPORT DesktopRootWindowHostX11 : | 37 class VIEWS_EXPORT DesktopRootWindowHostX11 : |
37 public DesktopRootWindowHost, | 38 public DesktopRootWindowHost, |
38 public aura::RootWindowHost, | 39 public aura::RootWindowHost, |
39 public base::MessageLoop::Dispatcher { | 40 public base::MessageLoop::Dispatcher { |
40 public: | 41 public: |
41 DesktopRootWindowHostX11( | 42 DesktopRootWindowHostX11( |
42 internal::NativeWidgetDelegate* native_widget_delegate, | 43 internal::NativeWidgetDelegate* native_widget_delegate, |
43 DesktopNativeWidgetAura* desktop_native_widget_aura); | 44 DesktopNativeWidgetAura* desktop_native_widget_aura); |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 // like Windows SetCapture()/ReleaseCapture(), it is entirely implicit and | 275 // like Windows SetCapture()/ReleaseCapture(), it is entirely implicit and |
275 // there are no notifications when this changes. We need to track this so we | 276 // there are no notifications when this changes. We need to track this so we |
276 // can notify widgets when they have lost capture, which controls a bunch of | 277 // can notify widgets when they have lost capture, which controls a bunch of |
277 // things in views like hiding menus. | 278 // things in views like hiding menus. |
278 static DesktopRootWindowHostX11* g_current_capture; | 279 static DesktopRootWindowHostX11* g_current_capture; |
279 | 280 |
280 // A list of all (top-level) windows that have been created but not yet | 281 // A list of all (top-level) windows that have been created but not yet |
281 // destroyed. | 282 // destroyed. |
282 static std::list<XID>* open_windows_; | 283 static std::list<XID>* open_windows_; |
283 | 284 |
| 285 scoped_ptr<X11ScopedCapture> x11_capture_; |
| 286 |
284 string16 window_title_; | 287 string16 window_title_; |
285 | 288 |
286 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostX11); | 289 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostX11); |
287 }; | 290 }; |
288 | 291 |
289 } // namespace views | 292 } // namespace views |
290 | 293 |
291 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_X11_H_ | 294 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_X11_H_ |
OLD | NEW |