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

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

Issue 11417103: Add quiet mode settings bubble. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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.gyp ('k') | ui/message_center/quiet_mode_bubble.h » ('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 <string> 9 #include <string>
10 10
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 // means that all notifications have been shown). 126 // means that all notifications have been shown).
127 bool HasPopupNotifications(); 127 bool HasPopupNotifications();
128 128
129 // Modifies |notifications| to contain the |kMaxVisiblePopupNotifications| 129 // Modifies |notifications| to contain the |kMaxVisiblePopupNotifications|
130 // least recent notifications that have not been shown as a popup. 130 // least recent notifications that have not been shown as a popup.
131 void GetPopupNotifications(Notifications* notifications); 131 void GetPopupNotifications(Notifications* notifications);
132 132
133 // Marks the popups returned by GetPopupNotifications() as shown. 133 // Marks the popups returned by GetPopupNotifications() as shown.
134 void MarkPopupsAsShown(); 134 void MarkPopupsAsShown();
135 135
136 bool quiet_mode() const { return quiet_mode_; }
137
136 // Sets the current quiet mode status to |quiet_mode|. The new status is not 138 // Sets the current quiet mode status to |quiet_mode|. The new status is not
137 // expired. 139 // expired.
138 void SetQuietMode(bool quiet_mode); 140 void SetQuietMode(bool quiet_mode);
139 141
140 // Sets the current quiet mode to true. The quiet mode will expire in the 142 // Sets the current quiet mode to true. The quiet mode will expire in the
141 // specified time-delta from now. 143 // specified time-delta from now.
142 void EnterQuietModeWithExpire(const base::TimeDelta& expires_in); 144 void EnterQuietModeWithExpire(const base::TimeDelta& expires_in);
143 145
144 const Notifications& notifications() const { return notifications_; } 146 const Notifications& notifications() const { return notifications_; }
145 size_t unread_count() const { return unread_count_; } 147 size_t unread_count() const { return unread_count_; }
(...skipping 28 matching lines...) Expand all
174 size_t unread_count_; 176 size_t unread_count_;
175 bool quiet_mode_; 177 bool quiet_mode_;
176 scoped_ptr<base::OneShotTimer<NotificationList> > quiet_mode_timer_; 178 scoped_ptr<base::OneShotTimer<NotificationList> > quiet_mode_timer_;
177 179
178 DISALLOW_COPY_AND_ASSIGN(NotificationList); 180 DISALLOW_COPY_AND_ASSIGN(NotificationList);
179 }; 181 };
180 182
181 } // namespace message_center 183 } // namespace message_center
182 184
183 #endif // UI_MESSAGE_CENTER_NOTIFICATION_LIST_H_ 185 #endif // UI_MESSAGE_CENTER_NOTIFICATION_LIST_H_
OLDNEW
« no previous file with comments | « ui/message_center/message_center.gyp ('k') | ui/message_center/quiet_mode_bubble.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698