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

Unified Diff: ash/display/display_controller.h

Issue 18413002: [Cleanup] Factor out layout store code from DisplayController (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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_change_observer_x11.cc ('k') | ash/display/display_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_controller.h
diff --git a/ash/display/display_controller.h b/ash/display/display_controller.h
index 299be14d32da76410ac847ed0a0aa1ab40da2c3c..a5bf8d07bb0dcb47ad19dc8ec975fb4345fbad9d 100644
--- a/ash/display/display_controller.h
+++ b/ash/display/display_controller.h
@@ -127,15 +127,6 @@ class ASH_EXPORT DisplayController : public gfx::DisplayObserver {
gfx::Insets GetOverscanInsets(int64 display_id) const;
void SetOverscanInsets(int64 display_id, const gfx::Insets& insets_in_dip);
- const DisplayLayout& default_display_layout() const {
- return default_display_layout_;
- }
- void SetDefaultDisplayLayout(const DisplayLayout& layout);
-
- // Registeres the display layout info for the specified display(s).
- void RegisterLayoutForDisplayIdPair(int64 id1,
- int64 id2,
- const DisplayLayout& layout);
// Sets the layout for the current display pair. The |layout| specifies
// the locaion of the secondary display relative to the primary.
void SetLayoutForCurrentDisplays(const DisplayLayout& layout);
@@ -146,11 +137,6 @@ class ASH_EXPORT DisplayController : public gfx::DisplayObserver {
// Returns the current display pair.
DisplayIdPair GetCurrentDisplayIdPair() const;
- // Returns the display layout registered for the given display id |pair|.
- // If no layout is registered, it creatas new layout using
- // |default_display_layout_|.
- DisplayLayout GetRegisteredDisplayLayout(const DisplayIdPair& pair);
-
// Checks if the mouse pointer is on one of displays, and moves to
// the center of the nearest display if it's outside of all displays.
void EnsurePointerInDisplays();
@@ -183,25 +169,10 @@ class ASH_EXPORT DisplayController : public gfx::DisplayObserver {
void SetLayoutForDisplayIdPair(const DisplayIdPair& display_pair,
const DisplayLayout& layout);
- void RegisterLayoutForDisplayIdPairInternal(
- int64 id1,
- int64 id2,
- const DisplayLayout& layout,
- bool override);
-
void OnFadeOutForSwapDisplayFinished();
- // Returns the display layout for the display id pair
- // with display swapping applied. That is, this returns
- // flipped layout if the displays are swapped.
- DisplayLayout ComputeDisplayLayoutForDisplayIdPair(
- const DisplayIdPair& display_pair);
-
void UpdateHostWindowNames();
- // Creates new layout for display pair from |default_display_layout_|.
- DisplayLayout CreateDisplayLayout(const DisplayIdPair& display_pair);
-
bool in_bootstrap() const { return in_bootstrap_; }
class DisplayChangeLimiter {
@@ -227,12 +198,6 @@ class ASH_EXPORT DisplayController : public gfx::DisplayObserver {
// The mapping from display ID to its root window.
std::map<int64, aura::RootWindow*> root_windows_;
- // The default display layout.
- DisplayLayout default_display_layout_;
-
- // Display layout per pair of devices.
- std::map<DisplayIdPair, DisplayLayout> paired_layouts_;
-
ObserverList<Observer> observers_;
// Store the primary root window temporarily while replacing
« no previous file with comments | « ash/display/display_change_observer_x11.cc ('k') | ash/display/display_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698