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

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

Issue 2814793003: Adds accessoryType property to CollectionViewItem (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | ios/chrome/browser/payments/cells/autofill_profile_item.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/ui/collection_view/cells/collection_view_item.h" 10 #import "ios/chrome/browser/ui/collection_view/cells/collection_view_item.h"
(...skipping 10 matching lines...) Expand all
21 21
22 // Profile's phone number. 22 // Profile's phone number.
23 @property(nonatomic, copy) NSString* phoneNumber; 23 @property(nonatomic, copy) NSString* phoneNumber;
24 24
25 // Profile's email address. 25 // Profile's email address.
26 @property(nonatomic, copy) NSString* email; 26 @property(nonatomic, copy) NSString* email;
27 27
28 // The notification message. 28 // The notification message.
29 @property(nonatomic, copy) NSString* notification; 29 @property(nonatomic, copy) NSString* notification;
30 30
31 // The accessory type for the represented cell.
32 @property(nonatomic) MDCCollectionViewCellAccessoryType accessoryType;
33
34 @end 31 @end
35 32
36 // AutofillProfileItem implements an MDCCollectionViewCell subclass containing 33 // AutofillProfileItem implements an MDCCollectionViewCell subclass containing
37 // five optional text labels. Each label is laid out to fill the full width of 34 // 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 35 // the cell. |nameLabel| and |addressLabel| are wrapped as needed to fit in the
39 // cell, the rest of the labels are truncated if necessary. 36 // cell, the rest of the labels are truncated if necessary.
40 @interface AutofillProfileCell : MDCCollectionViewCell 37 @interface AutofillProfileCell : MDCCollectionViewCell
41 38
42 // UILabels corresponding to |name|, |address|, |phoneNumber|, |email|, and 39 // UILabels corresponding to |name|, |address|, |phoneNumber|, |email|, and
43 // |notification|. 40 // |notification|.
44 @property(nonatomic, readonly, strong) UILabel* nameLabel; 41 @property(nonatomic, readonly, strong) UILabel* nameLabel;
45 @property(nonatomic, readonly, strong) UILabel* addressLabel; 42 @property(nonatomic, readonly, strong) UILabel* addressLabel;
46 @property(nonatomic, readonly, strong) UILabel* phoneNumberLabel; 43 @property(nonatomic, readonly, strong) UILabel* phoneNumberLabel;
47 @property(nonatomic, readonly, strong) UILabel* emailLabel; 44 @property(nonatomic, readonly, strong) UILabel* emailLabel;
48 @property(nonatomic, readonly, strong) UILabel* notificationLabel; 45 @property(nonatomic, readonly, strong) UILabel* notificationLabel;
49 46
50 @end 47 @end
51 48
52 #endif // IOS_CHROME_BROWSER_PAYMENTS_CELLS_AUTOFILL_PROFILE_ITEM_H_ 49 #endif // IOS_CHROME_BROWSER_PAYMENTS_CELLS_AUTOFILL_PROFILE_ITEM_H_
OLDNEW
« no previous file with comments | « no previous file | ios/chrome/browser/payments/cells/autofill_profile_item.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698