Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(700)

Side by Side Diff: ios/chrome/browser/ui/collection_view/collection_view_controller.h

Issue 2761263003: Allow CollectionViewModel/Controller queries without SectionIdentifier (Closed)
Patch Set: Add reconfigure to the VC Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 |items| by calling
51 // |configureCell:| on each cell.
52 - (void)reconfigureCellsForItems:(NSArray*)items;
53
50 // Reconfigures the cells corresponding to the given |indexPaths| by calling 54 // Reconfigures the cells corresponding to the given |indexPaths| by calling
51 // |configureCell:| on each cell. 55 // |configureCell:| on each cell.
52 - (void)reconfigureCellsAtIndexPaths:(NSArray*)indexPaths; 56 - (void)reconfigureCellsAtIndexPaths:(NSArray*)indexPaths;
53 57
54 #pragma mark MDCCollectionViewEditingDelegate 58 #pragma mark MDCCollectionViewEditingDelegate
55 59
56 // Updates the model with changes to the collection view items. Must be called 60 // 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 61 // by subclasses if they override this method in order to maintain this
58 // functionality. 62 // functionality.
59 - (void)collectionView:(UICollectionView*)collectionView 63 - (void)collectionView:(UICollectionView*)collectionView
(...skipping 29 matching lines...) Expand all
89 // state. Must be called by subclasses if they override this method in order to 93 // state. Must be called by subclasses if they override this method in order to
90 // maintain this functionality. 94 // maintain this functionality.
91 - (void)scrollViewWillEndDragging:(UIScrollView*)scrollView 95 - (void)scrollViewWillEndDragging:(UIScrollView*)scrollView
92 withVelocity:(CGPoint)velocity 96 withVelocity:(CGPoint)velocity
93 targetContentOffset:(inout CGPoint*)targetContentOffset 97 targetContentOffset:(inout CGPoint*)targetContentOffset
94 NS_REQUIRES_SUPER; 98 NS_REQUIRES_SUPER;
95 99
96 @end 100 @end
97 101
98 #endif // IOS_CHROME_BROWSER_UI_COLLECTION_VIEW_COLLECTION_VIEW_CONTROLLER_H_ 102 #endif // IOS_CHROME_BROWSER_UI_COLLECTION_VIEW_COLLECTION_VIEW_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698