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 26 matching lines...) Expand all Loading... |
37 bundle:(NSBundle*)nibBundleOrNil NS_UNAVAILABLE; | 37 bundle:(NSBundle*)nibBundleOrNil NS_UNAVAILABLE; |
38 - (instancetype)initWithCoder:(NSCoder*)aDecoder NS_UNAVAILABLE; | 38 - (instancetype)initWithCoder:(NSCoder*)aDecoder NS_UNAVAILABLE; |
39 - (instancetype)init NS_UNAVAILABLE; | 39 - (instancetype)init NS_UNAVAILABLE; |
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; | |
49 | 48 |
50 // Reconfigures the cells corresponding to the given |indexPaths| by calling | 49 // Reconfigures the cells corresponding to the given |indexPaths| by calling |
51 // |configureCell:| on each cell. | 50 // |configureCell:| on each cell. |
52 - (void)reconfigureCellsAtIndexPaths:(NSArray*)indexPaths; | 51 - (void)reconfigureCellsAtIndexPaths:(NSArray*)indexPaths; |
53 | 52 |
54 #pragma mark MDCCollectionViewEditingDelegate | 53 #pragma mark MDCCollectionViewEditingDelegate |
55 | 54 |
56 // Updates the model with changes to the collection view items. Must be called | 55 // Updates the model with changes to the collection view items. Must be called |
57 // by subclasses if they override this method in order to maintain this | 56 // by subclasses if they override this method in order to maintain this |
58 // functionality. | 57 // functionality. |
(...skipping 30 matching lines...) Expand all Loading... |
89 // state. Must be called by subclasses if they override this method in order to | 88 // state. Must be called by subclasses if they override this method in order to |
90 // maintain this functionality. | 89 // maintain this functionality. |
91 - (void)scrollViewWillEndDragging:(UIScrollView*)scrollView | 90 - (void)scrollViewWillEndDragging:(UIScrollView*)scrollView |
92 withVelocity:(CGPoint)velocity | 91 withVelocity:(CGPoint)velocity |
93 targetContentOffset:(inout CGPoint*)targetContentOffset | 92 targetContentOffset:(inout CGPoint*)targetContentOffset |
94 NS_REQUIRES_SUPER; | 93 NS_REQUIRES_SUPER; |
95 | 94 |
96 @end | 95 @end |
97 | 96 |
98 #endif // IOS_CHROME_BROWSER_UI_COLLECTION_VIEW_COLLECTION_VIEW_CONTROLLER_H_ | 97 #endif // IOS_CHROME_BROWSER_UI_COLLECTION_VIEW_COLLECTION_VIEW_CONTROLLER_H_ |
OLD | NEW |