| 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/payments/payment_method_selection_view_controller.h" | 5 #import "ios/chrome/browser/payments/payment_method_selection_view_controller.h" |
| 6 | 6 |
| 7 #include "base/mac/foundation_util.h" | 7 #include "base/mac/foundation_util.h" |
| 8 #include "base/strings/sys_string_conversions.h" | 8 #include "base/strings/sys_string_conversions.h" |
| 9 #include "components/autofill/core/browser/autofill_data_util.h" | 9 #include "components/autofill/core/browser/autofill_data_util.h" |
| 10 #include "components/autofill/core/browser/credit_card.h" | 10 #include "components/autofill/core/browser/credit_card.h" |
| 11 #include "components/autofill/core/browser/personal_data_manager.h" | 11 #include "components/autofill/core/browser/personal_data_manager.h" |
| 12 #include "components/strings/grit/components_strings.h" | 12 #include "components/strings/grit/components_strings.h" |
| 13 #import "ios/chrome/browser/payments/cells/payment_method_item.h" | 13 #import "ios/chrome/browser/payments/cells/payment_method_item.h" |
| 14 #import "ios/chrome/browser/payments/cells/payments_text_item.h" | 14 #import "ios/chrome/browser/payments/cells/payments_text_item.h" |
| 15 #import "ios/chrome/browser/payments/payment_method_selection_view_controller_ac
tions.h" | 15 #import "ios/chrome/browser/payments/payment_method_selection_view_controller_ac
tions.h" |
| 16 #include "ios/chrome/browser/payments/payment_request.h" | 16 #include "ios/chrome/browser/payments/payment_request.h" |
| 17 #include "ios/chrome/browser/payments/payment_request_util.h" | 17 #include "ios/chrome/browser/payments/payment_request_util.h" |
| 18 #import "ios/chrome/browser/ui/collection_view/cells/MDCCollectionViewCell+Chrom
e.h" | 18 #import "ios/chrome/browser/ui/collection_view/cells/MDCCollectionViewCell+Chrom
e.h" |
| 19 #import "ios/chrome/browser/ui/collection_view/cells/collection_view_detail_item
.h" | 19 #import "ios/chrome/browser/ui/collection_view/cells/collection_view_detail_item
.h" |
| 20 #import "ios/chrome/browser/ui/collection_view/cells/collection_view_item.h" | 20 #import "ios/chrome/browser/ui/collection_view/cells/collection_view_item.h" |
| 21 #import "ios/chrome/browser/ui/collection_view/cells/collection_view_text_item.h
" | |
| 22 #import "ios/chrome/browser/ui/collection_view/collection_view_model.h" | 21 #import "ios/chrome/browser/ui/collection_view/collection_view_model.h" |
| 23 #import "ios/chrome/browser/ui/colors/MDCPalette+CrAdditions.h" | 22 #import "ios/chrome/browser/ui/colors/MDCPalette+CrAdditions.h" |
| 24 #import "ios/chrome/browser/ui/icons/chrome_icon.h" | 23 #import "ios/chrome/browser/ui/icons/chrome_icon.h" |
| 25 #include "ios/chrome/browser/ui/uikit_ui_util.h" | 24 #include "ios/chrome/browser/ui/uikit_ui_util.h" |
| 26 #include "ios/chrome/grit/ios_strings.h" | 25 #include "ios/chrome/grit/ios_strings.h" |
| 27 #include "ios/chrome/grit/ios_theme_resources.h" | 26 #include "ios/chrome/grit/ios_theme_resources.h" |
| 28 #include "ios/web/public/payments/payment_request.h" | 27 #include "ios/web/public/payments/payment_request.h" |
| 29 #include "ui/base/l10n/l10n_util.h" | 28 #include "ui/base/l10n/l10n_util.h" |
| 30 #include "ui/base/resource/resource_bundle.h" | 29 #include "ui/base/resource/resource_bundle.h" |
| 31 | 30 |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 return [MDCCollectionViewCell | 204 return [MDCCollectionViewCell |
| 206 cr_preferredHeightForWidth:CGRectGetWidth(collectionView.bounds) | 205 cr_preferredHeightForWidth:CGRectGetWidth(collectionView.bounds) |
| 207 forItem:item]; | 206 forItem:item]; |
| 208 default: | 207 default: |
| 209 NOTREACHED(); | 208 NOTREACHED(); |
| 210 return MDCCellDefaultOneLineHeight; | 209 return MDCCellDefaultOneLineHeight; |
| 211 } | 210 } |
| 212 } | 211 } |
| 213 | 212 |
| 214 @end | 213 @end |
| OLD | NEW |