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

Unified Diff: ash/display/display_manager.h

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_configuration_controller.cc ('k') | ash/display/display_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_manager.h
diff --git a/ash/display/display_manager.h b/ash/display/display_manager.h
index dd684cf053bd11d62b09c9ef6ddbde1b4eada535..fa791531514d9a3bba38667d22634dc6bf2d918e 100644
--- a/ash/display/display_manager.h
+++ b/ash/display/display_manager.h
@@ -43,7 +43,6 @@ namespace ash {
using DisplayInfoList = std::vector<display::ManagedDisplayInfo>;
namespace test {
-class AshTestBase;
class DisplayManagerTestApi;
}
@@ -348,15 +347,13 @@ class ASH_EXPORT DisplayManager
void AddObserver(display::DisplayObserver* observer);
void RemoveObserver(display::DisplayObserver* observer);
+ // Returns a display::Display object for a secondary display if it exists
+ // or returns invalid display if there is no secondary display.
+ // TODO(rjkroege): Display swapping is an obsolete feature pre-dating
+ // multi-display support so remove it.
+ const display::Display& GetSecondaryDisplay() const;
+
private:
- FRIEND_TEST_ALL_PREFIXES(ExtendedDesktopTest, ConvertPoint);
- FRIEND_TEST_ALL_PREFIXES(DisplayManagerTest, TestNativeDisplaysChanged);
- FRIEND_TEST_ALL_PREFIXES(DisplayManagerTest,
- NativeDisplaysChangedAfterPrimaryChange);
- FRIEND_TEST_ALL_PREFIXES(DisplayManagerTest, AutomaticOverscanInsets);
- FRIEND_TEST_ALL_PREFIXES(DisplayManagerTest, Rotate);
- friend class DisplayManagerTest;
- friend class test::AshTestBase;
friend class test::DisplayManagerTestApi;
bool software_mirroring_enabled() const {
« no previous file with comments | « ash/display/display_configuration_controller.cc ('k') | ash/display/display_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698