| 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_request_view_controller.h" | 5 #import "ios/chrome/browser/payments/payment_request_view_controller.h" |
| 6 | 6 |
| 7 #include "base/mac/foundation_util.h" | 7 #include "base/mac/foundation_util.h" |
| 8 | 8 |
| 9 #include "base/strings/sys_string_conversions.h" | 9 #include "base/strings/sys_string_conversions.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| 11 #include "components/autofill/core/browser/autofill_data_util.h" | 11 #include "components/autofill/core/browser/autofill_data_util.h" |
| 12 #include "components/autofill/core/browser/autofill_profile.h" | 12 #include "components/autofill/core/browser/autofill_profile.h" |
| 13 #include "components/autofill/core/browser/credit_card.h" | 13 #include "components/autofill/core/browser/credit_card.h" |
| 14 #include "components/autofill/core/browser/field_types.h" | 14 #include "components/autofill/core/browser/field_types.h" |
| 15 #include "components/autofill/core/browser/personal_data_manager.h" | 15 #include "components/autofill/core/browser/personal_data_manager.h" |
| 16 #include "components/payments/currency_formatter.h" | 16 #include "components/payments/core/currency_formatter.h" |
| 17 #include "components/strings/grit/components_strings.h" | 17 #include "components/strings/grit/components_strings.h" |
| 18 #import "ios/chrome/browser/payments/cells/page_info_item.h" | 18 #import "ios/chrome/browser/payments/cells/page_info_item.h" |
| 19 #import "ios/chrome/browser/payments/cells/payment_method_item.h" | 19 #import "ios/chrome/browser/payments/cells/payment_method_item.h" |
| 20 #import "ios/chrome/browser/payments/cells/price_item.h" | 20 #import "ios/chrome/browser/payments/cells/price_item.h" |
| 21 #import "ios/chrome/browser/payments/cells/shipping_address_item.h" | 21 #import "ios/chrome/browser/payments/cells/shipping_address_item.h" |
| 22 #import "ios/chrome/browser/payments/payment_request_util.h" | 22 #import "ios/chrome/browser/payments/payment_request_util.h" |
| 23 #import "ios/chrome/browser/payments/payment_request_view_controller_actions.h" | 23 #import "ios/chrome/browser/payments/payment_request_view_controller_actions.h" |
| 24 #import "ios/chrome/browser/ui/autofill/cells/status_item.h" | 24 #import "ios/chrome/browser/ui/autofill/cells/status_item.h" |
| 25 #import "ios/chrome/browser/ui/collection_view/cells/MDCCollectionViewCell+Chrom
e.h" | 25 #import "ios/chrome/browser/ui/collection_view/cells/MDCCollectionViewCell+Chrom
e.h" |
| 26 #import "ios/chrome/browser/ui/collection_view/cells/collection_view_detail_item
.h" | 26 #import "ios/chrome/browser/ui/collection_view/cells/collection_view_detail_item
.h" |
| (...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 NSInteger type = [self.collectionViewModel itemTypeForIndexPath:indexPath]; | 496 NSInteger type = [self.collectionViewModel itemTypeForIndexPath:indexPath]; |
| 497 if (type == ItemTypeSummaryTotal && | 497 if (type == ItemTypeSummaryTotal && |
| 498 _paymentRequest->payment_details().display_items.empty()) { | 498 _paymentRequest->payment_details().display_items.empty()) { |
| 499 return YES; | 499 return YES; |
| 500 } else { | 500 } else { |
| 501 return NO; | 501 return NO; |
| 502 } | 502 } |
| 503 } | 503 } |
| 504 | 504 |
| 505 @end | 505 @end |
| OLD | NEW |