OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef IOS_CHROME_BROWSER_UI_HISTORY_HISTORY_ENTRIES_STATUS_ITEM_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_HISTORY_HISTORY_ENTRIES_STATUS_ITEM_H_ |
6 #define IOS_CHROME_BROWSER_UI_HISTORY_HISTORY_ENTRIES_STATUS_ITEM_H_ | 6 #define IOS_CHROME_BROWSER_UI_HISTORY_HISTORY_ENTRIES_STATUS_ITEM_H_ |
7 | 7 |
8 #import "ios/chrome/browser/ui/collection_view/cells/collection_view_footer_item
.h" | 8 #import "ios/chrome/browser/ui/collection_view/cells/collection_view_footer_item
.h" |
9 #import "ios/chrome/browser/ui/collection_view/cells/collection_view_item.h" | 9 #import "ios/chrome/browser/ui/collection_view/cells/collection_view_item.h" |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 | 31 |
32 // Model item for HistoryEntriesStatusCell. Manages links added to the cell. | 32 // Model item for HistoryEntriesStatusCell. Manages links added to the cell. |
33 @interface HistoryEntriesStatusItem : CollectionViewItem | 33 @interface HistoryEntriesStatusItem : CollectionViewItem |
34 // Status of currently displayed history entries. | 34 // Status of currently displayed history entries. |
35 @property(nonatomic, assign) HistoryEntriesStatus entriesStatus; | 35 @property(nonatomic, assign) HistoryEntriesStatus entriesStatus; |
36 // YES if messages should be hidden. | 36 // YES if messages should be hidden. |
37 @property(nonatomic, assign, getter=isHidden) BOOL hidden; | 37 @property(nonatomic, assign, getter=isHidden) BOOL hidden; |
38 // YES if message for other forms of browsing data should be shown. | 38 // YES if message for other forms of browsing data should be shown. |
39 @property(nonatomic, assign) BOOL showsOtherBrowsingDataNotice; | 39 @property(nonatomic, assign) BOOL showsOtherBrowsingDataNotice; |
40 // Delegate for HistoryEntriesStatusItem. Is notified when a link is pressed. | 40 // Delegate for HistoryEntriesStatusItem. Is notified when a link is pressed. |
41 @property(nonatomic, assign) id<HistoryEntriesStatusItemDelegate> delegate; | 41 @property(nonatomic, weak) id<HistoryEntriesStatusItemDelegate> delegate; |
42 @end | 42 @end |
43 | 43 |
44 // Cell for displaying status for history entry. Provides information on whether | 44 // Cell for displaying status for history entry. Provides information on whether |
45 // local or synced entries or displays, and how to access other forms of | 45 // local or synced entries or displays, and how to access other forms of |
46 // browsing history, if applicable. | 46 // browsing history, if applicable. |
47 @interface HistoryEntriesStatusCell : CollectionViewFooterCell | 47 @interface HistoryEntriesStatusCell : CollectionViewFooterCell |
48 @end | 48 @end |
49 | 49 |
50 @interface HistoryEntriesStatusCell (Testing) | 50 @interface HistoryEntriesStatusCell (Testing) |
51 // Link controller for entries status message. | 51 // Link controller for entries status message. |
52 @property(nonatomic, retain, readonly) LabelLinkController* labelLinkController; | 52 @property(nonatomic, retain, readonly) LabelLinkController* labelLinkController; |
53 @end | 53 @end |
54 | 54 |
55 #endif // IOS_CHROME_BROWSER_UI_HISTORY_HISTORY_ENTRIES_STATUS_ITEM_H_ | 55 #endif // IOS_CHROME_BROWSER_UI_HISTORY_HISTORY_ENTRIES_STATUS_ITEM_H_ |
OLD | NEW |