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

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: Fix browser_test 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 138c9291926d121c394666bdd4f3ddfd7fb7e0a8..82628c0df052c8e96f7b5395e3789aeb8200604b 100644
--- a/chrome/browser/ui/views/frame/browser_frame_aura.cc
+++ b/chrome/browser/ui/views/frame/browser_frame_aura.cc
@@ -229,6 +229,11 @@ 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()->is_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