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 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1152 rootAncestor:rootAncestor]; | 1152 rootAncestor:rootAncestor]; |
1153 [self updatePrimaryMenuItem:menuItem animated:YES]; | 1153 [self updatePrimaryMenuItem:menuItem animated:YES]; |
1154 } | 1154 } |
1155 | 1155 |
1156 #pragma mark - NewTabPagePanelProtocol | 1156 #pragma mark - NewTabPagePanelProtocol |
1157 | 1157 |
1158 - (void)reload { | 1158 - (void)reload { |
1159 } | 1159 } |
1160 | 1160 |
1161 - (void)wasShown { | 1161 - (void)wasShown { |
| 1162 [_folderView wasShown]; |
1162 } | 1163 } |
1163 | 1164 |
1164 - (void)wasHidden { | 1165 - (void)wasHidden { |
1165 [self cachePosition]; | 1166 [self cachePosition]; |
| 1167 [_folderView wasHidden]; |
1166 } | 1168 } |
1167 | 1169 |
1168 - (void)dismissModals { | 1170 - (void)dismissModals { |
1169 [self.actionSheetCoordinator stop]; | 1171 [self.actionSheetCoordinator stop]; |
1170 self.actionSheetCoordinator = nil; | 1172 self.actionSheetCoordinator = nil; |
1171 [self.editViewController dismiss]; | 1173 [self.editViewController dismiss]; |
1172 } | 1174 } |
1173 | 1175 |
1174 - (void)dismissKeyboard { | 1176 - (void)dismissKeyboard { |
1175 // Uses self.view directly instead of going throught self.view to | 1177 // Uses self.view directly instead of going throught self.view to |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1276 } | 1278 } |
1277 | 1279 |
1278 - (NSIndexPath*)indexPathForCell:(UICollectionViewCell*)cell { | 1280 - (NSIndexPath*)indexPathForCell:(UICollectionViewCell*)cell { |
1279 DCHECK([self primaryView].collectionView); | 1281 DCHECK([self primaryView].collectionView); |
1280 NSIndexPath* indexPath = | 1282 NSIndexPath* indexPath = |
1281 [[self primaryView].collectionView indexPathForCell:cell]; | 1283 [[self primaryView].collectionView indexPathForCell:cell]; |
1282 return indexPath; | 1284 return indexPath; |
1283 } | 1285 } |
1284 | 1286 |
1285 @end | 1287 @end |
OLD | NEW |