| // Copyright 2018 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #import "ios/chrome/browser/ui/list_model/list_item.h" |
| |
| #include "base/logging.h" |
| #import "ios/chrome/browser/ui/list_model/list_item+Controller.h" |
| |
| #if !defined(__has_feature) || !__has_feature(objc_arc) |
| #error "This file requires ARC support." |
| #endif |
| |
| @implementation ListItem |
| |
| @synthesize type = _type; |
| @synthesize cellClass = _cellClass; |
| @synthesize accessibilityIdentifier = _accessibilityIdentifier; |
| |
| - (instancetype)initWithType:(NSInteger)type { |
| if ((self = [super init])) { |
| _type = type; |
| } |
| return self; |
| } |
| |
| - (instancetype)init { |
| return [self initWithType:0]; |
| } |
| |
| - (void)setCellClass:(Class)cellClass { |
| _cellClass = cellClass; |
| } |
| |
| @end |
| |
| @implementation ListItem (Controller) |
| |
| - (void)setType:(NSInteger)type { |
| _type = type; |
| } |
| |
| @end |