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

Unified Diff: ash/system/web_notification/web_notification_tray.cc

Issue 294963004: Revert of Add OnDisplayMetricsChanged in DisplayObserver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@update_orientation
Patch Set: 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
« no previous file with comments | « ash/shell/window_watcher.cc ('k') | ash/touch/touch_hud_debug.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/web_notification/web_notification_tray.cc
diff --git a/ash/system/web_notification/web_notification_tray.cc b/ash/system/web_notification/web_notification_tray.cc
index 9f52810647d104e914db9a18d58d68a309a65147..36c646ffbabade5197db310feff823c307427a32 100644
--- a/ash/system/web_notification/web_notification_tray.cc
+++ b/ash/system/web_notification/web_notification_tray.cc
@@ -158,10 +158,9 @@
void WorkAreaObserver::OnDisplayWorkAreaInsetsChanged() {
UpdateShelf();
- collection_->OnDisplayMetricsChanged(
+ collection_->OnDisplayBoundsChanged(
Shell::GetScreen()->GetDisplayNearestWindow(
- shelf_->shelf_widget()->GetNativeView()),
- gfx::DisplayObserver::DISPLAY_METRIC_WORK_AREA);
+ shelf_->shelf_widget()->GetNativeView()));
}
void WorkAreaObserver::OnAutoHideStateChanged(ShelfAutoHideState new_state) {
« no previous file with comments | « ash/shell/window_watcher.cc ('k') | ash/touch/touch_hud_debug.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698