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

Side by Side Diff: ash/frame/caption_buttons/frame_size_button.cc

Issue 2030593002: Renames ash/wm/common into ash/common/wm (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « ash/focus_cycler_unittest.cc ('k') | ash/frame/caption_buttons/frame_size_button_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ash/focus_cycler_unittest.cc ('k') | ash/frame/caption_buttons/frame_size_button_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698