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

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

Issue 2879433002: [Payment Request] PaymentsSelectorEditItem (Closed)
Patch Set: Addressed comment Created 3 years, 7 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_UI_PAYMENTS_CELLS_PAYMENTS_SELECTOR_EDIT_ITEM_H_
6 #define IOS_CHROME_BROWSER_UI_PAYMENTS_CELLS_PAYMENTS_SELECTOR_EDIT_ITEM_H_
7
8 #import <UIKit/UIKit.h>
9
10 #import "ios/chrome/browser/ui/autofill/autofill_ui_type.h"
11 #import "ios/chrome/browser/ui/collection_view/cells/collection_view_item.h"
12 #import "ios/chrome/browser/ui/payments/cells/payments_has_accessory_type.h"
13
14 // Item that configures a CollectionViewDetailCell in order to represent a
15 // selector-backed editor form field.
16 @interface PaymentsSelectorEditItem
17 : CollectionViewItem<PaymentsHasAccessoryType>
18
19 // The name of the field.
20 @property(nonatomic, nullable, copy) NSString* name;
21
22 // The value of the field. This is displayed in the UI.
23 @property(nonatomic, nullable, copy) NSString* value;
24
25 // The field type this item is describing.
26 @property(nonatomic, assign) AutofillUIType autofillUIType;
27
28 // Whether this field is required. If YES, an "*" is appended to the name of the
29 // text field to indicate that the field is required. It is also used for
30 // validation purposes.
31 @property(nonatomic, getter=isRequired) BOOL required;
32
33 // The font of the name text. Default is the medium Roboto font of size 14.
34 @property(nonatomic, null_resettable, copy) UIFont* nameFont;
35
36 // The color of the name text. Default is the 900 tint color of the grey
37 // palette.
38 @property(nonatomic, null_resettable, copy) UIColor* nameColor;
39
40 // The font of the value text. Default is the regular Roboto font of size 14.
41 @property(nonatomic, null_resettable, copy) UIFont* valueFont;
42
43 // The color of the value text. Default is the 600 tint color of the blue
44 // palette.
45 @property(nonatomic, null_resettable, copy) UIColor* valueColor;
46
47 @end
48
49 #endif // IOS_CHROME_BROWSER_UI_PAYMENTS_CELLS_PAYMENTS_SELECTOR_EDIT_ITEM_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/payments/cells/BUILD.gn ('k') | ios/chrome/browser/ui/payments/cells/payments_selector_edit_item.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698