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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 | 160 |
161 // Initializes the modal type of the window to |modal_type|. Called from | 161 // Initializes the modal type of the window to |modal_type|. Called from |
162 // NativeWidgetDelegate::OnNativeWidgetCreated() before the widget is | 162 // NativeWidgetDelegate::OnNativeWidgetCreated() before the widget is |
163 // initially parented. | 163 // initially parented. |
164 virtual void InitModalType(ui::ModalType modal_type) = 0; | 164 virtual void InitModalType(ui::ModalType modal_type) = 0; |
165 | 165 |
166 // See method documentation in Widget. | 166 // See method documentation in Widget. |
167 virtual gfx::Rect GetWindowBoundsInScreen() const = 0; | 167 virtual gfx::Rect GetWindowBoundsInScreen() const = 0; |
168 virtual gfx::Rect GetClientAreaBoundsInScreen() const = 0; | 168 virtual gfx::Rect GetClientAreaBoundsInScreen() const = 0; |
169 virtual gfx::Rect GetRestoredBounds() const = 0; | 169 virtual gfx::Rect GetRestoredBounds() const = 0; |
| 170 virtual int GetRestoredWorkspace() const = 0; |
170 virtual void SetBounds(const gfx::Rect& bounds) = 0; | 171 virtual void SetBounds(const gfx::Rect& bounds) = 0; |
171 virtual void SetSize(const gfx::Size& size) = 0; | 172 virtual void SetSize(const gfx::Size& size) = 0; |
172 virtual void StackAbove(gfx::NativeView native_view) = 0; | 173 virtual void StackAbove(gfx::NativeView native_view) = 0; |
173 virtual void StackAtTop() = 0; | 174 virtual void StackAtTop() = 0; |
174 virtual void StackBelow(gfx::NativeView native_view) = 0; | 175 virtual void StackBelow(gfx::NativeView native_view) = 0; |
175 virtual void SetShape(SkRegion* shape) = 0; | 176 virtual void SetShape(SkRegion* shape) = 0; |
176 virtual void Close() = 0; | 177 virtual void Close() = 0; |
177 virtual void CloseNow() = 0; | 178 virtual void CloseNow() = 0; |
178 virtual void Show() = 0; | 179 virtual void Show() = 0; |
179 virtual void Hide() = 0; | 180 virtual void Hide() = 0; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 virtual std::string GetName() const = 0; | 230 virtual std::string GetName() const = 0; |
230 | 231 |
231 // Overridden from NativeWidget: | 232 // Overridden from NativeWidget: |
232 internal::NativeWidgetPrivate* AsNativeWidgetPrivate() override; | 233 internal::NativeWidgetPrivate* AsNativeWidgetPrivate() override; |
233 }; | 234 }; |
234 | 235 |
235 } // namespace internal | 236 } // namespace internal |
236 } // namespace views | 237 } // namespace views |
237 | 238 |
238 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ | 239 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ |
OLD | NEW |