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

Unified Diff: ash/wm/base_layout_manager.cc

Issue 10883069: Added restore functionality for maximize full/left/right (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Created 8 years, 4 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: ash/wm/base_layout_manager.cc
diff --git a/ash/wm/base_layout_manager.cc b/ash/wm/base_layout_manager.cc
index bf4e47c27534ed6f4a9bb68d4ed7703220385b7f..cd4e8456d61c3eb3e99c934fe19674f48a52a18f 100644
--- a/ash/wm/base_layout_manager.cc
+++ b/ash/wm/base_layout_manager.cc
@@ -137,6 +137,7 @@ void BaseLayoutManager::OnWindowPropertyChanged(aura::Window* window,
ui::WindowShowState new_state =
window->GetProperty(aura::client::kShowStateKey);
if (old_state != new_state && old_state != ui::SHOW_STATE_MINIMIZED &&
+ GetRestoreBoundsInParent(window).IsEmpty() &&
sky 2012/08/29 17:29:20 Use GetRestoreBoundsInScreen, which returns NULL i
Mr4D (OOO till 08-26) 2012/08/29 18:57:34 Done.
((new_state == ui::SHOW_STATE_MAXIMIZED &&
old_state != ui::SHOW_STATE_FULLSCREEN) ||
(new_state == ui::SHOW_STATE_FULLSCREEN &&

Powered by Google App Engine
This is Rietveld 408576698