| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |