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

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

Issue 2825143002: [Payment Request] Accepted credit card type icons in the credit card editor (Closed)
Patch Set: Addressed comments 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef IOS_CHROME_BROWSER_PAYMENTS_CELLS_ACCEPTED_PAYMENT_METHODS_ITEM_H_
6 #define IOS_CHROME_BROWSER_PAYMENTS_CELLS_ACCEPTED_PAYMENT_METHODS_ITEM_H_
7
8 #import <UIKit/UIKit.h>
9
10 #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
13 // AcceptedPaymentMethodsItem is the model class corresponding to
14 // AcceptedPaymentMethodsCell.
15 @interface AcceptedPaymentMethodsItem : CollectionViewItem
16
17 // The message to be displayed alongside the icons for the accepted payment
18 // method types.
19 @property(nonatomic, copy) NSString* message;
20
21 // An array of icons corresponding to the accepted payment method types.
22 @property(nonatomic, strong) NSArray<UIImage*>* methodTypeIcons;
23
24 @end
25
26 // AcceptedPaymentMethodsCell implements an MDCCollectionViewCell subclass
27 // containing one text label and a list of icons representing the accepted
28 // payment method types. The text label is laid out on the leading edge of the
29 // cell up to the trailing edge of the cell. Below that, icon are laid out in a
30 // row from the leading edge of the cell up to the trailing edge of the cell.
31 // The text label is wrapped as needed to fit in the cell.
32 @interface AcceptedPaymentMethodsCell : MDCCollectionViewCell
33
34 // UILabel corresponding to |message|.
35 @property(nonatomic, readonly, strong) UILabel* messageLabel;
36
37 // An array of UIImageView objects containing the icons for the accepted payment
38 // method types.
39 @property(nonatomic, strong) NSArray<UIImageView*>* methodTypeIconViews;
40
41 @end
42
43 #endif // IOS_CHROME_BROWSER_PAYMENTS_CELLS_ACCEPTED_PAYMENT_METHODS_ITEM_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/payments/cells/BUILD.gn ('k') | ios/chrome/browser/payments/cells/accepted_payment_methods_item.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698