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

Unified Diff: ash/wm/window_util.cc

Issue 169713003: Remove WindowState::IsNormalShowState() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« no previous file with comments | « ash/wm/window_state.cc ('k') | ash/wm/workspace/snap_sizer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_util.cc
diff --git a/ash/wm/window_util.cc b/ash/wm/window_util.cc
index 14193c3083ad09f685792bb6934e01c48b550c73..c31014ddb9f5f1d58eaf454cadcef426bd3be324 100644
--- a/ash/wm/window_util.cc
+++ b/ash/wm/window_util.cc
@@ -58,7 +58,7 @@ bool IsWindowMinimized(aura::Window* window) {
void CenterWindow(aura::Window* window) {
wm::WindowState* window_state = wm::GetWindowState(window);
- if (!window_state->IsNormalShowState())
+ if (!window_state->IsNormalOrSnapped())
return;
const gfx::Display display =
Shell::GetScreen()->GetDisplayNearestWindow(window);
« no previous file with comments | « ash/wm/window_state.cc ('k') | ash/wm/workspace/snap_sizer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698