OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #import "ios/chrome/browser/ui/content_suggestions/content_suggestions_section_i
nformation.h" | |
6 | |
7 #include "base/logging.h" | |
8 | |
9 #if !defined(__has_feature) || !__has_feature(objc_arc) | |
10 #error "This file requires ARC support." | |
11 #endif | |
12 | |
13 @implementation ContentSuggestionsSectionInformation | |
14 | |
15 @synthesize emptyCell = _emptyCell; | |
16 @synthesize layout = _layout; | |
17 @synthesize sectionID = _sectionID; | |
18 @synthesize title = _title; | |
19 @synthesize footerTitle = _footerTitle; | |
20 | |
21 - (instancetype)initWithSectionID:(ContentSuggestionsSectionID)sectionID { | |
22 self = [super init]; | |
23 if (self) { | |
24 DCHECK(sectionID < ContentSuggestionsSectionUnknown); | |
25 _sectionID = sectionID; | |
26 } | |
27 return self; | |
28 } | |
29 | |
30 @end | |
OLD | NEW |