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

Side by Side Diff: ui/message_center/notification_list.h

Issue 11778012: Changes the OnClick behavior in message center. (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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_MESSAGE_CENTER_NOTIFICATION_LIST_H_ 5 #ifndef UI_MESSAGE_CENTER_NOTIFICATION_LIST_H_
6 #define UI_MESSAGE_CENTER_NOTIFICATION_LIST_H_ 6 #define UI_MESSAGE_CENTER_NOTIFICATION_LIST_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 // means that all notifications have been shown). 138 // means that all notifications have been shown).
139 bool HasPopupNotifications(); 139 bool HasPopupNotifications();
140 140
141 // Modifies |notifications| to contain the |kMaxVisiblePopupNotifications| 141 // Modifies |notifications| to contain the |kMaxVisiblePopupNotifications|
142 // least recent notifications that have not been shown as a popup. 142 // least recent notifications that have not been shown as a popup.
143 void GetPopupNotifications(Notifications* notifications); 143 void GetPopupNotifications(Notifications* notifications);
144 144
145 // Marks the popups for the |priority| as shown. 145 // Marks the popups for the |priority| as shown.
146 void MarkPopupsAsShown(int priority); 146 void MarkPopupsAsShown(int priority);
147 147
148 // Marks a specific popup item as shown.
149 void MarkSinglePopupAsShown(const std::string& id);
150
148 bool quiet_mode() const { return quiet_mode_; } 151 bool quiet_mode() const { return quiet_mode_; }
149 152
150 // Sets the current quiet mode status to |quiet_mode|. The new status is not 153 // Sets the current quiet mode status to |quiet_mode|. The new status is not
151 // expired. 154 // expired.
152 void SetQuietMode(bool quiet_mode); 155 void SetQuietMode(bool quiet_mode);
153 156
154 // Sets the current quiet mode to true. The quiet mode will expire in the 157 // Sets the current quiet mode to true. The quiet mode will expire in the
155 // specified time-delta from now. 158 // specified time-delta from now.
156 void EnterQuietModeWithExpire(const base::TimeDelta& expires_in); 159 void EnterQuietModeWithExpire(const base::TimeDelta& expires_in);
157 160
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 size_t unread_count_; 199 size_t unread_count_;
197 bool quiet_mode_; 200 bool quiet_mode_;
198 scoped_ptr<base::OneShotTimer<NotificationList> > quiet_mode_timer_; 201 scoped_ptr<base::OneShotTimer<NotificationList> > quiet_mode_timer_;
199 202
200 DISALLOW_COPY_AND_ASSIGN(NotificationList); 203 DISALLOW_COPY_AND_ASSIGN(NotificationList);
201 }; 204 };
202 205
203 } // namespace message_center 206 } // namespace message_center
204 207
205 #endif // UI_MESSAGE_CENTER_NOTIFICATION_LIST_H_ 208 #endif // UI_MESSAGE_CENTER_NOTIFICATION_LIST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698