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

Unified Diff: ash/display/screen_ash.cc

Issue 259253002: Add OnDisplayMetricsChanged in DisplayObserver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@update_orientation
Patch Set: jochen comments (inc. git cl format) Created 6 years, 7 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/screen_ash.cc
diff --git a/ash/display/screen_ash.cc b/ash/display/screen_ash.cc
index 9d42e49e26724dc8ee03b2daa08fc3eb282b9539..2746a7ebace62845ebbad5401912d0fee4928f6f 100644
--- a/ash/display/screen_ash.cc
+++ b/ash/display/screen_ash.cc
@@ -188,9 +188,12 @@ const gfx::Display& ScreenAsh::GetDisplayForId(int64 display_id) {
return GetDisplayManager()->GetDisplayForId(display_id);
}
-void ScreenAsh::NotifyBoundsChanged(const gfx::Display& display) {
- FOR_EACH_OBSERVER(gfx::DisplayObserver, observers_,
- OnDisplayBoundsChanged(display));
+void ScreenAsh::NotifyMetricsChanged(
+ const gfx::Display& display,
+ gfx::DisplayObserver::DisplayMetrics metrics) {
+ FOR_EACH_OBSERVER(gfx::DisplayObserver,
+ observers_,
+ OnDisplayMetricsChanged(display, metrics));
}
void ScreenAsh::NotifyDisplayAdded(const gfx::Display& display) {

Powered by Google App Engine
This is Rietveld 408576698