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

Unified Diff: ash/system/web_notification/web_notification_list.h

Issue 11189099: Re-factor Ash Message Center code part 4/4 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 2 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 | « ash/system/web_notification/message_center.cc ('k') | ash/system/web_notification/web_notification_tray.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/web_notification/web_notification_list.h
diff --git a/ash/system/web_notification/web_notification_list.h b/ash/system/web_notification/web_notification_list.h
index 4fb241610783330f4105bf85f0d75b2064dc7ec4..74d06f420bc57a69d97001a1c127a5d3b6f8b979 100644
--- a/ash/system/web_notification/web_notification_list.h
+++ b/ash/system/web_notification/web_notification_list.h
@@ -44,6 +44,7 @@ class ASH_EXPORT WebNotificationList {
explicit WebNotificationList(Delegate* delegate);
virtual ~WebNotificationList();
+ // Affects whether or not a message has been "read".
void SetMessageCenterVisible(bool visible);
void AddNotification(const std::string& id,
@@ -84,7 +85,7 @@ class ASH_EXPORT WebNotificationList {
void MarkPopupsAsShown();
const Notifications& notifications() const { return notifications_; }
- int unread_count() const { return unread_count_; }
+ size_t unread_count() const { return unread_count_; }
static const size_t kMaxVisiblePopupNotifications;
static const size_t kMaxVisibleMessageCenterNotifications;
@@ -106,7 +107,7 @@ class ASH_EXPORT WebNotificationList {
Delegate* delegate_;
Notifications notifications_;
bool message_center_visible_;
- int unread_count_;
+ size_t unread_count_;
DISALLOW_COPY_AND_ASSIGN(WebNotificationList);
};
« no previous file with comments | « ash/system/web_notification/message_center.cc ('k') | ash/system/web_notification/web_notification_tray.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698