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

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

Issue 7739034: Save window placement for App windows. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/browser_view.cc
===================================================================
--- chrome/browser/ui/views/frame/browser_view.cc (revision 99708)
+++ chrome/browser/ui/views/frame/browser_view.cc (working copy)
@@ -1636,7 +1636,8 @@
// If IsFullscreen() is true, we've just changed into fullscreen mode, and
// we're catching the going-into-fullscreen sizing and positioning calls,
// which we want to ignore.
- if (!IsFullscreen() && browser_->ShouldSaveWindowPlacement()) {
+ if (!IsFullscreen() &&
+ (browser_->ShouldSaveWindowPlacement() || browser_->is_app())) {
Ben Goodger (Google) 2011/11/07 20:47:21 BTW, upon further consideration I realize this is
WidgetDelegate::SaveWindowPlacement(bounds, show_state);
browser_->SaveWindowPlacement(bounds, show_state);
}
@@ -1649,7 +1650,7 @@
*show_state = browser_->GetSavedWindowShowState();
if ((browser_->is_type_popup() || browser_->is_type_panel())
- && !browser_->is_devtools()) {
+ && !browser_->is_devtools() && !browser_->is_app()) {
// We are a popup window. The value passed in |bounds| represents two
// pieces of information:
// - the position of the window, in screen coordinates (outer position).
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698