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

Side by Side Diff: ios/chrome/browser/payments/cells/autofill_profile_item.h

Issue 2825483002: [Payment Request] Protocol for payments items with accessoryType property (Closed)
Patch Set: Initial Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 #ifndef IOS_CHROME_BROWSER_PAYMENTS_CELLS_AUTOFILL_PROFILE_ITEM_H_ 5 #ifndef IOS_CHROME_BROWSER_PAYMENTS_CELLS_AUTOFILL_PROFILE_ITEM_H_
6 #define IOS_CHROME_BROWSER_PAYMENTS_CELLS_AUTOFILL_PROFILE_ITEM_H_ 6 #define IOS_CHROME_BROWSER_PAYMENTS_CELLS_AUTOFILL_PROFILE_ITEM_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 #import "ios/chrome/browser/payments/cells/payments_has_accessory_type.h"
10 #import "ios/chrome/browser/ui/collection_view/cells/collection_view_item.h" 11 #import "ios/chrome/browser/ui/collection_view/cells/collection_view_item.h"
11 #import "ios/third_party/material_components_ios/src/components/CollectionCells/ src/MaterialCollectionCells.h" 12 #import "ios/third_party/material_components_ios/src/components/CollectionCells/ src/MaterialCollectionCells.h"
12 13
13 // AutofillProfileItem is the model class corresponding to AutofillProfileCell. 14 // AutofillProfileItem is the model class corresponding to AutofillProfileCell.
14 @interface AutofillProfileItem : CollectionViewItem 15 @interface AutofillProfileItem : CollectionViewItem<PaymentsHasAccessoryType>
15 16
16 // Profile's name. 17 // Profile's name.
17 @property(nonatomic, copy) NSString* name; 18 @property(nonatomic, copy) NSString* name;
18 19
19 // Profile's address. 20 // Profile's address.
20 @property(nonatomic, copy) NSString* address; 21 @property(nonatomic, copy) NSString* address;
21 22
22 // Profile's phone number. 23 // Profile's phone number.
23 @property(nonatomic, copy) NSString* phoneNumber; 24 @property(nonatomic, copy) NSString* phoneNumber;
24 25
25 // Profile's email address. 26 // Profile's email address.
26 @property(nonatomic, copy) NSString* email; 27 @property(nonatomic, copy) NSString* email;
27 28
28 // The notification message. 29 // The notification message.
29 @property(nonatomic, copy) NSString* notification; 30 @property(nonatomic, copy) NSString* notification;
30 31
31 // The accessory type for the represented cell.
32 @property(nonatomic) MDCCollectionViewCellAccessoryType accessoryType;
33
34 @end 32 @end
35 33
36 // AutofillProfileItem implements an MDCCollectionViewCell subclass containing 34 // AutofillProfileItem implements an MDCCollectionViewCell subclass containing
37 // five optional text labels. Each label is laid out to fill the full width of 35 // five optional text labels. Each label is laid out to fill the full width of
38 // the cell. |nameLabel| and |addressLabel| are wrapped as needed to fit in the 36 // the cell. |nameLabel| and |addressLabel| are wrapped as needed to fit in the
39 // cell, the rest of the labels are truncated if necessary. 37 // cell, the rest of the labels are truncated if necessary.
40 @interface AutofillProfileCell : MDCCollectionViewCell 38 @interface AutofillProfileCell : MDCCollectionViewCell
41 39
42 // UILabels corresponding to |name|, |address|, |phoneNumber|, |email|, and 40 // UILabels corresponding to |name|, |address|, |phoneNumber|, |email|, and
43 // |notification|. 41 // |notification|.
44 @property(nonatomic, readonly, strong) UILabel* nameLabel; 42 @property(nonatomic, readonly, strong) UILabel* nameLabel;
45 @property(nonatomic, readonly, strong) UILabel* addressLabel; 43 @property(nonatomic, readonly, strong) UILabel* addressLabel;
46 @property(nonatomic, readonly, strong) UILabel* phoneNumberLabel; 44 @property(nonatomic, readonly, strong) UILabel* phoneNumberLabel;
47 @property(nonatomic, readonly, strong) UILabel* emailLabel; 45 @property(nonatomic, readonly, strong) UILabel* emailLabel;
48 @property(nonatomic, readonly, strong) UILabel* notificationLabel; 46 @property(nonatomic, readonly, strong) UILabel* notificationLabel;
49 47
50 @end 48 @end
51 49
52 #endif // IOS_CHROME_BROWSER_PAYMENTS_CELLS_AUTOFILL_PROFILE_ITEM_H_ 50 #endif // IOS_CHROME_BROWSER_PAYMENTS_CELLS_AUTOFILL_PROFILE_ITEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698