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

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

Issue 2880803002: [ios clean] Toolbar UI improvements. (Closed)
Patch Set: Creates ToolbarConstants file Created 3 years, 7 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 | « no previous file | ios/clean/chrome/browser/ui/toolbar/BUILD.gn » ('j') | 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 #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/tab_strip/tab_strip_events.h" 7 #import "ios/clean/chrome/browser/ui/tab_strip/tab_strip_events.h"
8 #import "ios/clean/chrome/browser/ui/ui_types.h" 8 #import "ios/clean/chrome/browser/ui/ui_types.h"
9 9
10 #if !defined(__has_feature) || !__has_feature(objc_arc) 10 #if !defined(__has_feature) || !__has_feature(objc_arc)
11 #error "This file requires ARC support." 11 #error "This file requires ARC support."
12 #endif 12 #endif
13 13
14 namespace { 14 namespace {
15 CGFloat kToolbarHeight = 44.0f; 15 CGFloat kToolbarHeight = 56.0f;
16 CGFloat kTabStripHeight = 120.0f; 16 CGFloat kTabStripHeight = 120.0f;
17 } 17 }
18 18
19 @interface TabContainerViewController () 19 @interface TabContainerViewController ()
20 20
21 // Container views for child view controllers. The child view controller's 21 // Container views for child view controllers. The child view controller's
22 // view is added as a subview that fills its container view via autoresizing. 22 // view is added as a subview that fills its container view via autoresizing.
23 @property(nonatomic, strong) UIView* findBarView; 23 @property(nonatomic, strong) UIView* findBarView;
24 @property(nonatomic, strong) UIView* tabStripView; 24 @property(nonatomic, strong) UIView* tabStripView;
25 @property(nonatomic, strong) UIView* toolbarView; 25 @property(nonatomic, strong) UIView* toolbarView;
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 constraintEqualToAnchor:self.view.leadingAnchor], 338 constraintEqualToAnchor:self.view.leadingAnchor],
339 [self.toolbarView.trailingAnchor 339 [self.toolbarView.trailingAnchor
340 constraintEqualToAnchor:self.view.trailingAnchor], 340 constraintEqualToAnchor:self.view.trailingAnchor],
341 self.toolbarHeightConstraint, 341 self.toolbarHeightConstraint,
342 [self.toolbarView.bottomAnchor 342 [self.toolbarView.bottomAnchor
343 constraintEqualToAnchor:self.bottomLayoutGuide.topAnchor], 343 constraintEqualToAnchor:self.bottomLayoutGuide.topAnchor],
344 ]; 344 ];
345 } 345 }
346 346
347 @end 347 @end
OLDNEW
« no previous file with comments | « no previous file | ios/clean/chrome/browser/ui/toolbar/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698