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

Unified Diff: ash/wm/base_layout_manager.cc

Issue 11633029: Remove ash::window::Show() from BaseLayoutManager::OnWindowActivated (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/base_layout_manager.cc
===================================================================
--- ash/wm/base_layout_manager.cc (revision 175159)
+++ ash/wm/base_layout_manager.cc (working copy)
@@ -18,6 +18,7 @@
#include "ui/base/ui_base_types.h"
#include "ui/compositor/layer.h"
#include "ui/gfx/screen.h"
+#include "ui/views/corewm/corewm_switches.h"
#include "ui/views/corewm/window_util.h"
namespace ash {
@@ -154,9 +155,11 @@
void BaseLayoutManager::OnWindowActivated(aura::Window* gained_active,
aura::Window* lost_active) {
- if (gained_active && wm::IsWindowMinimized(gained_active)) {
- gained_active->Show();
- DCHECK(!wm::IsWindowMinimized(gained_active));
+ if (views::corewm::UseFocusController()) {
+ if (gained_active && wm::IsWindowMinimized(gained_active)) {
+ gained_active->Show();
+ DCHECK(!wm::IsWindowMinimized(gained_active));
+ }
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698