| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/screen_ash.h" | 5 #include "ash/screen_ash.h" |
| 6 | 6 |
| 7 #include "ash/display/display_controller.h" | 7 #include "ash/display/display_controller.h" |
| 8 #include "ash/display/multi_display_manager.h" | 8 #include "ash/display/multi_display_manager.h" |
| 9 #include "ash/shell.h" | 9 #include "ash/shell.h" |
| 10 #include "ash/wm/coordinate_conversion.h" | 10 #include "ash/wm/coordinate_conversion.h" |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 | 110 |
| 111 gfx::Display ScreenAsh::GetDisplayNearestPoint(const gfx::Point& point) const { | 111 gfx::Display ScreenAsh::GetDisplayNearestPoint(const gfx::Point& point) const { |
| 112 return GetDisplayManager()->GetDisplayNearestPoint(point); | 112 return GetDisplayManager()->GetDisplayNearestPoint(point); |
| 113 } | 113 } |
| 114 | 114 |
| 115 gfx::Display ScreenAsh::GetDisplayMatching(const gfx::Rect& match_rect) const { | 115 gfx::Display ScreenAsh::GetDisplayMatching(const gfx::Rect& match_rect) const { |
| 116 return GetDisplayManager()->GetDisplayMatching(match_rect); | 116 return GetDisplayManager()->GetDisplayMatching(match_rect); |
| 117 } | 117 } |
| 118 | 118 |
| 119 gfx::Display ScreenAsh::GetPrimaryDisplay() const { | 119 gfx::Display ScreenAsh::GetPrimaryDisplay() const { |
| 120 return Shell::GetInstance()->display_controller()->primary_display(); | 120 return DisplayController::GetPrimaryDisplay(); |
| 121 } | 121 } |
| 122 | 122 |
| 123 } // namespace ash | 123 } // namespace ash |
| OLD | NEW |