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

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

Issue 2472233002: Fix a bug of PopupAlignmentDelegate on non-primary display (Closed)
Patch Set: Addressed comment: returning a rect instead of top Created 4 years, 1 month 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: ui/message_center/views/desktop_popup_alignment_delegate.cc
diff --git a/ui/message_center/views/desktop_popup_alignment_delegate.cc b/ui/message_center/views/desktop_popup_alignment_delegate.cc
index a6c0e5305f4032023eea607177008524bb2e8849..1c32a1eb1e22e69208aebd3f92141faf861d5592 100644
--- a/ui/message_center/views/desktop_popup_alignment_delegate.cc
+++ b/ui/message_center/views/desktop_popup_alignment_delegate.cc
@@ -46,8 +46,8 @@ int DesktopPopupAlignmentDelegate::GetBaseLine() const {
: work_area_.bottom() - kMarginBetweenItems;
}
-int DesktopPopupAlignmentDelegate::GetWorkAreaBottom() const {
- return work_area_.bottom();
+gfx::Rect DesktopPopupAlignmentDelegate::GetWorkArea() const {
+ return work_area_;
}
bool DesktopPopupAlignmentDelegate::IsTopDown() const {
« no previous file with comments | « ui/message_center/views/desktop_popup_alignment_delegate.h ('k') | ui/message_center/views/message_popup_collection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698