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

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

Issue 2949813003: [Payment Request] Formats phone number and credit card number in editors. (Closed)
Patch Set: Fixed broken tests Created 3 years, 6 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_UI_PAYMENTS_PAYMENT_REQUEST_EDIT_VIEW_CONTROLLER_DATA _SOURCE_H_ 5 #ifndef IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_EDIT_VIEW_CONTROLLER_DATA _SOURCE_H_
6 #define IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_EDIT_VIEW_CONTROLLER_DATA _SOURCE_H_ 6 #define IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_EDIT_VIEW_CONTROLLER_DATA _SOURCE_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 @class EditorField; 10 @class EditorField;
(...skipping 12 matching lines...) Expand all
23 23
24 // The current state of the view controller. 24 // The current state of the view controller.
25 @property(nonatomic, assign) EditViewControllerState state; 25 @property(nonatomic, assign) EditViewControllerState state;
26 26
27 // Returns the header item. May be nil. 27 // Returns the header item. May be nil.
28 - (CollectionViewItem*)headerItem; 28 - (CollectionViewItem*)headerItem;
29 29
30 // Returns whether the header item should hide its background. 30 // Returns whether the header item should hide its background.
31 - (BOOL)shouldHideBackgroundForHeaderItem; 31 - (BOOL)shouldHideBackgroundForHeaderItem;
32 32
33 // Formats the editor field value, if necessary.
34 - (void)formatValueForEditorField:(EditorField*)field;
35
33 // Returns an icon that identifies |field| or its current value. May be nil. 36 // Returns an icon that identifies |field| or its current value. May be nil.
34 - (UIImage*)iconIdentifyingEditorField:(EditorField*)field; 37 - (UIImage*)iconIdentifyingEditorField:(EditorField*)field;
35 38
36 @end 39 @end
37 40
38 #endif // IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_EDIT_VIEW_CONTROLLER_D ATA_SOURCE_H_ 41 #endif // IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_EDIT_VIEW_CONTROLLER_D ATA_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698