| Index: ui/message_center/message_simple_view.cc
|
| diff --git a/ui/message_center/message_simple_view.cc b/ui/message_center/message_simple_view.cc
|
| index 94e138422cba77b351aeef4ea3736a9dea1dc648..644c86d4d730657c325d71b2680ebd0663b4fd38 100644
|
| --- a/ui/message_center/message_simple_view.cc
|
| +++ b/ui/message_center/message_simple_view.cc
|
| @@ -21,9 +21,8 @@ const SkColor kNotificationColor = SkColorSetRGB(0xfe, 0xfe, 0xfe);
|
| const SkColor kNotificationReadColor = SkColorSetRGB(0xfa, 0xfa, 0xfa);
|
|
|
| MessageSimpleView::MessageSimpleView(
|
| - NotificationList::Delegate* list_delegate,
|
| - const Notification& notification)
|
| - : MessageView(list_delegate, notification) {
|
| + NotificationList::Delegate* list_delegate)
|
| + : MessageView(list_delegate) {
|
| views::ImageButton* close = new views::ImageButton(this);
|
| close->SetImage(
|
| views::CustomButton::STATE_NORMAL,
|
| @@ -59,20 +58,22 @@ gfx::Size MessageSimpleView::GetPreferredSize() {
|
| return size;
|
| }
|
|
|
| -void MessageSimpleView::SetUpView() {
|
| +void MessageSimpleView::SetUpView(const Notification& notification) {
|
| + MessageView::SetUpView(notification);
|
| +
|
| views::ImageView* icon = new views::ImageView;
|
| icon->SetImageSize(
|
| gfx::Size(kWebNotificationIconSize, kWebNotificationIconSize));
|
| - icon->SetImage(notification().primary_icon);
|
| + icon->SetImage(notification.primary_icon());
|
|
|
| - views::Label* title = new views::Label(notification().title);
|
| + views::Label* title = new views::Label(notification.title());
|
| title->SetHorizontalAlignment(gfx::ALIGN_LEFT);
|
| title->SetFont(title->font().DeriveFont(0, gfx::Font::BOLD));
|
| - views::Label* message = new views::Label(notification().message);
|
| + views::Label* message = new views::Label(notification.message());
|
| message->SetHorizontalAlignment(gfx::ALIGN_LEFT);
|
| message->SetMultiLine(true);
|
|
|
| - SkColor bg_color = notification().is_read ?
|
| + SkColor bg_color = notification.is_read() ?
|
| kNotificationReadColor : kNotificationColor;
|
| content_view_.reset(new views::View);
|
| content_view_->set_background(
|
|
|