Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(372)

Unified Diff: ios/chrome/browser/ui/settings/material_cell_catalog_view_controller.mm

Issue 2712053003: [Payment Request] Displays Contact Info in the payment summary view (Closed)
Patch Set: rebase Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/chrome/browser/payments/shipping_address_selection_view_controller_unittest.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/settings/material_cell_catalog_view_controller.mm
diff --git a/ios/chrome/browser/ui/settings/material_cell_catalog_view_controller.mm b/ios/chrome/browser/ui/settings/material_cell_catalog_view_controller.mm
index e99d0ea4addcb37a98e18113b42cc51cc5f2ebd2..dba5948ae2910878509fa15ed17e1af4205fe12b 100644
--- a/ios/chrome/browser/ui/settings/material_cell_catalog_view_controller.mm
+++ b/ios/chrome/browser/ui/settings/material_cell_catalog_view_controller.mm
@@ -8,17 +8,18 @@
#import "base/mac/foundation_util.h"
#include "components/grit/components_scaled_resources.h"
+#import "ios/chrome/browser/payments/cells/autofill_profile_item.h"
#import "ios/chrome/browser/payments/cells/payments_text_item.h"
#import "ios/chrome/browser/payments/cells/price_item.h"
#import "ios/chrome/browser/ui/autofill/cells/cvc_item.h"
#import "ios/chrome/browser/ui/autofill/cells/status_item.h"
#import "ios/chrome/browser/ui/autofill/cells/storage_switch_item.h"
+#import "ios/chrome/browser/ui/collection_view/cells/MDCCollectionViewCell+Chrome.h"
#import "ios/chrome/browser/ui/collection_view/cells/collection_view_account_item.h"
#import "ios/chrome/browser/ui/collection_view/cells/collection_view_detail_item.h"
#import "ios/chrome/browser/ui/collection_view/cells/collection_view_footer_item.h"
#import "ios/chrome/browser/ui/collection_view/cells/collection_view_switch_item.h"
#import "ios/chrome/browser/ui/collection_view/cells/collection_view_text_item.h"
-#import "ios/chrome/browser/ui/collection_view/cells/MDCCollectionViewCell+Chrome.h"
#import "ios/chrome/browser/ui/collection_view/collection_view_model.h"
#import "ios/chrome/browser/ui/icons/chrome_icon.h"
#import "ios/chrome/browser/ui/settings/cells/account_control_item.h"
@@ -251,6 +252,29 @@ const CGFloat kHorizontalImageFixedSize = 40;
priceItem4.price = @"USD $1,000,000,000.00";
[model addItem:priceItem4 toSectionWithIdentifier:SectionIdentifierPayments];
+ AutofillProfileItem* profileItem1 = [[[AutofillProfileItem alloc]
+ initWithType:ItemTypePaymentsDynamicHeight] autorelease];
+ profileItem1.name = @"Profile Name gets wrapped if it's too long";
+ profileItem1.address = @"Profile Address also gets wrapped if it's too long";
+ profileItem1.phoneNumber = @"123-456-7890";
+ profileItem1.email = @"foo@bar.com";
+ profileItem1.notification = @"Some fields are missing";
+ [model addItem:profileItem1
+ toSectionWithIdentifier:SectionIdentifierPayments];
+ AutofillProfileItem* profileItem2 = [[[AutofillProfileItem alloc]
+ initWithType:ItemTypePaymentsDynamicHeight] autorelease];
+ profileItem1.name = @"All fields are optional";
+ profileItem2.phoneNumber = @"123-456-7890";
+ profileItem2.notification = @"Some fields are missing";
+ [model addItem:profileItem2
+ toSectionWithIdentifier:SectionIdentifierPayments];
+ AutofillProfileItem* profileItem3 = [[[AutofillProfileItem alloc]
+ initWithType:ItemTypePaymentsDynamicHeight] autorelease];
+ profileItem3.address = @"All fields are optional";
+ profileItem3.email = @"foo@bar.com";
+ [model addItem:profileItem3
+ toSectionWithIdentifier:SectionIdentifierPayments];
+
// Account cells.
[model addSectionWithIdentifier:SectionIdentifierAccountCell];
[model addItem:[self accountItemDetailWithError]
« no previous file with comments | « ios/chrome/browser/payments/shipping_address_selection_view_controller_unittest.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698