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

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

Issue 2834773002: Hide popup custom notifications on non-primary displays (Closed)
Patch Set: Rewrote comment Created 3 years, 8 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/system/web_notification/ash_popup_alignment_delegate.cc
diff --git a/ash/system/web_notification/ash_popup_alignment_delegate.cc b/ash/system/web_notification/ash_popup_alignment_delegate.cc
index 360062a087854595b8a2c9ed12dca3fad9da3e9b..f2e4d84ddb6b7271b2ddce0a018b0597d37beb1e 100644
--- a/ash/system/web_notification/ash_popup_alignment_delegate.cc
+++ b/ash/system/web_notification/ash_popup_alignment_delegate.cc
@@ -122,6 +122,11 @@ void AshPopupAlignmentDelegate::ConfigureWidgetInitParamsForContainer(
widget, kShellWindowId_StatusContainer, init_params);
}
+bool AshPopupAlignmentDelegate::IsPrimaryDisplayForNotification() const {
+ return screen_ &&
+ GetCurrentDisplay().id() == screen_->GetPrimaryDisplay().id();
+}
+
ShelfAlignment AshPopupAlignmentDelegate::GetAlignment() const {
return shelf_->GetAlignment();
}
« no previous file with comments | « ash/system/web_notification/ash_popup_alignment_delegate.h ('k') | ui/message_center/views/desktop_popup_alignment_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698