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

Side by Side Diff: ash/common/wm/wm_screen_util.cc

Issue 2625843002: Folds WmRootWindowController into RootWindowController (Closed)
Patch Set: definition in wm_root_window_controller.cc 2 Created 3 years, 11 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/common/wm/wm_screen_util.h" 5 #include "ash/common/wm/wm_screen_util.h"
6 6
7 #include "ash/common/wm_root_window_controller.h"
8 #include "ash/common/wm_shell.h" 7 #include "ash/common/wm_shell.h"
9 #include "ash/common/wm_window.h" 8 #include "ash/common/wm_window.h"
9 #include "ash/root_window_controller.h"
10 #include "ui/display/display.h" 10 #include "ui/display/display.h"
11 #include "ui/display/screen.h" 11 #include "ui/display/screen.h"
12 #include "ui/gfx/geometry/size_conversions.h" 12 #include "ui/gfx/geometry/size_conversions.h"
13 13
14 namespace ash { 14 namespace ash {
15 namespace wm { 15 namespace wm {
16 16
17 gfx::Rect GetDisplayWorkAreaBoundsInParent(WmWindow* window) { 17 gfx::Rect GetDisplayWorkAreaBoundsInParent(WmWindow* window) {
18 return GetDisplayWorkAreaBounds(window->GetParent()); 18 return GetDisplayWorkAreaBounds(window->GetParent());
19 } 19 }
(...skipping 22 matching lines...) Expand all
42 float scale = window->GetRootWindow()->GetBounds().height() / size.height(); 42 float scale = window->GetRootWindow()->GetBounds().height() / size.height();
43 size.Scale(scale, scale); 43 size.Scale(scale, scale);
44 return gfx::Rect(gfx::ToCeiledSize(size)); 44 return gfx::Rect(gfx::ToCeiledSize(size));
45 } 45 }
46 46
47 return window->GetRootWindow()->GetBounds(); 47 return window->GetRootWindow()->GetBounds();
48 } 48 }
49 49
50 } // namespace wm 50 } // namespace wm
51 } // namespace ash 51 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/wm/window_positioning_utils.cc ('k') | ash/common/wm/workspace/multi_window_resize_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698