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

Unified Diff: ash/display/display_manager.h

Issue 2355063002: Separate ash::test::DisplayManagerTestApi from ash (Closed)
Patch Set: rebased, cleanup Created 4 years, 3 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
Index: ash/display/display_manager.h
diff --git a/ash/display/display_manager.h b/ash/display/display_manager.h
index dd684cf053bd11d62b09c9ef6ddbde1b4eada535..9b2c17de7ae99c387e0ad580c251f60d709ae422 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,11 @@ 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.
+ const display::Display& GetSecondaryDisplay() const;
oshima 2016/10/04 00:47:16 just fyi: "swap display" is a legacy feature we ad
rjkroege 2016/10/05 00:21:45 I added a TODO.
+
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 {

Powered by Google App Engine
This is Rietveld 408576698