| 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/wm/wm_screen_util.h" |
| 6 | 6 |
| 7 #include "ash/common/wm_shell.h" | 7 #include "ash/common/wm_shell.h" |
| 8 #include "ash/common/wm_window.h" | 8 #include "ash/common/wm_window.h" |
| 9 #include "ash/root_window_controller.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 { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 38 float scale = window->GetRootWindow()->GetBounds().height() / size.height(); | 38 float scale = window->GetRootWindow()->GetBounds().height() / size.height(); |
| 39 size.Scale(scale, scale); | 39 size.Scale(scale, scale); |
| 40 return gfx::Rect(gfx::ToCeiledSize(size)); | 40 return gfx::Rect(gfx::ToCeiledSize(size)); |
| 41 } | 41 } |
| 42 | 42 |
| 43 return window->GetRootWindow()->GetBounds(); | 43 return window->GetRootWindow()->GetBounds(); |
| 44 } | 44 } |
| 45 | 45 |
| 46 } // namespace wm | 46 } // namespace wm |
| 47 } // namespace ash | 47 } // namespace ash |
| OLD | NEW |