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

Unified Diff: ui/message_center/views/toast_contents_view.cc

Issue 369573004: Separate the logic of popup alignment and workarea handling as delegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 years, 5 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 | « ui/message_center/views/popup_alignment_delegate.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/views/toast_contents_view.cc
diff --git a/ui/message_center/views/toast_contents_view.cc b/ui/message_center/views/toast_contents_view.cc
index e5de6a25100c74819a47c1c778258d65061c7a75..365519a920d0bbfd873f6fb33cf16490b1310f4e 100644
--- a/ui/message_center/views/toast_contents_view.cc
+++ b/ui/message_center/views/toast_contents_view.cc
@@ -246,9 +246,7 @@ void ToastContentsView::OnDisplayChanged() {
return;
collection_->OnDisplayMetricsChanged(
- Screen::GetScreenFor(native_view)->GetDisplayNearestWindow(native_view),
- gfx::DisplayObserver::DISPLAY_METRIC_BOUNDS |
- gfx::DisplayObserver::DISPLAY_METRIC_WORK_AREA);
+ Screen::GetScreenFor(native_view)->GetDisplayNearestWindow(native_view));
}
void ToastContentsView::OnWorkAreaChanged() {
@@ -261,8 +259,7 @@ void ToastContentsView::OnWorkAreaChanged() {
return;
collection_->OnDisplayMetricsChanged(
- Screen::GetScreenFor(native_view)->GetDisplayNearestWindow(native_view),
- gfx::DisplayObserver::DISPLAY_METRIC_WORK_AREA);
+ Screen::GetScreenFor(native_view)->GetDisplayNearestWindow(native_view));
}
// views::View
« no previous file with comments | « ui/message_center/views/popup_alignment_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698