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_WINDOW_TREE_HOST_X11_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ |
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 internal::NativeWidgetDelegate* native_widget_delegate, | 43 internal::NativeWidgetDelegate* native_widget_delegate, |
44 DesktopNativeWidgetAura* desktop_native_widget_aura); | 44 DesktopNativeWidgetAura* desktop_native_widget_aura); |
45 virtual ~DesktopWindowTreeHostX11(); | 45 virtual ~DesktopWindowTreeHostX11(); |
46 | 46 |
47 // A way of converting an X11 |xid| host window into a |content_window_|. | 47 // A way of converting an X11 |xid| host window into a |content_window_|. |
48 static aura::Window* GetContentWindowForXID(XID xid); | 48 static aura::Window* GetContentWindowForXID(XID xid); |
49 | 49 |
50 // A way of converting an X11 |xid| host window into this object. | 50 // A way of converting an X11 |xid| host window into this object. |
51 static DesktopWindowTreeHostX11* GetHostForXID(XID xid); | 51 static DesktopWindowTreeHostX11* GetHostForXID(XID xid); |
52 | 52 |
| 53 // Returns if any DesktopWindowTreeHostX11 instance has capture. |
| 54 static bool AnyHostHasCapture(); |
| 55 |
53 // Get all open top-level windows. This includes windows that may not be | 56 // Get all open top-level windows. This includes windows that may not be |
54 // visible. This list is sorted in their stacking order, i.e. the first window | 57 // visible. This list is sorted in their stacking order, i.e. the first window |
55 // is the topmost window. | 58 // is the topmost window. |
56 static std::vector<aura::Window*> GetAllOpenWindows(); | 59 static std::vector<aura::Window*> GetAllOpenWindows(); |
57 | 60 |
58 // Returns the current bounds in terms of the X11 Root Window. | 61 // Returns the current bounds in terms of the X11 Root Window. |
59 gfx::Rect GetX11RootWindowBounds() const; | 62 gfx::Rect GetX11RootWindowBounds() const; |
60 | 63 |
61 // Called by X11DesktopHandler to notify us that the native windowing system | 64 // Called by X11DesktopHandler to notify us that the native windowing system |
62 // has changed our activation. | 65 // has changed our activation. |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 // attention to the window or completely ignore the hint. We stop flashing | 297 // attention to the window or completely ignore the hint. We stop flashing |
295 // the frame when |xwindow_| gains focus or handles a mouse button event. | 298 // the frame when |xwindow_| gains focus or handles a mouse button event. |
296 bool urgency_hint_set_; | 299 bool urgency_hint_set_; |
297 | 300 |
298 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); | 301 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); |
299 }; | 302 }; |
300 | 303 |
301 } // namespace views | 304 } // namespace views |
302 | 305 |
303 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ | 306 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ |
OLD | NEW |