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

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

Issue 2620133003: Set slide_out_enabled property for CustomNotification (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | ui/message_center/views/notification_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/views/message_view.cc
diff --git a/ui/message_center/views/message_view.cc b/ui/message_center/views/message_view.cc
index 4ec351c79b7304f9c2525b0898f8292ff9be987a..c8ebc106c1290b206c0bfda991ad314c35a9d1f3 100644
--- a/ui/message_center/views/message_view.cc
+++ b/ui/message_center/views/message_view.cc
@@ -86,6 +86,7 @@ MessageView::MessageView(MessageCenterController* controller,
kFocusBorderColor, gfx::Insets(0, 1, 3, 2));
accessible_name_ = CreateAccessibleName(notification);
+ set_slide_out_enabled(!notification.pinned());
yhanada 2017/01/12 05:51:58 optional: How about calling UpdateWithNotification
yoshiki 2017/01/16 06:08:50 Good idea! done.
}
MessageView::~MessageView() {
@@ -95,6 +96,7 @@ void MessageView::UpdateWithNotification(const Notification& notification) {
small_image_view_->SetImage(notification.small_image().AsImageSkia());
display_source_ = notification.display_source();
accessible_name_ = CreateAccessibleName(notification);
+ set_slide_out_enabled(!notification.pinned());
}
// static
« no previous file with comments | « no previous file | ui/message_center/views/notification_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698