Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8200)

Unified Diff: chrome/browser/ui/views/frame/browser_view.cc

Issue 14031021: Save and restore State for ShellWindows, including panels (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/frame/browser_view.cc
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc
index dccae8ba4031c3e61635fc4886860764c56b891d..99f474d3c15dfc40f4af0d6012b35a8b1c8a976c 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -774,6 +774,14 @@ gfx::Rect BrowserView::GetRestoredBounds() const {
return frame_->GetRestoredBounds();
}
+ui::WindowShowState BrowserView::GetRestoredState() const {
+ if (IsMaximized())
+ return ui::SHOW_STATE_MAXIMIZED;
+ if (IsMinimized())
+ return ui::SHOW_STATE_MINIMIZED;
+ return ui::SHOW_STATE_NORMAL;
+}
+
gfx::Rect BrowserView::GetBounds() const {
return frame_->GetWindowBoundsInScreen();
}

Powered by Google App Engine
This is Rietveld 408576698