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

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

Issue 2908033002: [Payment Request] Refactors edit view controller (Closed)
Patch Set: Initial 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
(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_PAYMENT_REQUEST_EDIT_VIEW_CONTROLLER_INTE RNAL_H_
6 #define IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_EDIT_VIEW_CONTROLLER_INTE RNAL_H_
7
8 #import "ios/chrome/browser/ui/payments/payment_request_edit_view_controller.h"
9 #import "ios/chrome/browser/ui/payments/payment_request_edit_view_controller_act ions.h"
10
11 // Use these as the starting values for section identifier and item type enums
12 // in subclasses. These values are chosen to prevent overlapping with the
13 // section identifier and item type enums of this class.
14 const NSInteger kSectionIdentifierEnumStart = kSectionIdentifierEnumZero + 20;
15 const NSInteger kItemTypeEnumStart = kItemTypeEnumZero + 100;
16
17 // Internal API for subclasses of PaymentRequestEditViewController.
18 @interface PaymentRequestEditViewController (
19 Internal)<PaymentRequestEditViewControllerActions>
20
21 // Validates each field. If there is a validation error, displays an error
22 // message item in the same section as the field and returns NO. Otherwise
23 // removes the error message item in that section if one exists and sets the
24 // value on the field. Returns YES if all the fields are validated successfully.
25 - (BOOL)validateForm;
26
27 // Called after the editor field items have been added to the the collection
28 // view model. Subclasses override this method to add items after the editor
29 // fields.
30 - (void)loadFooterItems;
31
32 // Returns the index path for the cell associated with the currently focused
33 // text field.
34 - (NSIndexPath*)indexPathForCurrentTextField;
35
36 @end
37
38 #endif // IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_EDIT_VIEW_CONTROLLER_I NTERNAL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698