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

Unified Diff: ash/display/display_controller.h

Issue 201573015: Introdcue AshWindowTreeHost and move ash/chrome specific code in WTH to ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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_controller.h
diff --git a/ash/display/display_controller.h b/ash/display/display_controller.h
index d965131b64fa3060dd1b14656fa1eb6c81aef9ee..2853d6041a5cff754f769c4956db12e481cb8e11 100644
--- a/ash/display/display_controller.h
+++ b/ash/display/display_controller.h
@@ -37,6 +37,7 @@ class Insets;
}
namespace ash {
+class AshWindowTreeHost;
namespace internal {
class CursorWindowController;
class DisplayInfo;
@@ -94,11 +95,10 @@ class ASH_EXPORT DisplayController : public gfx::DisplayObserver,
return virtual_keyboard_window_controller_.get();
}
- // Initializes primary display.
- void InitPrimaryDisplay();
+ void CreatePrimaryHost();
- // Initialize secondary displays.
- void InitSecondaryDisplays();
+ // Initializes displays.
+ void InitDisplays();
// Add/Remove observers.
void AddObserver(Observer* observer);
@@ -171,7 +171,7 @@ class ASH_EXPORT DisplayController : public gfx::DisplayObserver,
// Creates a WindowTreeHost for |display| and stores it in the |root_windows_|
// map.
- aura::WindowTreeHost* AddWindowTreeHostForDisplay(
+ AshWindowTreeHost* AddWindowTreeHostForDisplay(
const gfx::Display& display);
void OnFadeOutForSwapDisplayFinished();
@@ -198,14 +198,16 @@ class ASH_EXPORT DisplayController : public gfx::DisplayObserver,
// change the display configuration.
scoped_ptr<DisplayChangeLimiter> limiter_;
- // The mapping from display ID to its root window.
- std::map<int64, aura::Window*> root_windows_;
+
+ typedef std::map<int64, AshWindowTreeHost*> WindowTreeHostMap;
+ // The mapping from display ID to its window tree host.
+ WindowTreeHostMap window_tree_hosts_;
ObserverList<Observer> observers_;
- // Store the primary root window temporarily while replacing
+ // Store the primary window tree host temporarily while replacing
// display.
- aura::Window* primary_root_window_for_replace_;
+ AshWindowTreeHost* primary_tree_host_for_replace_;
scoped_ptr<internal::FocusActivationStore> focus_activation_store_;

Powered by Google App Engine
This is Rietveld 408576698