| 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 fc332c2098db8016b79695026159f372c33f1491..482aaea523c6a881e0d6d44c8124d0b9c72f7e11 100644
|
| --- a/ui/message_center/views/toast_contents_view.cc
|
| +++ b/ui/message_center/views/toast_contents_view.cc
|
| @@ -278,6 +278,14 @@ void ToastContentsView::OnWorkAreaChanged() {
|
| Screen::GetScreen()->GetDisplayNearestView(native_view));
|
| }
|
|
|
| +void ToastContentsView::OnWidgetActivationChanged(views::Widget* widget,
|
| + bool active) {
|
| + if (active)
|
| + collection_->PausePopupTimers();
|
| + else
|
| + collection_->RestartPopupTimers();
|
| +}
|
| +
|
| // views::View
|
| void ToastContentsView::OnMouseEntered(const ui::MouseEvent& event) {
|
| if (collection_)
|
| @@ -389,6 +397,7 @@ void ToastContentsView::CreateWidget(
|
| views::Widget* widget = new views::Widget();
|
| alignment_delegate->ConfigureWidgetInitParamsForContainer(widget, ¶ms);
|
| widget->set_focus_on_creation(false);
|
| + widget->AddObserver(this);
|
|
|
| #if defined(OS_WIN)
|
| // We want to ensure that this toast always goes to the native desktop,
|
|
|