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

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

Issue 2932703004: [Payment Request] Contact Info editor (Closed)
Patch Set: Addressed comments 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_H_ 5 #ifndef IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_EDIT_VIEW_CONTROLLER_H_
6 #define IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_EDIT_VIEW_CONTROLLER_H_ 6 #define IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_EDIT_VIEW_CONTROLLER_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 #include <vector> 9 #include <vector>
10 10
11 #import "ios/chrome/browser/ui/autofill/autofill_ui_type.h" 11 #import "ios/chrome/browser/ui/autofill/autofill_ui_type.h"
12 #import "ios/chrome/browser/ui/collection_view/collection_view_controller.h" 12 #import "ios/chrome/browser/ui/collection_view/collection_view_controller.h"
13 #import "ios/chrome/browser/ui/payments/payment_request_edit_consumer.h" 13 #import "ios/chrome/browser/ui/payments/payment_request_edit_consumer.h"
14 #import "ios/chrome/browser/ui/payments/payment_request_edit_view_controller_dat a_source.h" 14 #import "ios/chrome/browser/ui/payments/payment_request_edit_view_controller_dat a_source.h"
15 15
16 extern NSString* const kWarningMessageAccessibilityID; 16 extern NSString* const kWarningMessageAccessibilityID;
17 17
18 @class EditorField; 18 @class EditorField;
19 @class PaymentRequestEditViewController; 19 @class PaymentRequestEditViewController;
20 20
21 // Delegate protocol for PaymentRequestEditViewController. 21 // Delegate protocol for PaymentRequestEditViewController.
22 @protocol PaymentRequestEditViewControllerDelegate<NSObject> 22 @protocol PaymentRequestEditViewControllerDelegate<NSObject>
23 23
24 // Notifies the delegate that the user has selected |field|.
25 - (void)paymentRequestEditViewController:
26 (PaymentRequestEditViewController*)controller
27 didSelectField:(EditorField*)field;
28
29 // Notifies the delegate that the user has finished editing the editor fields. 24 // Notifies the delegate that the user has finished editing the editor fields.
30 - (void)paymentRequestEditViewController: 25 - (void)paymentRequestEditViewController:
31 (PaymentRequestEditViewController*)controller 26 (PaymentRequestEditViewController*)controller
32 didFinishEditingFields:(NSArray<EditorField*>*)fields; 27 didFinishEditingFields:(NSArray<EditorField*>*)fields;
33 28
34 // Notifies the delegate that the user has chosen to discard entries in the 29 // Notifies the delegate that the user has chosen to discard entries in the
35 // editor fields and return to the previous screen. 30 // editor fields and return to the previous screen.
36 - (void)paymentRequestEditViewControllerDidCancel: 31 - (void)paymentRequestEditViewControllerDidCancel:
37 (PaymentRequestEditViewController*)controller; 32 (PaymentRequestEditViewController*)controller;
38 33
34 @optional
35
36 // Notifies the delegate that the user has selected |field|.
37 - (void)paymentRequestEditViewController:
38 (PaymentRequestEditViewController*)controller
39 didSelectField:(EditorField*)field;
40
39 @end 41 @end
40 42
41 // Validator protocol for PaymentRequestEditViewController. 43 // Validator protocol for PaymentRequestEditViewController.
42 @protocol PaymentRequestEditViewControllerValidator<NSObject> 44 @protocol PaymentRequestEditViewControllerValidator<NSObject>
43 45
44 // Returns the validation error string for |field|. Returns nil if there are no 46 // Returns the validation error string for |field|. Returns nil if there are no
45 // validation errors. 47 // validation errors.
46 - (NSString*)paymentRequestEditViewController: 48 - (NSString*)paymentRequestEditViewController:
47 (PaymentRequestEditViewController*)controller 49 (PaymentRequestEditViewController*)controller
48 validateField:(EditorField*)field; 50 validateField:(EditorField*)field;
(...skipping 21 matching lines...) Expand all
70 validatorDelegate; 72 validatorDelegate;
71 73
72 // Convenience initializer. Initializes this view controller with the 74 // Convenience initializer. Initializes this view controller with the
73 // CollectionViewControllerStyleAppBar style and sets up the leading (cancel) 75 // CollectionViewControllerStyleAppBar style and sets up the leading (cancel)
74 // and the trailing (done) buttons. 76 // and the trailing (done) buttons.
75 - (instancetype)init; 77 - (instancetype)init;
76 78
77 @end 79 @end
78 80
79 #endif // IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_EDIT_VIEW_CONTROLLER_H _ 81 #endif // IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_EDIT_VIEW_CONTROLLER_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698