| Index: ui/message_center/views/toast_contents_view.cc
|
| diff --git a/ui/message_center/views/toast_contents_view.cc b/ui/message_center/views/toast_contents_view.cc
|
| index 690e694156827f658ab2c4a5ae7a4b3be0b4574e..d004e57f2ad3de379b7592496982efb3c1e1b4a6 100644
|
| --- a/ui/message_center/views/toast_contents_view.cc
|
| +++ b/ui/message_center/views/toast_contents_view.cc
|
| @@ -87,6 +87,15 @@ void ToastContentsView::SetContents(MessageView* view,
|
| NotifyAccessibilityEvent(ui::AX_EVENT_ALERT, false);
|
| }
|
|
|
| +void ToastContentsView::UpdateContents(const Notification& notification,
|
| + bool a11y_feedback_for_updates) {
|
| + DCHECK_GT(child_count(), 0);
|
| + MessageView* message_view = static_cast<MessageView*>(child_at(0));
|
| + message_view->UpdateWithNotification(notification);
|
| + if (a11y_feedback_for_updates)
|
| + NotifyAccessibilityEvent(ui::AX_EVENT_ALERT, false);
|
| +}
|
| +
|
| void ToastContentsView::RevealWithAnimation(gfx::Point origin) {
|
| // Place/move the toast widgets. Currently it stacks the widgets from the
|
| // right-bottom of the work area.
|
|
|