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

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
« no previous file with comments | « ui/message_center/message_center.cc ('k') | ui/message_center/notification_list.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 // means that all notifications have been shown). 142 // means that all notifications have been shown).
143 bool HasPopupNotifications(); 143 bool HasPopupNotifications();
144 144
145 // Modifies |notifications| to contain the |kMaxVisiblePopupNotifications| 145 // Modifies |notifications| to contain the |kMaxVisiblePopupNotifications|
146 // least recent notifications that have not been shown as a popup. 146 // least recent notifications that have not been shown as a popup.
147 void GetPopupNotifications(Notifications* notifications); 147 void GetPopupNotifications(Notifications* notifications);
148 148
149 // Marks the popups for the |priority| as shown. 149 // Marks the popups for the |priority| as shown.
150 void MarkPopupsAsShown(int priority); 150 void MarkPopupsAsShown(int priority);
151 151
152 // Marks a specific popup item as shown.
153 void MarkSinglePopupAsShown(const std::string& id);
154
152 bool quiet_mode() const { return quiet_mode_; } 155 bool quiet_mode() const { return quiet_mode_; }
153 156
154 // Sets the current quiet mode status to |quiet_mode|. The new status is not 157 // Sets the current quiet mode status to |quiet_mode|. The new status is not
155 // expired. 158 // expired.
156 void SetQuietMode(bool quiet_mode); 159 void SetQuietMode(bool quiet_mode);
157 160
158 // Sets the current quiet mode to true. The quiet mode will expire in the 161 // Sets the current quiet mode to true. The quiet mode will expire in the
159 // specified time-delta from now. 162 // specified time-delta from now.
160 void EnterQuietModeWithExpire(const base::TimeDelta& expires_in); 163 void EnterQuietModeWithExpire(const base::TimeDelta& expires_in);
161 164
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 size_t unread_count_; 203 size_t unread_count_;
201 bool quiet_mode_; 204 bool quiet_mode_;
202 scoped_ptr<base::OneShotTimer<NotificationList> > quiet_mode_timer_; 205 scoped_ptr<base::OneShotTimer<NotificationList> > quiet_mode_timer_;
203 206
204 DISALLOW_COPY_AND_ASSIGN(NotificationList); 207 DISALLOW_COPY_AND_ASSIGN(NotificationList);
205 }; 208 };
206 209
207 } // namespace message_center 210 } // namespace message_center
208 211
209 #endif // UI_MESSAGE_CENTER_NOTIFICATION_LIST_H_ 212 #endif // UI_MESSAGE_CENTER_NOTIFICATION_LIST_H_
OLDNEW
« no previous file with comments | « ui/message_center/message_center.cc ('k') | ui/message_center/notification_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698