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_CONTROLLER_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_COLLECTION_VIEW_COLLECTION_VIEW_CONTROLLER_H_ |
6 #define IOS_CHROME_BROWSER_UI_COLLECTION_VIEW_COLLECTION_VIEW_CONTROLLER_H_ | 6 #define IOS_CHROME_BROWSER_UI_COLLECTION_VIEW_COLLECTION_VIEW_CONTROLLER_H_ |
7 | 7 |
8 #import "ios/chrome/browser/ui/collection_view/collection_view_model.h" | 8 #import "ios/chrome/browser/ui/collection_view/collection_view_model.h" |
9 #import "ios/chrome/browser/ui/material_components/app_bar_presenting.h" | 9 #import "ios/chrome/browser/ui/material_components/app_bar_presenting.h" |
10 #import "ios/third_party/material_components_ios/src/components/Collections/src/
MaterialCollections.h" | 10 #import "ios/third_party/material_components_ios/src/components/Collections/src/
MaterialCollections.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 | 40 |
41 // Initializes the collection view model. Must be called by subclasses if they | 41 // Initializes the collection view model. Must be called by subclasses if they |
42 // override this method in order to get a clean collectionViewModel. | 42 // override this method in order to get a clean collectionViewModel. |
43 - (void)loadModel NS_REQUIRES_SUPER; | 43 - (void)loadModel NS_REQUIRES_SUPER; |
44 | 44 |
45 // Reconfigures the cells corresponding to the given |items| by calling | 45 // Reconfigures the cells corresponding to the given |items| by calling |
46 // |configureCell:| on each cell. | 46 // |configureCell:| on each cell. |
47 - (void)reconfigureCellsForItems:(NSArray*)items | 47 - (void)reconfigureCellsForItems:(NSArray*)items |
48 inSectionWithIdentifier:(NSInteger)sectionIdentifier; | 48 inSectionWithIdentifier:(NSInteger)sectionIdentifier; |
49 | 49 |
| 50 // Reconfigures the cells corresponding to the given |indexPaths| by calling |
| 51 // |configureCell:| on each cell. |
| 52 - (void)reconfigureCellsAtIndexPaths:(NSArray*)indexPaths; |
| 53 |
50 #pragma mark MDCCollectionViewEditingDelegate | 54 #pragma mark MDCCollectionViewEditingDelegate |
51 | 55 |
52 // Updates the model with changes to the collection view items. Must be called | 56 // Updates the model with changes to the collection view items. Must be called |
53 // by subclasses if they override this method in order to maintain this | 57 // by subclasses if they override this method in order to maintain this |
54 // functionality. | 58 // functionality. |
55 - (void)collectionView:(UICollectionView*)collectionView | 59 - (void)collectionView:(UICollectionView*)collectionView |
56 willDeleteItemsAtIndexPaths:(NSArray*)indexPaths NS_REQUIRES_SUPER; | 60 willDeleteItemsAtIndexPaths:(NSArray*)indexPaths NS_REQUIRES_SUPER; |
57 | 61 |
58 // Updates the model with changes to the collection view item. Must be called | 62 // Updates the model with changes to the collection view item. Must be called |
59 // by subclasses if they override this method in order to maintain this | 63 // by subclasses if they override this method in order to maintain this |
(...skipping 25 matching lines...) Expand all Loading... |
85 // state. Must be called by subclasses if they override this method in order to | 89 // state. Must be called by subclasses if they override this method in order to |
86 // maintain this functionality. | 90 // maintain this functionality. |
87 - (void)scrollViewWillEndDragging:(UIScrollView*)scrollView | 91 - (void)scrollViewWillEndDragging:(UIScrollView*)scrollView |
88 withVelocity:(CGPoint)velocity | 92 withVelocity:(CGPoint)velocity |
89 targetContentOffset:(inout CGPoint*)targetContentOffset | 93 targetContentOffset:(inout CGPoint*)targetContentOffset |
90 NS_REQUIRES_SUPER; | 94 NS_REQUIRES_SUPER; |
91 | 95 |
92 @end | 96 @end |
93 | 97 |
94 #endif // IOS_CHROME_BROWSER_UI_COLLECTION_VIEW_COLLECTION_VIEW_CONTROLLER_H_ | 98 #endif // IOS_CHROME_BROWSER_UI_COLLECTION_VIEW_COLLECTION_VIEW_CONTROLLER_H_ |
OLD | NEW |