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

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: DisplayAnimator -> DisplayAnimatorChromeOS 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
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..1215ceb8262adc1ab8a27786d8e91d11847f7e40 100644
--- a/ash/display/window_tree_host_manager.h
+++ b/ash/display/window_tree_host_manager.h
@@ -122,9 +122,6 @@ 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();
@@ -198,34 +195,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_;

Powered by Google App Engine
This is Rietveld 408576698