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/frame/caption_buttons/frame_size_button.h" | 5 #include "ash/frame/caption_buttons/frame_size_button.h" |
6 | 6 |
| 7 #include "ash/common/wm/window_positioning_utils.h" |
| 8 #include "ash/common/wm/window_state.h" |
| 9 #include "ash/common/wm/wm_event.h" |
| 10 #include "ash/common/wm/workspace/phantom_window_controller.h" |
7 #include "ash/metrics/user_metrics_recorder.h" | 11 #include "ash/metrics/user_metrics_recorder.h" |
8 #include "ash/screen_util.h" | 12 #include "ash/screen_util.h" |
9 #include "ash/shell.h" | 13 #include "ash/shell.h" |
10 #include "ash/wm/aura/wm_window_aura.h" | 14 #include "ash/wm/aura/wm_window_aura.h" |
11 #include "ash/wm/common/window_positioning_utils.h" | |
12 #include "ash/wm/common/window_state.h" | |
13 #include "ash/wm/common/wm_event.h" | |
14 #include "ash/wm/common/workspace/phantom_window_controller.h" | |
15 #include "ash/wm/window_state_aura.h" | 15 #include "ash/wm/window_state_aura.h" |
16 #include "ash/wm/window_util.h" | 16 #include "ash/wm/window_util.h" |
17 #include "base/i18n/rtl.h" | 17 #include "base/i18n/rtl.h" |
18 #include "ui/gfx/geometry/vector2d.h" | 18 #include "ui/gfx/geometry/vector2d.h" |
19 #include "ui/views/widget/widget.h" | 19 #include "ui/views/widget/widget.h" |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 // The default delay between the user pressing the size button and the buttons | 23 // The default delay between the user pressing the size button and the buttons |
24 // adjacent to the size button morphing into buttons for snapping left and | 24 // adjacent to the size button morphing into buttons for snapping left and |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 void FrameSizeButton::SetButtonsToNormalMode( | 279 void FrameSizeButton::SetButtonsToNormalMode( |
280 FrameSizeButtonDelegate::Animate animate) { | 280 FrameSizeButtonDelegate::Animate animate) { |
281 in_snap_mode_ = false; | 281 in_snap_mode_ = false; |
282 snap_type_ = SNAP_NONE; | 282 snap_type_ = SNAP_NONE; |
283 set_buttons_to_snap_mode_timer_.Stop(); | 283 set_buttons_to_snap_mode_timer_.Stop(); |
284 delegate_->SetButtonsToNormal(animate); | 284 delegate_->SetButtonsToNormal(animate); |
285 phantom_window_controller_.reset(); | 285 phantom_window_controller_.reset(); |
286 } | 286 } |
287 | 287 |
288 } // namespace ash | 288 } // namespace ash |
OLD | NEW |