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_CONTENT_SUGGESTION_IDENTIFIER_
H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_IDENTIFIER_CONTENT_SUGGESTION_
IDENTIFIER_H_ |
6 #define IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTION_IDENTIFIER_
H_ | 6 #define IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_IDENTIFIER_CONTENT_SUGGESTION_
IDENTIFIER_H_ |
7 | 7 |
8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 @class ContentSuggestionsSectionInformation; | 12 @class ContentSuggestionsSectionInformation; |
13 | 13 |
14 // An class identifying a suggestion. | 14 // An class identifying a suggestion. |
15 @interface ContentSuggestionIdentifier : NSObject | 15 @interface ContentSuggestionIdentifier : NSObject |
16 | 16 |
17 @property(nonatomic, strong) ContentSuggestionsSectionInformation* sectionInfo; | 17 @property(nonatomic, strong) ContentSuggestionsSectionInformation* sectionInfo; |
18 // Must be unique inside a section. | 18 // Must be unique inside a section. |
19 @property(nonatomic, assign) std::string IDInSection; | 19 @property(nonatomic, assign) std::string IDInSection; |
20 | 20 |
21 @end | 21 @end |
22 | 22 |
23 // A protocol for an object having an ID. | 23 // A protocol for an object having an ID. |
24 @protocol ContentSuggestionIdentification | 24 @protocol ContentSuggestionIdentification |
25 | 25 |
26 @property(nonatomic, strong) ContentSuggestionIdentifier* suggestionIdentifier; | 26 @property(nonatomic, strong) ContentSuggestionIdentifier* suggestionIdentifier; |
27 | 27 |
28 @end | 28 @end |
29 | 29 |
30 #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTION_IDENTIFI
ER_H_ | 30 #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_IDENTIFIER_CONTENT_SUGGESTI
ON_IDENTIFIER_H_ |
OLD | NEW |