| 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/chrome/browser/ui/reading_list/reading_list_toolbar.h" | 5 #import "ios/chrome/browser/ui/reading_list/reading_list_toolbar.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #import "ios/chrome/browser/ui/alert_coordinator/action_sheet_coordinator.h" | 8 #import "ios/chrome/browser/ui/alert_coordinator/action_sheet_coordinator.h" |
| 9 #import "ios/chrome/browser/ui/colors/MDCPalette+CrAdditions.h" | 9 #import "ios/chrome/browser/ui/colors/MDCPalette+CrAdditions.h" |
| 10 #include "ios/chrome/browser/ui/rtl_geometry.h" | 10 #include "ios/chrome/browser/ui/rtl_geometry.h" |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 _editButtonContainer, _deleteButtonContainer, _deleteAllButtonContainer, | 183 _editButtonContainer, _deleteButtonContainer, _deleteAllButtonContainer, |
| 184 _markButtonContainer, _cancelButtonContainer | 184 _markButtonContainer, _cancelButtonContainer |
| 185 ]]; | 185 ]]; |
| 186 _stackView.axis = UILayoutConstraintAxisHorizontal; | 186 _stackView.axis = UILayoutConstraintAxisHorizontal; |
| 187 _stackView.alignment = UIStackViewAlignmentFill; | 187 _stackView.alignment = UIStackViewAlignmentFill; |
| 188 _stackView.distribution = UIStackViewDistributionFillEqually; | 188 _stackView.distribution = UIStackViewDistributionFillEqually; |
| 189 _stackView.spacing = kHorizontalSpacing; | 189 _stackView.spacing = kHorizontalSpacing; |
| 190 | 190 |
| 191 [self addSubview:_stackView]; | 191 [self addSubview:_stackView]; |
| 192 _stackView.translatesAutoresizingMaskIntoConstraints = NO; | 192 _stackView.translatesAutoresizingMaskIntoConstraints = NO; |
| 193 AddSameSizeConstraint(_stackView, self); | 193 AddSameConstraints(_stackView, self); |
| 194 _stackView.layoutMargins = | 194 _stackView.layoutMargins = |
| 195 UIEdgeInsetsMake(0, kHorizontalMargin, 0, kHorizontalMargin); | 195 UIEdgeInsetsMake(0, kHorizontalMargin, 0, kHorizontalMargin); |
| 196 _stackView.layoutMarginsRelativeArrangement = YES; | 196 _stackView.layoutMarginsRelativeArrangement = YES; |
| 197 | 197 |
| 198 self.backgroundColor = [UIColor whiteColor]; | 198 self.backgroundColor = [UIColor whiteColor]; |
| 199 [[self layer] setShadowOpacity:kShadowOpacity]; | 199 [[self layer] setShadowOpacity:kShadowOpacity]; |
| 200 [self setEditing:NO]; | 200 [self setEditing:NO]; |
| 201 } | 201 } |
| 202 return self; | 202 return self; |
| 203 } | 203 } |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 16) { | 319 16) { |
| 320 [self.heightDelegate toolbar:self onHeightChanged:ExpandedHeight]; | 320 [self.heightDelegate toolbar:self onHeightChanged:ExpandedHeight]; |
| 321 return; | 321 return; |
| 322 } | 322 } |
| 323 } | 323 } |
| 324 } | 324 } |
| 325 [self.heightDelegate toolbar:self onHeightChanged:NormalHeight]; | 325 [self.heightDelegate toolbar:self onHeightChanged:NormalHeight]; |
| 326 } | 326 } |
| 327 | 327 |
| 328 @end | 328 @end |
| OLD | NEW |