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

Side by Side Diff: ios/clean/chrome/browser/ui/tab_grid/tab_grid_view_controller.mm

Issue 2698183002: [tab_container] Consolidate tabStrip into tab_container. (Closed)
Patch Set: Address comments. Created 3 years, 10 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
« no previous file with comments | « ios/clean/chrome/browser/ui/tab_grid/tab_grid_coordinator.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // ====== New Architecture ===== 5 // ====== New Architecture =====
6 // = This code is only used in the new iOS Chrome architecture. = 6 // = This code is only used in the new iOS Chrome architecture. =
7 // ============================================================================ 7 // ============================================================================
8 8
9 #import "ios/clean/chrome/browser/ui/tab_grid/tab_grid_view_controller.h" 9 #import "ios/clean/chrome/browser/ui/tab_grid/tab_grid_view_controller.h"
10 10
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 - (void)viewWillAppear:(BOOL)animated { 90 - (void)viewWillAppear:(BOOL)animated {
91 [self.grid reloadData]; 91 [self.grid reloadData];
92 self.floatingNewTabButton = [MDCFloatingButton cr_tabGridNewTabButton]; 92 self.floatingNewTabButton = [MDCFloatingButton cr_tabGridNewTabButton];
93 [self.floatingNewTabButton 93 [self.floatingNewTabButton
94 setFrame:[MDCFloatingButton 94 setFrame:[MDCFloatingButton
95 cr_frameForTabGridNewTabButtonInRect:self.view.bounds]]; 95 cr_frameForTabGridNewTabButtonInRect:self.view.bounds]];
96 [self.view addSubview:self.floatingNewTabButton]; 96 [self.view addSubview:self.floatingNewTabButton];
97 } 97 }
98 98
99 - (UIStatusBarStyle)preferredStatusBarStyle {
100 return UIStatusBarStyleLightContent;
101 }
102
99 #pragma mark - UICollectionViewDataSource methods 103 #pragma mark - UICollectionViewDataSource methods
100 104
101 - (NSInteger)numberOfSectionsInCollectionView: 105 - (NSInteger)numberOfSectionsInCollectionView:
102 (UICollectionView*)collectionView { 106 (UICollectionView*)collectionView {
103 return 1; 107 return 1;
104 } 108 }
105 109
106 - (NSInteger)collectionView:(UICollectionView*)collectionView 110 - (NSInteger)collectionView:(UICollectionView*)collectionView
107 numberOfItemsInSection:(NSInteger)section { 111 numberOfItemsInSection:(NSInteger)section {
108 return [self.dataSource numberOfTabsInTabGrid]; 112 return [self.dataSource numberOfTabsInTabGrid];
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 158
155 - (void)cellPressed:(UICollectionViewCell*)cell { 159 - (void)cellPressed:(UICollectionViewCell*)cell {
156 [self.tabCommandHandler showTabAtIndexPath:[self.grid indexPathForCell:cell]]; 160 [self.tabCommandHandler showTabAtIndexPath:[self.grid indexPathForCell:cell]];
157 } 161 }
158 162
159 - (void)deleteButtonPressedForCell:(UICollectionViewCell*)cell { 163 - (void)deleteButtonPressedForCell:(UICollectionViewCell*)cell {
160 // PLACEHOLDER: handle close tab button. 164 // PLACEHOLDER: handle close tab button.
161 } 165 }
162 166
163 @end 167 @end
OLDNEW
« no previous file with comments | « ios/clean/chrome/browser/ui/tab_grid/tab_grid_coordinator.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698