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

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

Issue 2908033002: [Payment Request] Refactors edit view controller (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_CREDIT_CARD_EDIT_COORDINATOR_H_ 5 #ifndef IOS_CHROME_BROWSER_UI_PAYMENTS_CREDIT_CARD_EDIT_COORDINATOR_H_
6 #define IOS_CHROME_BROWSER_UI_PAYMENTS_CREDIT_CARD_EDIT_COORDINATOR_H_ 6 #define IOS_CHROME_BROWSER_UI_PAYMENTS_CREDIT_CARD_EDIT_COORDINATOR_H_
7 7
8 #import "ios/chrome/browser/chrome_coordinator.h" 8 #import "ios/chrome/browser/chrome_coordinator.h"
9 #import "ios/chrome/browser/ui/payments/credit_card_edit_view_controller.h"
10 #import "ios/chrome/browser/ui/payments/payment_request_edit_view_controller.h" 9 #import "ios/chrome/browser/ui/payments/payment_request_edit_view_controller.h"
11 10
12 namespace autofill { 11 namespace autofill {
13 class CreditCard; 12 class CreditCard;
14 } // namespace autofill 13 } // namespace autofill
15 14
16 class PaymentRequest; 15 class PaymentRequest;
17 16
18 @class CreditCardEditCoordinator; 17 @class CreditCardEditCoordinator;
19 18
(...skipping 11 matching lines...) Expand all
31 // a credit card and return to the previous screen. 30 // a credit card and return to the previous screen.
32 - (void)creditCardEditCoordinatorDidCancel: 31 - (void)creditCardEditCoordinatorDidCancel:
33 (CreditCardEditCoordinator*)coordinator; 32 (CreditCardEditCoordinator*)coordinator;
34 33
35 @end 34 @end
36 35
37 // Coordinator responsible for creating and presenting a credit card editor view 36 // Coordinator responsible for creating and presenting a credit card editor view
38 // controller. This view controller will be presented by the view controller 37 // controller. This view controller will be presented by the view controller
39 // provided in the initializer. 38 // provided in the initializer.
40 @interface CreditCardEditCoordinator 39 @interface CreditCardEditCoordinator
41 : ChromeCoordinator<CreditCardEditViewControllerDelegate, 40 : ChromeCoordinator<PaymentRequestEditViewControllerDelegate,
42 PaymentRequestEditViewControllerValidator> 41 PaymentRequestEditViewControllerValidator>
43 42
44 // The credit card to be edited, if any. This pointer is not owned by this class 43 // The credit card to be edited, if any. This pointer is not owned by this class
45 // and should outlive it. 44 // and should outlive it.
46 @property(nonatomic, assign) autofill::CreditCard* creditCard; 45 @property(nonatomic, assign) autofill::CreditCard* creditCard;
47 46
48 // The PaymentRequest object owning an instance of web::PaymentRequest as 47 // The PaymentRequest object owning an instance of web::PaymentRequest as
49 // provided by the page invoking the Payment Request API. This pointer is not 48 // provided by the page invoking the Payment Request API. This pointer is not
50 // owned by this class and should outlive it. 49 // owned by this class and should outlive it.
51 @property(nonatomic, assign) PaymentRequest* paymentRequest; 50 @property(nonatomic, assign) PaymentRequest* paymentRequest;
52 51
53 // The delegate to be notified when the user returns or finishes creating or 52 // The delegate to be notified when the user returns or finishes creating or
54 // editing a credit card. 53 // editing a credit card.
55 @property(nonatomic, weak) id<CreditCardEditCoordinatorDelegate> delegate; 54 @property(nonatomic, weak) id<CreditCardEditCoordinatorDelegate> delegate;
56 55
57 @end 56 @end
58 57
59 #endif // IOS_CHROME_BROWSER_UI_PAYMENTS_CREDIT_CARD_EDIT_COORDINATOR_H_ 58 #endif // IOS_CHROME_BROWSER_UI_PAYMENTS_CREDIT_CARD_EDIT_COORDINATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698