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

Unified Diff: ios/chrome/browser/payments/cells/autofill_profile_item.h

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
Index: ios/chrome/browser/payments/cells/autofill_profile_item.h
diff --git a/ios/chrome/browser/payments/cells/autofill_profile_item.h b/ios/chrome/browser/payments/cells/autofill_profile_item.h
new file mode 100644
index 0000000000000000000000000000000000000000..bae30c832bf65ba6d3f345590861c87e76152a03
--- /dev/null
+++ b/ios/chrome/browser/payments/cells/autofill_profile_item.h
@@ -0,0 +1,52 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_CHROME_BROWSER_PAYMENTS_CELLS_AUTOFILL_PROFILE_ITEM_H_
+#define IOS_CHROME_BROWSER_PAYMENTS_CELLS_AUTOFILL_PROFILE_ITEM_H_
+
+#import <UIKit/UIKit.h>
+
+#import "ios/chrome/browser/ui/collection_view/cells/collection_view_item.h"
+#import "ios/third_party/material_components_ios/src/components/CollectionCells/src/MaterialCollectionCells.h"
+
+// AutofillProfileItem is the model class corresponding to AutofillProfileCell.
+@interface AutofillProfileItem : CollectionViewItem
+
+// Profile's name.
+@property(nonatomic, copy) NSString* name;
+
+// Profile's address.
+@property(nonatomic, copy) NSString* address;
+
+// Profile's phone number.
+@property(nonatomic, copy) NSString* phoneNumber;
+
+// Profile's email address.
+@property(nonatomic, copy) NSString* email;
+
+// The notification message.
+@property(nonatomic, copy) NSString* notification;
+
+// The accessory type for the represented cell.
+@property(nonatomic) MDCCollectionViewCellAccessoryType accessoryType;
+
+@end
+
+// AutofillProfileItem implements an MDCCollectionViewCell subclass containing
+// five optional text labels. Each label is laid out to fill the full width of
+// the cell. |nameLabel| and |addressLabel| are wrapped as needed to fit in the
+// cell, the rest of the labels are truncated if necessary.
+@interface AutofillProfileCell : MDCCollectionViewCell
+
+// UILabels corresponding to |name|, |address|, |phoneNumber|, |email|, and
+// |notification|.
+@property(nonatomic, readonly, strong) UILabel* nameLabel;
+@property(nonatomic, readonly, strong) UILabel* addressLabel;
+@property(nonatomic, readonly, strong) UILabel* phoneNumberLabel;
+@property(nonatomic, readonly, strong) UILabel* emailLabel;
+@property(nonatomic, readonly, strong) UILabel* notificationLabel;
+
+@end
+
+#endif // IOS_CHROME_BROWSER_PAYMENTS_CELLS_AUTOFILL_PROFILE_ITEM_H_
« no previous file with comments | « ios/chrome/browser/payments/cells/BUILD.gn ('k') | ios/chrome/browser/payments/cells/autofill_profile_item.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698