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

Unified Diff: ash/display/window_tree_host_manager.h

Issue 1594683002: Introduce DisplayConfigurationController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue_576375_display1b1
Patch Set: Rebase Created 4 years, 11 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/screen_orientation_controller_chromeos.cc ('k') | ash/display/window_tree_host_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/window_tree_host_manager.h
diff --git a/ash/display/window_tree_host_manager.h b/ash/display/window_tree_host_manager.h
index b72cefe8a1b1fce98827988ff1c65ea81a9f41eb..430133524c90b91622567a819ac0332faecc3a09 100644
--- a/ash/display/window_tree_host_manager.h
+++ b/ash/display/window_tree_host_manager.h
@@ -122,11 +122,9 @@ class ASH_EXPORT WindowTreeHostManager
// if the WTH does not exist.
AshWindowTreeHost* GetAshWindowTreeHostForDisplayId(int64_t id);
- // Toggle mirror mode.
- void ToggleMirrorMode();
-
- // Swap primary and secondary display.
- void SwapPrimaryDisplay();
+ // Swap primary and secondary display. Only used in tests; use
+ // DisplayConfigurationController::SetPrimaryDisplayId() instead.
+ void SwapPrimaryDisplayForTest();
// Sets the ID of the primary display. If the display is not connected, it
// will switch the primary display when connected.
@@ -198,34 +196,10 @@ class ASH_EXPORT WindowTreeHostManager
const gfx::Display& display,
const AshWindowTreeHostInitParams& params);
- void OnFadeOutForSwapDisplayFinished();
-
- void SetMirrorModeAfterAnimation(bool mirror);
-
// Delete the AsWindowTreeHost. This does not remove the entry from
// |window_tree_hosts_|. Caller has to explicitly remove it.
void DeleteHost(AshWindowTreeHost* host_to_delete);
- class DisplayChangeLimiter {
- public:
- DisplayChangeLimiter();
-
- // Sets how long the throttling should last.
- void SetThrottleTimeout(int64_t throttle_ms);
-
- bool IsThrottled() const;
-
- private:
- // The time when the throttling ends.
- base::Time throttle_timeout_;
-
- DISALLOW_COPY_AND_ASSIGN(DisplayChangeLimiter);
- };
-
- // The limiter to throttle how fast a user can
- // change the display configuration.
- scoped_ptr<DisplayChangeLimiter> limiter_;
-
typedef std::map<int64_t, AshWindowTreeHost*> WindowTreeHostMap;
// The mapping from display ID to its window tree host.
WindowTreeHostMap window_tree_hosts_;
« no previous file with comments | « ash/display/screen_orientation_controller_chromeos.cc ('k') | ash/display/window_tree_host_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698