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

Unified Diff: components/exo/wm_helper_ash.cc

Issue 2645663004: exo: Initial support for multiple displays in ARC (Closed)
Patch Set: Rebase Created 3 years, 10 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
« components/exo/wayland/server.cc ('K') | « components/exo/wm_helper_ash.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/wm_helper_ash.cc
diff --git a/components/exo/wm_helper_ash.cc b/components/exo/wm_helper_ash.cc
index 413eeb8e6a60302aea0b24eba02c7a5bdcc878e1..37d38c5640b54668f08e6cd48a85b2fecca18376 100644
--- a/components/exo/wm_helper_ash.cc
+++ b/components/exo/wm_helper_ash.cc
@@ -23,6 +23,7 @@ namespace exo {
WMHelperAsh::WMHelperAsh() {
ash::WmShell::Get()->AddShellObserver(this);
ash::Shell::GetInstance()->activation_client()->AddObserver(this);
+ ash::Shell::GetInstance()->window_tree_host_manager()->AddObserver(this);
aura::client::FocusClient* focus_client =
aura::client::GetFocusClient(ash::Shell::GetPrimaryRootWindow());
focus_client->AddObserver(this);
@@ -37,6 +38,7 @@ WMHelperAsh::~WMHelperAsh() {
aura::client::GetFocusClient(ash::Shell::GetPrimaryRootWindow());
focus_client->RemoveObserver(this);
ash::Shell::GetInstance()->activation_client()->RemoveObserver(this);
+ ash::Shell::GetInstance()->window_tree_host_manager()->RemoveObserver(this);
ash::WmShell::Get()->RemoveShellObserver(this);
ui::DeviceDataManager::GetInstance()->RemoveObserver(this);
ash::WmShell::Get()->system_tray_notifier()->RemoveAccessibilityObserver(
@@ -144,6 +146,10 @@ void WMHelperAsh::OnMaximizeModeEnded() {
NotifyMaximizeModeEnded();
}
+void WMHelperAsh::OnDisplayConfigurationChanged() {
+ NotifyDisplayConfigurationChanged();
+}
+
void WMHelperAsh::OnKeyboardDeviceConfigurationChanged() {
NotifyKeyboardDeviceConfigurationChanged();
}
« components/exo/wayland/server.cc ('K') | « components/exo/wm_helper_ash.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698