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

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

Issue 9359022: Aura: Support hovering restore & close buttons for full screen apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove resources, as they've already been committed Created 8 years, 10 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_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 9bd0f848f122f718d23ba9028dcf7211627acb60..e18fce070fcc0b8abd2050c634a3f36ca57874bb 100644
--- a/chrome/browser/ui/views/frame/browser_frame_aura.cc
+++ b/chrome/browser/ui/views/frame/browser_frame_aura.cc
@@ -229,6 +229,12 @@ class BrowserFrameAura::WindowPropertyWatcher : public aura::WindowObserver {
if (key != aura::client::kShowStateKey)
return;
+ // Allow the frame to be replaced when maximizing an app.
+ if (browser_frame_->non_client_view() &&
+ browser_frame_aura_->browser_view()->browser()->type() ==
+ Browser::TYPE_APP)
+ browser_frame_->non_client_view()->UpdateFrame();
+
// When migrating from regular ChromeOS to Aura, windows can have saved
// restore bounds that are exactly equal to the maximized bounds. Thus when
// you hit maximize, there is no resize and the layout doesn't get

Powered by Google App Engine
This is Rietveld 408576698