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

Unified Diff: athena/wm/window_manager_impl.cc

Issue 332463002: Maximize only normal/popup window (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | « athena/wm/DEPS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/wm/window_manager_impl.cc
diff --git a/athena/wm/window_manager_impl.cc b/athena/wm/window_manager_impl.cc
index 2c61ab1d7be227b4d326a52f88f3793d39e5ed1b..589da390733ec1ecf3999c24c0b16278b8b5d35c 100644
--- a/athena/wm/window_manager_impl.cc
+++ b/athena/wm/window_manager_impl.cc
@@ -9,6 +9,7 @@
#include "base/logging.h"
#include "ui/aura/layout_manager.h"
#include "ui/aura/window.h"
+#include "ui/wm/public/window_types.h"
namespace athena {
namespace {
@@ -124,7 +125,9 @@ void WindowManagerImpl::Layout() {
for (aura::Window::Windows::const_iterator iter = children.begin();
iter != children.end();
++iter) {
- (*iter)->SetBounds(bounds);
+ if ((*iter)->type() == ui::wm::WINDOW_TYPE_NORMAL ||
+ (*iter)->type() == ui::wm::WINDOW_TYPE_POPUP)
Mr4D (OOO till 08-26) 2014/06/11 18:09:25 There were some discussions about letting popups a
+ (*iter)->SetBounds(bounds);
}
}
« no previous file with comments | « athena/wm/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698