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

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

Issue 2078773003: Realign message center popups when displays are added or removed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Realign message center popups when displays are added or removed Created 4 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 | « AUTHORS ('k') | ui/message_center/views/desktop_popup_alignment_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/views/desktop_popup_alignment_delegate.h
diff --git a/ui/message_center/views/desktop_popup_alignment_delegate.h b/ui/message_center/views/desktop_popup_alignment_delegate.h
index aa919dba4dbe9e034376ce9a59ebe5051a6b27dc..00807dc5b2380b83ea1233f230abc1e20d219a17 100644
--- a/ui/message_center/views/desktop_popup_alignment_delegate.h
+++ b/ui/message_center/views/desktop_popup_alignment_delegate.h
@@ -52,6 +52,8 @@ class MESSAGE_CENTER_EXPORT DesktopPopupAlignmentDelegate
POPUP_ALIGNMENT_RIGHT = 1 << 3,
};
+ void UpdatePrimaryDisplay();
+
// Overridden from display::DisplayObserver:
void OnDisplayAdded(const display::Display& new_display) override;
void OnDisplayRemoved(const display::Display& old_display) override;
@@ -59,7 +61,7 @@ class MESSAGE_CENTER_EXPORT DesktopPopupAlignmentDelegate
uint32_t metrics) override;
int32_t alignment_;
- int64_t display_id_;
+ int64_t primary_display_id_;
display::Screen* screen_;
gfx::Rect work_area_;
« no previous file with comments | « AUTHORS ('k') | ui/message_center/views/desktop_popup_alignment_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698