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/payments/payment_request_view_controller.h" | 5 #import "ios/chrome/browser/ui/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" |
(...skipping 19 matching lines...) Expand all Loading... |
30 #import "ios/chrome/browser/ui/payments/cells/payment_method_item.h" | 30 #import "ios/chrome/browser/ui/payments/cells/payment_method_item.h" |
31 #import "ios/chrome/browser/ui/payments/cells/payments_text_item.h" | 31 #import "ios/chrome/browser/ui/payments/cells/payments_text_item.h" |
32 #import "ios/chrome/browser/ui/payments/cells/price_item.h" | 32 #import "ios/chrome/browser/ui/payments/cells/price_item.h" |
33 #import "ios/chrome/browser/ui/payments/payment_request_view_controller_actions.
h" | 33 #import "ios/chrome/browser/ui/payments/payment_request_view_controller_actions.
h" |
34 #include "ios/chrome/browser/ui/rtl_geometry.h" | 34 #include "ios/chrome/browser/ui/rtl_geometry.h" |
35 #include "ios/chrome/browser/ui/uikit_ui_util.h" | 35 #include "ios/chrome/browser/ui/uikit_ui_util.h" |
36 #include "ios/chrome/grit/ios_strings.h" | 36 #include "ios/chrome/grit/ios_strings.h" |
37 #import "ios/third_party/material_components_ios/src/components/Buttons/src/Mate
rialButtons.h" | 37 #import "ios/third_party/material_components_ios/src/components/Buttons/src/Mate
rialButtons.h" |
38 #import "ios/third_party/material_components_ios/src/components/CollectionCells/
src/MaterialCollectionCells.h" | 38 #import "ios/third_party/material_components_ios/src/components/CollectionCells/
src/MaterialCollectionCells.h" |
39 #import "ios/third_party/material_components_ios/src/components/Typography/src/M
aterialTypography.h" | 39 #import "ios/third_party/material_components_ios/src/components/Typography/src/M
aterialTypography.h" |
40 #import "ios/third_party/material_roboto_font_loader_ios/src/src/MaterialRobotoF
ontLoader.h" | |
41 #include "ios/web/public/payments/payment_request.h" | 40 #include "ios/web/public/payments/payment_request.h" |
42 #include "ui/base/l10n/l10n_util.h" | 41 #include "ui/base/l10n/l10n_util.h" |
43 #include "ui/base/resource/resource_bundle.h" | 42 #include "ui/base/resource/resource_bundle.h" |
44 | 43 |
45 #if !defined(__has_feature) || !__has_feature(objc_arc) | 44 #if !defined(__has_feature) || !__has_feature(objc_arc) |
46 #error "This file requires ARC support." | 45 #error "This file requires ARC support." |
47 #endif | 46 #endif |
48 | 47 |
49 namespace { | 48 namespace { |
50 using ::payment_request_util::GetNameLabelFromAutofillProfile; | 49 using ::payment_request_util::GetNameLabelFromAutofillProfile; |
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
618 | 617 |
619 - (BOOL)collectionView:(UICollectionView*)collectionView | 618 - (BOOL)collectionView:(UICollectionView*)collectionView |
620 shouldHideItemBackgroundAtIndexPath:(NSIndexPath*)indexPath { | 619 shouldHideItemBackgroundAtIndexPath:(NSIndexPath*)indexPath { |
621 // No background on the footer text item. | 620 // No background on the footer text item. |
622 NSInteger sectionIdentifier = | 621 NSInteger sectionIdentifier = |
623 [self.collectionViewModel sectionIdentifierForSection:indexPath.section]; | 622 [self.collectionViewModel sectionIdentifierForSection:indexPath.section]; |
624 return sectionIdentifier == SectionIdentifierFooter ? YES : NO; | 623 return sectionIdentifier == SectionIdentifierFooter ? YES : NO; |
625 } | 624 } |
626 | 625 |
627 @end | 626 @end |
OLD | NEW |