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

Unified Diff: ash/root_window_controller.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
Index: ash/root_window_controller.cc
diff --git a/ash/root_window_controller.cc b/ash/root_window_controller.cc
index 51bd3ade55cca0943059cff0cb2f192a27d0d888..6b813f8a72e96419c8cb001e2fa59c685dbf0ecc 100644
--- a/ash/root_window_controller.cc
+++ b/ash/root_window_controller.cc
@@ -120,7 +120,7 @@ void ReparentWindow(aura::Window* window, aura::Window* new_parent) {
gfx::Rect restore_bounds;
bool has_restore_bounds = state->HasRestoreBounds();
- bool update_bounds = (state->IsNormalShowState() || state->IsMinimized()) &&
+ bool update_bounds = (state->IsNormalOrSnapped() || state->IsMinimized()) &&
new_parent->id() != internal::kShellWindowId_DockedContainer;
gfx::Rect local_bounds;
if (update_bounds) {
« no previous file with comments | « ash/accelerators/accelerator_commands_unittest.cc ('k') | ash/wm/caption_buttons/alternate_frame_size_button_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698