Chromium Code Reviews| 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. If the section becomes empty | |
| 49 // because the user dismissed suggestions, it should be shown in either cases. | |
|
lpromero
2017/03/23 10:54:37
Regarding the last sentence, does that means that
gambard
2017/03/23 15:25:49
The property will not be honored.
| |
| 50 @property(nonatomic, assign) BOOL showIfEmpty; | |
| 46 | 51 |
| 47 @end | 52 @end |
| 48 | 53 |
| 49 #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_IDENTIFIER_CONTENT_SUGGESTI ONS_SECTION_INFORMATION_H_ | 54 #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_IDENTIFIER_CONTENT_SUGGESTI ONS_SECTION_INFORMATION_H_ |
| OLD | NEW |