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

Unified Diff: ash/wm/drag_details.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/dock/docked_window_resizer_unittest.cc ('k') | ash/wm/resize_shadow_and_cursor_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/drag_details.cc
diff --git a/ash/wm/drag_details.cc b/ash/wm/drag_details.cc
index f94531fcb99a443948c5c9b8c0c2cb4d60cc06f5..06829f0abd20860582d55daeed5109ccd5a05928 100644
--- a/ash/wm/drag_details.cc
+++ b/ash/wm/drag_details.cc
@@ -62,10 +62,11 @@ DragDetails::DragDetails(aura::Window* window,
should_attach_to_shelf(window->type() == ui::wm::WINDOW_TYPE_PANEL &&
wm::GetWindowState(window)->panel_attached()) {
wm::WindowState* window_state = wm::GetWindowState(window);
- if (window_state->IsNormalShowState() &&
+ if (window_state->IsNormalOrSnapped() &&
window_state->HasRestoreBounds() &&
- window_component == HTCAPTION)
+ window_component == HTCAPTION) {
restore_bounds = window_state->GetRestoreBoundsInScreen();
+ }
}
DragDetails::~DragDetails() {
« no previous file with comments | « ash/wm/dock/docked_window_resizer_unittest.cc ('k') | ash/wm/resize_shadow_and_cursor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698