summaryrefslogtreecommitdiffstats
path: root/views/widget/widget_delegate.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/widget/widget_delegate.cc')
-rw-r--r--views/widget/widget_delegate.cc21
1 files changed, 7 insertions, 14 deletions
diff --git a/views/widget/widget_delegate.cc b/views/widget/widget_delegate.cc
index d031295..25cb54a 100644
--- a/views/widget/widget_delegate.cc
+++ b/views/widget/widget_delegate.cc
@@ -98,31 +98,24 @@ std::wstring WidgetDelegate::GetWindowName() const {
}
void WidgetDelegate::SaveWindowPlacement(const gfx::Rect& bounds,
- bool maximized) {
+ ui::WindowShowState show_state) {
std::wstring window_name = GetWindowName();
if (!ViewsDelegate::views_delegate || window_name.empty())
return;
ViewsDelegate::views_delegate->SaveWindowPlacement(
- GetWidget(), window_name, bounds, maximized);
+ GetWidget(), window_name, bounds, show_state);
}
-bool WidgetDelegate::GetSavedWindowBounds(gfx::Rect* bounds) const {
+bool WidgetDelegate::GetSavedWindowPlacement(
+ gfx::Rect* bounds,
+ ui::WindowShowState* show_state) const {
std::wstring window_name = GetWindowName();
if (!ViewsDelegate::views_delegate || window_name.empty())
return false;
- return ViewsDelegate::views_delegate->GetSavedWindowBounds(
- window_name, bounds);
-}
-
-bool WidgetDelegate::GetSavedMaximizedState(bool* maximized) const {
- std::wstring window_name = GetWindowName();
- if (!ViewsDelegate::views_delegate || window_name.empty())
- return false;
-
- return ViewsDelegate::views_delegate->GetSavedMaximizedState(
- window_name, maximized);
+ return ViewsDelegate::views_delegate->GetSavedWindowPlacement(
+ window_name, bounds, show_state);
}
bool WidgetDelegate::ShouldRestoreWindowSize() const {