| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |