Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(274)

Unified Diff: ui/message_center/views/message_popup_collection.h

Issue 2788673004: Pause close timer of notification while it's active (Closed)
Patch Set: . Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_;

Powered by Google App Engine
This is Rietveld 408576698