| Index: ui/message_center/views/notification_header_view.cc
|
| diff --git a/ui/message_center/views/notification_header_view.cc b/ui/message_center/views/notification_header_view.cc
|
| index 97cdd3615e5f54a81311eeb736c30e2a68671d70..18f58871514efdcc6fa2bd085d8eb5c835ff295f 100644
|
| --- a/ui/message_center/views/notification_header_view.cc
|
| +++ b/ui/message_center/views/notification_header_view.cc
|
| @@ -62,6 +62,21 @@ NotificationHeaderView::NotificationHeaderView(views::ButtonListener* listener)
|
| app_name_view_->SetHorizontalAlignment(gfx::ALIGN_LEFT);
|
| app_info_container->AddChildView(app_name_view_);
|
|
|
| + // Summary text divider
|
| + summary_text_divider_ = new views::Label(l10n_util::GetStringUTF16(
|
| + IDS_MESSAGE_CENTER_NOTIFICATION_HEADER_DIVIDER_SYMBOL_WITH_SPACES));
|
| + summary_text_divider_->SetFontList(font_list);
|
| + summary_text_divider_->SetHorizontalAlignment(gfx::ALIGN_LEFT);
|
| + summary_text_divider_->SetVisible(false);
|
| + app_info_container->AddChildView(summary_text_divider_);
|
| +
|
| + // Summary text view
|
| + summary_text_view_ = new views::Label(base::string16());
|
| + summary_text_view_->SetFontList(font_list);
|
| + summary_text_view_->SetHorizontalAlignment(gfx::ALIGN_LEFT);
|
| + summary_text_view_->SetVisible(false);
|
| + app_info_container->AddChildView(summary_text_view_);
|
| +
|
| // Expand button view
|
| expand_button_ = new views::ImageButton(listener);
|
| expand_button_->SetImage(
|
| @@ -106,6 +121,18 @@ void NotificationHeaderView::SetAppName(const base::string16& name) {
|
| app_name_view_->SetText(name);
|
| }
|
|
|
| +void NotificationHeaderView::SetSummaryText(
|
| + const base::string16& summary_text) {
|
| + if (summary_text.empty()) {
|
| + summary_text_divider_->SetVisible(false);
|
| + summary_text_view_->SetVisible(false);
|
| + } else {
|
| + summary_text_view_->SetText(summary_text);
|
| + summary_text_divider_->SetVisible(true);
|
| + summary_text_view_->SetVisible(true);
|
| + }
|
| +}
|
| +
|
| void NotificationHeaderView::SetExpandButtonEnabled(bool enabled) {
|
| expand_button_->SetVisible(enabled);
|
| }
|
|
|