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

Unified Diff: ash/wm/root_window_layout_manager.cc

Issue 9428056: ash: Create new containers for PowerButtonController. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update PowerButtonController 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: ash/wm/root_window_layout_manager.cc
diff --git a/ash/wm/root_window_layout_manager.cc b/ash/wm/root_window_layout_manager.cc
index f320ab8c164bcc82c66e40edf529bd8894e36786..e237737ef612c9a1a7fbdf667284ce56b791b327 100644
--- a/ash/wm/root_window_layout_manager.cc
+++ b/ash/wm/root_window_layout_manager.cc
@@ -46,9 +46,15 @@ void RootWindowLayoutManager::OnWindowResized() {
// resize to fit the new workspace area.
Shell::GetInstance()->SetWindowModeForMonitorSize(fullscreen_bounds.size());
+ // Resize both our immediate children (the containers-of-containers animated
+ // by PowerButtonController) and their children (the actual containers).
aura::Window::Windows::const_iterator i;
- for (i = owner_->children().begin(); i != owner_->children().end(); ++i)
+ for (i = owner_->children().begin(); i != owner_->children().end(); ++i) {
(*i)->SetBounds(fullscreen_bounds);
+ aura::Window::Windows::const_iterator j;
+ for (j = (*i)->children().begin(); j != (*i)->children().end(); ++j)
+ (*j)->SetBounds(fullscreen_bounds);
+ }
if (background_widget_)
background_widget_->SetBounds(fullscreen_bounds);
« ash/wm/power_button_controller.cc ('K') | « ash/wm/power_button_controller_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698