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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 virtual void Deactivate() OVERRIDE; | 100 virtual void Deactivate() OVERRIDE; |
101 virtual bool IsActive() const OVERRIDE; | 101 virtual bool IsActive() const OVERRIDE; |
102 virtual void Maximize() OVERRIDE; | 102 virtual void Maximize() OVERRIDE; |
103 virtual void Minimize() OVERRIDE; | 103 virtual void Minimize() OVERRIDE; |
104 virtual void Restore() OVERRIDE; | 104 virtual void Restore() OVERRIDE; |
105 virtual bool IsMaximized() const OVERRIDE; | 105 virtual bool IsMaximized() const OVERRIDE; |
106 virtual bool IsMinimized() const OVERRIDE; | 106 virtual bool IsMinimized() const OVERRIDE; |
107 virtual bool HasCapture() const OVERRIDE; | 107 virtual bool HasCapture() const OVERRIDE; |
108 virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE; | 108 virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE; |
109 virtual bool IsAlwaysOnTop() const OVERRIDE; | 109 virtual bool IsAlwaysOnTop() const OVERRIDE; |
110 virtual bool SetWindowTitle(const string16& title) OVERRIDE; | 110 virtual bool SetWindowTitle(const base::string16& title) OVERRIDE; |
111 virtual void ClearNativeFocus() OVERRIDE; | 111 virtual void ClearNativeFocus() OVERRIDE; |
112 virtual Widget::MoveLoopResult RunMoveLoop( | 112 virtual Widget::MoveLoopResult RunMoveLoop( |
113 const gfx::Vector2d& drag_offset, | 113 const gfx::Vector2d& drag_offset, |
114 Widget::MoveLoopSource source, | 114 Widget::MoveLoopSource source, |
115 Widget::MoveLoopEscapeBehavior escape_behavior) OVERRIDE; | 115 Widget::MoveLoopEscapeBehavior escape_behavior) OVERRIDE; |
116 virtual void EndMoveLoop() OVERRIDE; | 116 virtual void EndMoveLoop() OVERRIDE; |
117 virtual void SetVisibilityChangedAnimationsEnabled(bool value) OVERRIDE; | 117 virtual void SetVisibilityChangedAnimationsEnabled(bool value) OVERRIDE; |
118 virtual bool ShouldUseNativeFrame() OVERRIDE; | 118 virtual bool ShouldUseNativeFrame() OVERRIDE; |
119 virtual void FrameTypeChanged() OVERRIDE; | 119 virtual void FrameTypeChanged() OVERRIDE; |
120 virtual NonClientFrameView* CreateNonClientFrameView() OVERRIDE; | 120 virtual NonClientFrameView* CreateNonClientFrameView() OVERRIDE; |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 // 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 |
278 // things in views like hiding menus. | 278 // things in views like hiding menus. |
279 static DesktopRootWindowHostX11* g_current_capture; | 279 static DesktopRootWindowHostX11* g_current_capture; |
280 | 280 |
281 // 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 |
282 // destroyed. | 282 // destroyed. |
283 static std::list<XID>* open_windows_; | 283 static std::list<XID>* open_windows_; |
284 | 284 |
285 scoped_ptr<X11ScopedCapture> x11_capture_; | 285 scoped_ptr<X11ScopedCapture> x11_capture_; |
286 | 286 |
287 string16 window_title_; | 287 base::string16 window_title_; |
288 | 288 |
289 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostX11); | 289 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostX11); |
290 }; | 290 }; |
291 | 291 |
292 } // namespace views | 292 } // namespace views |
293 | 293 |
294 #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 |