| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_COLLECTION_VIEW_COLLECTION_VIEW_MODEL_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_COLLECTION_VIEW_COLLECTION_VIEW_MODEL_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_COLLECTION_VIEW_COLLECTION_VIEW_MODEL_H_ | 6 #define IOS_CHROME_BROWSER_UI_COLLECTION_VIEW_COLLECTION_VIEW_MODEL_H_ |
| 7 | 7 |
| 8 #include <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
| 9 | 9 |
| 10 @class CollectionViewItem; | 10 @class CollectionViewItem; |
| 11 | 11 |
| 12 // Use these as the starting value for section identifier and item type enums. | 12 // Use these as the starting value for section identifier and item type enums. |
| 13 // These are provided to help not mix between indexPath's section/item and the | 13 // These are provided to help not mix between indexPath's section/item and the |
| 14 // model section identifier / item type. | 14 // model section identifier / item type. |
| 15 // | 15 // |
| 16 // For example: | 16 // For example: |
| 17 // typedef NS_ENUM(NSInteger, SectionIdentifier) { | 17 // typedef NS_ENUM(NSInteger, SectionIdentifier) { |
| 18 // SectionIdentifierFoo = kSectionIdentifierEnumZero, | 18 // SectionIdentifierFoo = kSectionIdentifierEnumZero, |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 | 176 |
| 177 // Returns the number of collection view sections. | 177 // Returns the number of collection view sections. |
| 178 - (NSInteger)numberOfSections; | 178 - (NSInteger)numberOfSections; |
| 179 | 179 |
| 180 // Returns the number of collection view items in the given section. | 180 // Returns the number of collection view items in the given section. |
| 181 - (NSInteger)numberOfItemsInSection:(NSInteger)section; | 181 - (NSInteger)numberOfItemsInSection:(NSInteger)section; |
| 182 | 182 |
| 183 @end | 183 @end |
| 184 | 184 |
| 185 #endif // IOS_CHROME_BROWSER_UI_COLLECTION_VIEW_COLLECTION_VIEW_MODEL_H_ | 185 #endif // IOS_CHROME_BROWSER_UI_COLLECTION_VIEW_COLLECTION_VIEW_MODEL_H_ |
| OLD | NEW |