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

Unified Diff: ui/message_center/cocoa/status_item_view.h

Issue 21308002: Update Mac notification tray behavior. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments from #1 Created 7 years, 5 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
Index: ui/message_center/cocoa/status_item_view.h
diff --git a/ui/message_center/cocoa/status_item_view.h b/ui/message_center/cocoa/status_item_view.h
index f317dff506a98aff2652073e4bbbcd932e82cb5a..6bde3e62b7a72514a76fef4fa5c543d5aa760d5f 100644
--- a/ui/message_center/cocoa/status_item_view.h
+++ b/ui/message_center/cocoa/status_item_view.h
@@ -35,6 +35,9 @@ MESSAGE_CENTER_EXPORT
// The unread count number to be drawn next to the icon.
size_t unreadCount_;
+ // Whether or not we are to display the quiet mode version of the status icon.
+ BOOL quietMode_;
+
// Whether or not to force the highlight pattern to be drawn.
BOOL highlight_;
@@ -44,12 +47,14 @@ MESSAGE_CENTER_EXPORT
}
@property(copy, nonatomic) message_center::StatusItemClickedCallack callback;
-@property(nonatomic) size_t unreadCount;
@property(nonatomic) BOOL highlight;
// Designated initializer. Creates a new NSStatusItem in the system menubar.
- (id)init;
+// Sets the unread count and quiet mode status of the icon.
+- (void)setUnreadCount:(size_t)unreadCount withQuietMode:(BOOL)quietMode;
+
// Removes the status item from the menubar. Must be called to break the
// retain cycle between self and the NSStatusItem view.
- (void)removeItem;

Powered by Google App Engine
This is Rietveld 408576698