Chromium Code Reviews| Index: ui/message_center/views/message_popup_collection.h |
| diff --git a/ui/message_center/views/message_popup_collection.h b/ui/message_center/views/message_popup_collection.h |
| index fa0068dec844f35dc776705d10837d76e2d6aaf4..c3edcb1a53051833754f95a79302e0f44f449a07 100644 |
| --- a/ui/message_center/views/message_popup_collection.h |
| +++ b/ui/message_center/views/message_popup_collection.h |
| @@ -72,6 +72,9 @@ class MESSAGE_CENTER_EXPORT MessagePopupCollection |
| void MarkAllPopupsShown(); |
| + void PausePopupTimers(); |
| + void RestartPopupTimers(); |
| + |
| // Since these events are really coming from individual toast widgets, |
| // it helps to be able to keep track of the sender. |
| void OnMouseEntered(ToastContentsView* toast_entered); |
| @@ -165,6 +168,8 @@ class MESSAGE_CENTER_EXPORT MessagePopupCollection |
| // Only to be used when user_is_closing_toasts_by_clicking_ is true. |
| int target_top_edge_; |
| + int timer_pause_counter_ = 0; |
|
yhanada
2017/04/04 04:24:09
It's great to add comment about what this variable
yoshiki
2017/04/04 04:58:27
Done.
|
| + |
| // Weak, only exists temporarily in tests. |
| std::unique_ptr<base::RunLoop> run_loop_for_test_; |