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

Unified Diff: ios/chrome/browser/ui/tools_menu/reading_list_menu_view_item.h

Issue 2588733002: Upstream Chrome on iOS source code [9/11]. (Closed)
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
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_
« no previous file with comments | « ios/chrome/browser/ui/tools_menu/new_menu_view_item.h ('k') | ios/chrome/browser/ui/tools_menu/reading_list_menu_view_item.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698