chromium/ios/chrome/browser/shared/ui/list_model/list_item.h

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef IOS_CHROME_BROWSER_SHARED_UI_LIST_MODEL_LIST_ITEM_H_
#define IOS_CHROME_BROWSER_SHARED_UI_LIST_MODEL_LIST_ITEM_H_

#import <UIKit/UIKit.h>

// ListItem holds the model data for a given list item.  This is intended to be
// an abstract base class; callers should use one of the {collectionview,
// tableview}-specific subclasses.
@interface ListItem : NSObject <UIAccessibilityIdentification>

// A client-defined value.
@property(nonatomic, readonly, assign) NSInteger type;

// The cell class to use in conjunction with this item.
@property(nonatomic, assign) Class cellClass;

- (instancetype)initWithType:(NSInteger)type NS_DESIGNATED_INITIALIZER;

@end

#endif  // IOS_CHROME_BROWSER_SHARED_UI_LIST_MODEL_LIST_ITEM_H_