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

Side by Side Diff: ios/clean/chrome/browser/ui/tab/tab_container_view_controller.mm

Issue 2940853003: [ios clean] Use dispatcher for showing TabStrip (Closed)
Patch Set: Refactors ToolbarVC init Created 3 years, 6 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 #import "ios/clean/chrome/browser/ui/tab/tab_container_view_controller.h" 5 #import "ios/clean/chrome/browser/ui/tab/tab_container_view_controller.h"
6 6
7 #import "ios/clean/chrome/browser/ui/ui_types.h" 7 #import "ios/clean/chrome/browser/ui/ui_types.h"
8 8
9 #if !defined(__has_feature) || !__has_feature(objc_arc) 9 #if !defined(__has_feature) || !__has_feature(objc_arc)
10 #error "This file requires ARC support." 10 #error "This file requires ARC support."
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 247
248 - (id)forwardingTargetForSelector:(SEL)aSelector { 248 - (id)forwardingTargetForSelector:(SEL)aSelector {
249 if (aSelector == self.actionToForward) { 249 if (aSelector == self.actionToForward) {
250 return self.forwardingTarget; 250 return self.forwardingTarget;
251 } 251 }
252 return nil; 252 return nil;
253 } 253 }
254 254
255 #pragma mark - Tab Strip actions. 255 #pragma mark - Tab Strip actions.
256 256
257 - (void)showTabStrip:(id)sender {
258 self.tabStripVisible = YES;
259 }
260
261 - (void)hideTabStrip:(id)sender { 257 - (void)hideTabStrip:(id)sender {
262 self.tabStripVisible = NO; 258 self.tabStripVisible = NO;
263 } 259 }
264 260
265 #pragma mark - Abstract methods to be overriden by subclass 261 #pragma mark - Abstract methods to be overriden by subclass
266 262
267 - (Constraints*)subviewConstraints { 263 - (Constraints*)subviewConstraints {
268 [NSException 264 [NSException
269 raise:NSInternalInconsistencyException 265 raise:NSInternalInconsistencyException
270 format:@"You must override %@ in a subclass", NSStringFromSelector(_cmd)]; 266 format:@"You must override %@ in a subclass", NSStringFromSelector(_cmd)];
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 constraintEqualToAnchor:self.view.leadingAnchor], 334 constraintEqualToAnchor:self.view.leadingAnchor],
339 [self.toolbarView.trailingAnchor 335 [self.toolbarView.trailingAnchor
340 constraintEqualToAnchor:self.view.trailingAnchor], 336 constraintEqualToAnchor:self.view.trailingAnchor],
341 self.toolbarHeightConstraint, 337 self.toolbarHeightConstraint,
342 [self.toolbarView.bottomAnchor 338 [self.toolbarView.bottomAnchor
343 constraintEqualToAnchor:self.bottomLayoutGuide.topAnchor], 339 constraintEqualToAnchor:self.bottomLayoutGuide.topAnchor],
344 ]; 340 ];
345 } 341 }
346 342
347 @end 343 @end
OLDNEW
« no previous file with comments | « ios/clean/chrome/browser/ui/commands/tab_strip_commands.h ('k') | ios/clean/chrome/browser/ui/tab/tab_coordinator.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698