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_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_ |
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "ui/aura/window_event_dispatcher.h" | 9 #include "ui/aura/window_event_dispatcher.h" |
10 #include "ui/base/ui_base_types.h" | 10 #include "ui/base/ui_base_types.h" |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 virtual void CloseNow() = 0; | 74 virtual void CloseNow() = 0; |
75 | 75 |
76 virtual aura::WindowTreeHost* AsWindowTreeHost() = 0; | 76 virtual aura::WindowTreeHost* AsWindowTreeHost() = 0; |
77 | 77 |
78 virtual void ShowWindowWithState(ui::WindowShowState show_state) = 0; | 78 virtual void ShowWindowWithState(ui::WindowShowState show_state) = 0; |
79 virtual void ShowMaximizedWithBounds(const gfx::Rect& restored_bounds) = 0; | 79 virtual void ShowMaximizedWithBounds(const gfx::Rect& restored_bounds) = 0; |
80 | 80 |
81 virtual bool IsVisible() const = 0; | 81 virtual bool IsVisible() const = 0; |
82 | 82 |
83 virtual void SetSize(const gfx::Size& size) = 0; | 83 virtual void SetSize(const gfx::Size& size) = 0; |
| 84 virtual void StackAbove(aura::Window* window) = 0; |
84 virtual void StackAtTop() = 0; | 85 virtual void StackAtTop() = 0; |
85 virtual void CenterWindow(const gfx::Size& size) = 0; | 86 virtual void CenterWindow(const gfx::Size& size) = 0; |
86 virtual void GetWindowPlacement(gfx::Rect* bounds, | 87 virtual void GetWindowPlacement(gfx::Rect* bounds, |
87 ui::WindowShowState* show_state) const = 0; | 88 ui::WindowShowState* show_state) const = 0; |
88 virtual gfx::Rect GetWindowBoundsInScreen() const = 0; | 89 virtual gfx::Rect GetWindowBoundsInScreen() const = 0; |
89 virtual gfx::Rect GetClientAreaBoundsInScreen() const = 0; | 90 virtual gfx::Rect GetClientAreaBoundsInScreen() const = 0; |
90 virtual gfx::Rect GetRestoredBounds() const = 0; | 91 virtual gfx::Rect GetRestoredBounds() const = 0; |
91 | 92 |
92 virtual gfx::Rect GetWorkAreaBoundsInScreen() const = 0; | 93 virtual gfx::Rect GetWorkAreaBoundsInScreen() const = 0; |
93 | 94 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 // Returns true if the Widget supports translucency. | 158 // Returns true if the Widget supports translucency. |
158 virtual bool IsTranslucentWindowOpacitySupported() const = 0; | 159 virtual bool IsTranslucentWindowOpacitySupported() const = 0; |
159 | 160 |
160 // Called when the window's size constraints change. | 161 // Called when the window's size constraints change. |
161 virtual void SizeConstraintsChanged() = 0; | 162 virtual void SizeConstraintsChanged() = 0; |
162 }; | 163 }; |
163 | 164 |
164 } // namespace views | 165 } // namespace views |
165 | 166 |
166 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_ | 167 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_ |
OLD | NEW |