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

Unified Diff: components/exo/wm_helper.cc

Issue 2645663004: exo: Initial support for multiple displays in ARC (Closed)
Patch Set: Address nits Created 3 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
« no previous file with comments | « components/exo/wm_helper.h ('k') | components/exo/wm_helper_ash.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/wm_helper.cc
diff --git a/components/exo/wm_helper.cc b/components/exo/wm_helper.cc
index 009d4cc88386095b787e69315229a7d6be0e2c8e..7f0cfcffe7264f5d77f685f28bacf65df824f359 100644
--- a/components/exo/wm_helper.cc
+++ b/components/exo/wm_helper.cc
@@ -79,6 +79,16 @@ void WMHelper::RemoveInputDeviceEventObserver(
input_device_event_observers_.RemoveObserver(observer);
}
+void WMHelper::AddDisplayConfigurationObserver(
+ DisplayConfigurationObserver* observer) {
+ display_config_observers_.AddObserver(observer);
+}
+
+void WMHelper::RemoveDisplayConfigurationObserver(
+ DisplayConfigurationObserver* observer) {
+ display_config_observers_.RemoveObserver(observer);
+}
+
void WMHelper::NotifyWindowActivated(aura::Window* gained_active,
aura::Window* lost_active) {
for (ActivationObserver& observer : activation_observers_)
@@ -126,4 +136,9 @@ void WMHelper::NotifyKeyboardDeviceConfigurationChanged() {
observer.OnKeyboardDeviceConfigurationChanged();
}
+void WMHelper::NotifyDisplayConfigurationChanged() {
+ for (DisplayConfigurationObserver& observer : display_config_observers_)
+ observer.OnDisplayConfigurationChanged();
+}
+
} // namespace exo
« no previous file with comments | « components/exo/wm_helper.h ('k') | components/exo/wm_helper_ash.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698