OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #import "ios/chrome/browser/ui/bookmarks/bookmark_home_tablet_ntp_controller.h" | 5 #import "ios/chrome/browser/ui/bookmarks/bookmark_home_tablet_ntp_controller.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/ios/block_types.h" | 9 #include "base/ios/block_types.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 // The set is for fast lookup. | 92 // The set is for fast lookup. |
93 // The vector maintains the order that edit nodes were added. | 93 // The vector maintains the order that edit nodes were added. |
94 // Use the relevant instance methods to modify these two ivars in tandem. | 94 // Use the relevant instance methods to modify these two ivars in tandem. |
95 // DO NOT modify these two ivars directly. | 95 // DO NOT modify these two ivars directly. |
96 std::set<const BookmarkNode*> _editNodes; | 96 std::set<const BookmarkNode*> _editNodes; |
97 std::vector<const BookmarkNode*> _editNodesOrdered; | 97 std::vector<const BookmarkNode*> _editNodesOrdered; |
98 } | 98 } |
99 | 99 |
100 @property(nonatomic, strong) BookmarkPanelView* panelView; | 100 @property(nonatomic, strong) BookmarkPanelView* panelView; |
101 | 101 |
102 #pragma mark - Properties and methods akin to BookmarkHomeViewController | 102 #pragma mark - Properties and methods akin to BookmarkHomeHandsetViewController |
103 | 103 |
104 // Whether the view controller is in editing mode. | 104 // Whether the view controller is in editing mode. |
105 @property(nonatomic, assign) BOOL editing; | 105 @property(nonatomic, assign) BOOL editing; |
106 // The set of edited index paths. | 106 // The set of edited index paths. |
107 @property(nonatomic, strong) NSMutableArray* editIndexPaths; | 107 @property(nonatomic, strong) NSMutableArray* editIndexPaths; |
108 // The bookmark model used. | 108 // The bookmark model used. |
109 @property(nonatomic, assign, readonly) bookmarks::BookmarkModel* bookmarks; | 109 @property(nonatomic, assign, readonly) bookmarks::BookmarkModel* bookmarks; |
110 // The user's browser state model used. | 110 // The user's browser state model used. |
111 @property(nonatomic, assign, readonly) | 111 @property(nonatomic, assign, readonly) |
112 ios::ChromeBrowserState* browserState; // from superclass. | 112 ios::ChromeBrowserState* browserState; // from superclass. |
(...skipping 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1277 } | 1277 } |
1278 | 1278 |
1279 - (NSIndexPath*)indexPathForCell:(UICollectionViewCell*)cell { | 1279 - (NSIndexPath*)indexPathForCell:(UICollectionViewCell*)cell { |
1280 DCHECK([self primaryView].collectionView); | 1280 DCHECK([self primaryView].collectionView); |
1281 NSIndexPath* indexPath = | 1281 NSIndexPath* indexPath = |
1282 [[self primaryView].collectionView indexPathForCell:cell]; | 1282 [[self primaryView].collectionView indexPathForCell:cell]; |
1283 return indexPath; | 1283 return indexPath; |
1284 } | 1284 } |
1285 | 1285 |
1286 @end | 1286 @end |
OLD | NEW |