| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ash/wm/drag_details.h" | 5 #include "ash/wm/drag_details.h" |
| 6 | 6 |
| 7 #include "ash/wm/window_resizer.h" | 7 #include "ash/wm/window_resizer.h" |
| 8 #include "ui/aura/window.h" | 8 #include "ui/aura/window.h" |
| 9 #include "ui/base/hit_test.h" | 9 #include "ui/base/hit_test.h" |
| 10 | 10 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 bounds_change( | 52 bounds_change( |
| 53 WindowResizer::GetBoundsChangeForWindowComponent(window_component)), | 53 WindowResizer::GetBoundsChangeForWindowComponent(window_component)), |
| 54 position_change_direction( | 54 position_change_direction( |
| 55 WindowResizer::GetPositionChangeDirectionForWindowComponent( | 55 WindowResizer::GetPositionChangeDirectionForWindowComponent( |
| 56 window_component)), | 56 window_component)), |
| 57 size_change_direction( | 57 size_change_direction( |
| 58 GetSizeChangeDirectionForWindowComponent(window_component)), | 58 GetSizeChangeDirectionForWindowComponent(window_component)), |
| 59 is_resizable(bounds_change != WindowResizer::kBoundsChangeDirection_None), | 59 is_resizable(bounds_change != WindowResizer::kBoundsChangeDirection_None), |
| 60 source(source), | 60 source(source), |
| 61 should_attach_to_shelf(window->type() == ui::wm::WINDOW_TYPE_PANEL && | 61 should_attach_to_shelf(window->type() == ui::wm::WINDOW_TYPE_PANEL && |
| 62 wm::GetWindowState(window)->panel_attached()), | 62 wm::GetWindowState(window)->panel_attached()) { |
| 63 window_resizer(NULL) { | |
| 64 wm::WindowState* window_state = wm::GetWindowState(window); | 63 wm::WindowState* window_state = wm::GetWindowState(window); |
| 65 if (window_state->IsNormalShowState() && | 64 if (window_state->IsNormalShowState() && |
| 66 window_state->HasRestoreBounds() && | 65 window_state->HasRestoreBounds() && |
| 67 window_component == HTCAPTION) | 66 window_component == HTCAPTION) |
| 68 restore_bounds = window_state->GetRestoreBoundsInScreen(); | 67 restore_bounds = window_state->GetRestoreBoundsInScreen(); |
| 69 } | 68 } |
| 70 | 69 |
| 71 DragDetails::~DragDetails() { | 70 DragDetails::~DragDetails() { |
| 72 } | 71 } |
| 73 | 72 |
| 74 } // namespace ash | 73 } // namespace ash |
| OLD | NEW |