| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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/content_suggestions/content_suggestions_article_i
tem.h" | 5 #import "ios/chrome/browser/ui/content_suggestions/content_suggestions_article_i
tem.h" |
| 6 | 6 |
| 7 #include "base/time/time.h" | 7 #include "base/time/time.h" |
| 8 #import "ios/chrome/browser/ui/colors/MDCPalette+CrAdditions.h" | 8 #import "ios/chrome/browser/ui/colors/MDCPalette+CrAdditions.h" |
| 9 #import "ios/chrome/browser/ui/uikit_ui_util.h" | 9 #import "ios/chrome/browser/ui/uikit_ui_util.h" |
| 10 #import "ios/chrome/browser/ui/util/i18n_string.h" | 10 #import "ios/chrome/browser/ui/util/i18n_string.h" |
| 11 #import "ios/third_party/material_components_ios/src/components/Typography/src/M
aterialTypography.h" | 11 #import "ios/third_party/material_components_ios/src/components/Typography/src/M
aterialTypography.h" |
| 12 #include "url/gurl.h" |
| 12 | 13 |
| 13 #if !defined(__has_feature) || !__has_feature(objc_arc) | 14 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 14 #error "This file requires ARC support." | 15 #error "This file requires ARC support." |
| 15 #endif | 16 #endif |
| 16 | 17 |
| 17 namespace { | 18 namespace { |
| 18 const CGFloat kImageSize = 72; | 19 const CGFloat kImageSize = 72; |
| 19 // When updating this, make sure to update |layoutSubviews|. | 20 // When updating this, make sure to update |layoutSubviews|. |
| 20 const CGFloat kStandardSpacing = 8; | 21 const CGFloat kStandardSpacing = 8; |
| 21 } | 22 } |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 @{ | 207 @{ |
| 207 @"image" : _imageView, | 208 @"image" : _imageView, |
| 208 @"title" : _titleLabel, | 209 @"title" : _titleLabel, |
| 209 @"text" : _subtitleLabel, | 210 @"text" : _subtitleLabel, |
| 210 @"publish" : _publisherLabel, | 211 @"publish" : _publisherLabel, |
| 211 }, | 212 }, |
| 212 @{ @"space" : @(kStandardSpacing) }); | 213 @{ @"space" : @(kStandardSpacing) }); |
| 213 } | 214 } |
| 214 | 215 |
| 215 @end | 216 @end |
| OLD | NEW |