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

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

Issue 10986003: Fixed problem with disappearing window controls for applications when maximizing / minimizing / max… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed build breakage Created 8 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 | « chrome/browser/ui/views/frame/app_non_client_frame_view_aura_browsertest.cc ('k') | 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_frame_aura.cc
diff --git a/chrome/browser/ui/views/frame/browser_frame_aura.cc b/chrome/browser/ui/views/frame/browser_frame_aura.cc
index 1d3a7d8ced00c23c5c94a384c9168bf63b2c46e9..764e95b5d6a15431b838c9ceef87a95023cc48b8 100644
--- a/chrome/browser/ui/views/frame/browser_frame_aura.cc
+++ b/chrome/browser/ui/views/frame/browser_frame_aura.cc
@@ -62,7 +62,11 @@ class BrowserFrameAura::WindowPropertyWatcher : public aura::WindowObserver {
// window's bounds are updated. The window maximize/restore animations
// clone the window's layers and rely on the subsequent layout to set
// the layer sizes.
- browser_frame_->non_client_view()->UpdateFrame(false);
+ // If the window is minimized, the frame view needs to be updated via
+ // an OnBoundsChanged event so that the frame will change its size
+ // properly.
+ browser_frame_->non_client_view()->UpdateFrame(
+ old_state == ui::SHOW_STATE_MINIMIZED);
}
}
« no previous file with comments | « chrome/browser/ui/views/frame/app_non_client_frame_view_aura_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698