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

Unified Diff: ash/display/display_controller.h

Issue 1107733006: Unified Desktop: hook up ash to allow unified desktop mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: AshWindowTreeHostUnified Created 5 years, 8 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/ash_switches.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 3dc81890101e6dde46bf4b123cb6d44dddae311b..a46b8d1d3f48be587a63e6b30051d92f6111ba1f 100644
--- a/ash/display/display_controller.h
+++ b/ash/display/display_controller.h
@@ -106,6 +106,10 @@ class ASH_EXPORT DisplayController : public gfx::DisplayObserver,
// Returns the root window for |display_id|.
aura::Window* GetRootWindowForDisplayId(int64 id);
+ // Returns AshWTH for given display |id|. Call results in CHECK failure
+ // if the WTH does not exist.
+ AshWindowTreeHost* GetAshWindowTreeHostForDisplayId(int64 id);
+
// Toggle mirror mode.
void ToggleMirrorMode();
@@ -153,7 +157,8 @@ class ASH_EXPORT DisplayController : public gfx::DisplayObserver,
void OnHostResized(const aura::WindowTreeHost* host) override;
// aura::DisplayManager::Delegate overrides:
- void CreateOrUpdateMirroringDisplay(const DisplayInfo& info) override;
+ void CreateOrUpdateMirroringDisplay(
+ const DisplayInfoList& info_list) override;
void CloseMirroringDisplay() override;
void PreDisplayConfigurationChange(bool clear_focus) override;
void PostDisplayConfigurationChange() override;
@@ -174,6 +179,10 @@ class ASH_EXPORT DisplayController : public gfx::DisplayObserver,
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();
« no previous file with comments | « ash/ash_switches.cc ('k') | ash/display/display_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698