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

Side by Side Diff: ash/wm/default_state.cc

Issue 802473003: Fix references to ui/gfx headers in a*/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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/wm/coordinate_conversion.cc ('k') | ash/wm/dock/docked_window_layout_manager.h » ('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/wm/default_state.h" 5 #include "ash/wm/default_state.h"
6 6
7 #include "ash/display/display_controller.h" 7 #include "ash/display/display_controller.h"
8 #include "ash/screen_util.h" 8 #include "ash/screen_util.h"
9 #include "ash/shell.h" 9 #include "ash/shell.h"
10 #include "ash/shell_window_ids.h" 10 #include "ash/shell_window_ids.h"
11 #include "ash/wm/coordinate_conversion.h" 11 #include "ash/wm/coordinate_conversion.h"
12 #include "ash/wm/dock/docked_window_layout_manager.h" 12 #include "ash/wm/dock/docked_window_layout_manager.h"
13 #include "ash/wm/window_animations.h" 13 #include "ash/wm/window_animations.h"
14 #include "ash/wm/window_state.h" 14 #include "ash/wm/window_state.h"
15 #include "ash/wm/window_state_delegate.h" 15 #include "ash/wm/window_state_delegate.h"
16 #include "ash/wm/window_state_util.h" 16 #include "ash/wm/window_state_util.h"
17 #include "ash/wm/window_util.h" 17 #include "ash/wm/window_util.h"
18 #include "ash/wm/wm_event.h" 18 #include "ash/wm/wm_event.h"
19 #include "ash/wm/workspace/workspace_window_resizer.h" 19 #include "ash/wm/workspace/workspace_window_resizer.h"
20 #include "ui/aura/client/aura_constants.h" 20 #include "ui/aura/client/aura_constants.h"
21 #include "ui/aura/window.h" 21 #include "ui/aura/window.h"
22 #include "ui/aura/window_delegate.h" 22 #include "ui/aura/window_delegate.h"
23 #include "ui/gfx/display.h" 23 #include "ui/gfx/display.h"
24 #include "ui/gfx/rect.h" 24 #include "ui/gfx/geometry/rect.h"
25 25
26 namespace ash { 26 namespace ash {
27 namespace wm { 27 namespace wm {
28 namespace { 28 namespace {
29 29
30 // This specifies how much percent (30%) of a window rect 30 // This specifies how much percent (30%) of a window rect
31 // must be visible when the window is added to the workspace. 31 // must be visible when the window is added to the workspace.
32 const float kMinimumPercentOnScreenArea = 0.3f; 32 const float kMinimumPercentOnScreenArea = 0.3f;
33 33
34 bool IsMinimizedWindowState(const WindowStateType state_type) { 34 bool IsMinimizedWindowState(const WindowStateType state_type) {
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after
733 ScreenUtil::GetDisplayWorkAreaBoundsInParent(window); 733 ScreenUtil::GetDisplayWorkAreaBoundsInParent(window);
734 center_in_parent.ClampToCenteredSize(window->bounds().size()); 734 center_in_parent.ClampToCenteredSize(window->bounds().size());
735 window_state->SetBoundsDirectAnimated(center_in_parent); 735 window_state->SetBoundsDirectAnimated(center_in_parent);
736 } 736 }
737 // Centering window is treated as if a user moved and resized the window. 737 // Centering window is treated as if a user moved and resized the window.
738 window_state->set_bounds_changed_by_user(true); 738 window_state->set_bounds_changed_by_user(true);
739 } 739 }
740 740
741 } // namespace wm 741 } // namespace wm
742 } // namespace ash 742 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/coordinate_conversion.cc ('k') | ash/wm/dock/docked_window_layout_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698