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

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: Fix mac tests. 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..4262f3139ce5953fe4db79775ee8711ed3c643c8 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,16 +47,24 @@ 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;
@end
+@interface MCStatusItemView (TestingAPI)
+
+- (size_t)unreadCount;
+
+@end
+
#endif // UI_MESSAGE_CENTER_COCOA_STATUS_ITEM_VIEW_H_

Powered by Google App Engine
This is Rietveld 408576698