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

Unified Diff: ui/message_center/message_popup_bubble.h

Issue 12082081: Sets per-item timers rather than global timer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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
« no previous file with comments | « no previous file | ui/message_center/message_popup_bubble.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/message_popup_bubble.h
diff --git a/ui/message_center/message_popup_bubble.h b/ui/message_center/message_popup_bubble.h
index 7821386c2c0d22c6d24ad86b6c62ab842d97e29c..07d3300d819d28717e404820247d1672fea1c194 100644
--- a/ui/message_center/message_popup_bubble.h
+++ b/ui/message_center/message_popup_bubble.h
@@ -5,6 +5,10 @@
#ifndef UI_MESSAGE_CENTER_MESSAGE_POPUP_BUBBLE_H_
#define UI_MESSAGE_CENTER_MESSAGE_POPUP_BUBBLE_H_
+#include <map>
+#include <set>
+#include <string>
+
#include "base/timer.h"
#include "ui/message_center/message_bubble_base.h"
#include "ui/message_center/message_center_export.h"
@@ -33,17 +37,15 @@ class MESSAGE_CENTER_EXPORT MessagePopupBubble : public MessageBubbleBase {
size_t NumMessageViewsForTest() const;
private:
- void StartAutoCloseTimer(int priority);
- void StopAutoCloseTimer();
+ class AutocloseTimer;
+
+ void OnAutoClose(const std::string& id);
- void OnAutoClose(int priority);
+ void DeleteTimer(const std::string& id);
- base::OneShotTimer<MessagePopupBubble> autoclose_default_;
- base::OneShotTimer<MessagePopupBubble> autoclose_high_;
+ std::map<std::string, AutocloseTimer*> autoclose_timers_;
PopupBubbleContentsView* contents_view_;
- NotificationList::Notifications popup_notifications_;
- bool should_run_default_timer_;
- bool should_run_high_timer_;
+ std::set<std::string> popup_ids_;
DISALLOW_COPY_AND_ASSIGN(MessagePopupBubble);
};
« no previous file with comments | « no previous file | ui/message_center/message_popup_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698