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_NATIVE_WIDGET_PRIVATE_H_ | 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ |
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ | 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ |
7 | 7 |
8 #include "base/string16.h" | 8 #include "base/string16.h" |
9 #include "ui/base/ui_base_types.h" | 9 #include "ui/base/ui_base_types.h" |
10 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 virtual void SetBounds(const gfx::Rect& bounds) = 0; | 162 virtual void SetBounds(const gfx::Rect& bounds) = 0; |
163 virtual void SetSize(const gfx::Size& size) = 0; | 163 virtual void SetSize(const gfx::Size& size) = 0; |
164 virtual void StackAbove(gfx::NativeView native_view) = 0; | 164 virtual void StackAbove(gfx::NativeView native_view) = 0; |
165 virtual void StackAtTop() = 0; | 165 virtual void StackAtTop() = 0; |
166 virtual void StackBelow(gfx::NativeView native_view) = 0; | 166 virtual void StackBelow(gfx::NativeView native_view) = 0; |
167 virtual void SetShape(gfx::NativeRegion shape) = 0; | 167 virtual void SetShape(gfx::NativeRegion shape) = 0; |
168 virtual void Close() = 0; | 168 virtual void Close() = 0; |
169 virtual void CloseNow() = 0; | 169 virtual void CloseNow() = 0; |
170 virtual void Show() = 0; | 170 virtual void Show() = 0; |
171 virtual void Hide() = 0; | 171 virtual void Hide() = 0; |
| 172 virtual void HideAndClose() = 0; |
172 // Invoked if the initial show should maximize the window. |restored_bounds| | 173 // Invoked if the initial show should maximize the window. |restored_bounds| |
173 // is the bounds of the window when not maximized. | 174 // is the bounds of the window when not maximized. |
174 virtual void ShowMaximizedWithBounds(const gfx::Rect& restored_bounds) = 0; | 175 virtual void ShowMaximizedWithBounds(const gfx::Rect& restored_bounds) = 0; |
175 virtual void ShowWithWindowState(ui::WindowShowState show_state) = 0; | 176 virtual void ShowWithWindowState(ui::WindowShowState show_state) = 0; |
176 virtual bool IsVisible() const = 0; | 177 virtual bool IsVisible() const = 0; |
177 virtual void Activate() = 0; | 178 virtual void Activate() = 0; |
178 virtual void Deactivate() = 0; | 179 virtual void Deactivate() = 0; |
179 virtual bool IsActive() const = 0; | 180 virtual bool IsActive() const = 0; |
180 virtual void SetAlwaysOnTop(bool always_on_top) = 0; | 181 virtual void SetAlwaysOnTop(bool always_on_top) = 0; |
181 virtual void Maximize() = 0; | 182 virtual void Maximize() = 0; |
(...skipping 24 matching lines...) Expand all Loading... |
206 virtual ui::NativeTheme* GetNativeTheme() const = 0; | 207 virtual ui::NativeTheme* GetNativeTheme() const = 0; |
207 | 208 |
208 // Overridden from NativeWidget: | 209 // Overridden from NativeWidget: |
209 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE; | 210 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE; |
210 }; | 211 }; |
211 | 212 |
212 } // namespace internal | 213 } // namespace internal |
213 } // namespace views | 214 } // namespace views |
214 | 215 |
215 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ | 216 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ |
OLD | NEW |