OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_CONTENT_SUGGESTIONS_IDENTIFIER_CONTENT_SUGGESTIONS
_SECTION_INFORMATION_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_IDENTIFIER_CONTENT_SUGGESTIONS
_SECTION_INFORMATION_H_ |
6 #define IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_IDENTIFIER_CONTENT_SUGGESTIONS
_SECTION_INFORMATION_H_ | 6 #define IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_IDENTIFIER_CONTENT_SUGGESTIONS
_SECTION_INFORMATION_H_ |
7 | 7 |
8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
9 | 9 |
10 // Layout for the section and its items. | 10 // Layout for the section and its items. |
(...skipping 25 matching lines...) Expand all Loading... |
36 - (instancetype)init NS_UNAVAILABLE; | 36 - (instancetype)init NS_UNAVAILABLE; |
37 | 37 |
38 // Layout to display the content of the section. | 38 // Layout to display the content of the section. |
39 @property(nonatomic, assign) ContentSuggestionsSectionLayout layout; | 39 @property(nonatomic, assign) ContentSuggestionsSectionLayout layout; |
40 // ID of the section. Used for ordering. | 40 // ID of the section. Used for ordering. |
41 @property(nonatomic, assign, readonly) ContentSuggestionsSectionID sectionID; | 41 @property(nonatomic, assign, readonly) ContentSuggestionsSectionID sectionID; |
42 // Title for the section. | 42 // Title for the section. |
43 @property(nonatomic, copy) NSString* title; | 43 @property(nonatomic, copy) NSString* title; |
44 // Title of the section's footer. If it is nil, no footer is created. | 44 // Title of the section's footer. If it is nil, no footer is created. |
45 @property(nonatomic, copy) NSString* footerTitle; | 45 @property(nonatomic, copy) NSString* footerTitle; |
| 46 // Text to be displayed when the section is empty. |
| 47 @property(nonatomic, copy) NSString* emptyText; |
| 48 // If the section should be shown when empty at loading. If the section becomes |
| 49 // empty because the user dismissed suggestions, the |emptyText| must be shown |
| 50 // in both cases. |
| 51 @property(nonatomic, assign) BOOL showIfEmpty; |
46 | 52 |
47 @end | 53 @end |
48 | 54 |
49 #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_IDENTIFIER_CONTENT_SUGGESTI
ONS_SECTION_INFORMATION_H_ | 55 #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_IDENTIFIER_CONTENT_SUGGESTI
ONS_SECTION_INFORMATION_H_ |
OLD | NEW |