Index: ios/chrome/browser/ui/tools_menu/reading_list_menu_view_item.h |
diff --git a/ios/chrome/browser/ui/tools_menu/reading_list_menu_view_item.h b/ios/chrome/browser/ui/tools_menu/reading_list_menu_view_item.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a5206df5139a9a35c3c6d67d8a59359d6176a1d8 |
--- /dev/null |
+++ b/ios/chrome/browser/ui/tools_menu/reading_list_menu_view_item.h |
@@ -0,0 +1,32 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef IOS_CHROME_BROWSER_UI_TOOLS_MENU_READING_LIST_MENU_VIEW_ITEM_H_ |
+#define IOS_CHROME_BROWSER_UI_TOOLS_MENU_READING_LIST_MENU_VIEW_ITEM_H_ |
+ |
+#import <UIKit/UIKit.h> |
+ |
+#import "ios/chrome/browser/ui/tools_menu/tools_menu_view_item.h" |
+ |
+@class NumberBadgeView; |
+ |
+// Specialization of a ToolsMenuViewItem for the reading list. |
+@interface ReadingListMenuViewItem : ToolsMenuViewItem |
+@end |
+ |
+// Specialization of a ToolsMenuViewCell that shows a badge showing the number |
+// of unread reading list items and sets the menu item title and badge color |
+// based on existence of unread items. |
+@interface ReadingListMenuViewCell : ToolsMenuViewCell |
+ |
+// Update the badge count according to |count|. Can be animated or not. |
+- (void)updateBadgeCount:(NSInteger)count animated:(BOOL)animated; |
+ |
+// Update the seen state according to |hasUnseenItems|. Can be animated or |
+// not. |
+- (void)updateSeenState:(BOOL)hasUnseenItems animated:(BOOL)animated; |
+ |
+@end |
+ |
+#endif // IOS_CHROME_BROWSER_UI_TOOLS_MENU_READING_LIST_MENU_VIEW_ITEM_H_ |