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

Unified Diff: ash/display/display_manager.cc

Issue 2355063002: Separate ash::test::DisplayManagerTestApi from ash (Closed)
Patch Set: review comment Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/display/display_manager.h ('k') | ash/display/display_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_manager.cc
diff --git a/ash/display/display_manager.cc b/ash/display/display_manager.cc
index fa3f302f04bff0b7a94a0c6b2c7bb70d09ae7da1..cbae3faa478851ee24e0af3023f69a0936455727 100644
--- a/ash/display/display_manager.cc
+++ b/ash/display/display_manager.cc
@@ -1433,4 +1433,12 @@ void DisplayManager::RemoveObserver(display::DisplayObserver* observer) {
observers_.RemoveObserver(observer);
}
+const display::Display& DisplayManager::GetSecondaryDisplay() const {
+ CHECK_LE(2U, GetNumDisplays());
+ return GetDisplayAt(0).id() ==
+ display::Screen::GetScreen()->GetPrimaryDisplay().id()
+ ? GetDisplayAt(1)
+ : GetDisplayAt(0);
+}
+
} // namespace ash
« no previous file with comments | « ash/display/display_manager.h ('k') | ash/display/display_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698