| OLD | NEW |
| 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_ADDRESS_EDIT_COORDINATOR_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_PAYMENTS_ADDRESS_EDIT_COORDINATOR_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_PAYMENTS_ADDRESS_EDIT_COORDINATOR_H_ | 6 #define IOS_CHROME_BROWSER_UI_PAYMENTS_ADDRESS_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/address_edit_view_controller.h" | |
| 10 #import "ios/chrome/browser/ui/payments/country_selection_coordinator.h" | 9 #import "ios/chrome/browser/ui/payments/country_selection_coordinator.h" |
| 11 #import "ios/chrome/browser/ui/payments/payment_request_edit_view_controller.h" | 10 #import "ios/chrome/browser/ui/payments/payment_request_edit_view_controller.h" |
| 12 | 11 |
| 13 namespace autofill { | 12 namespace autofill { |
| 14 class AutofillProfile; | 13 class AutofillProfile; |
| 15 } // namespace autofill | 14 } // namespace autofill |
| 16 | 15 |
| 17 class PaymentRequest; | 16 class PaymentRequest; |
| 18 | 17 |
| 19 @class AddressEditCoordinator; | 18 @class AddressEditCoordinator; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 31 // Notifies the delegate that the user has chosen to cancel editing or creating | 30 // Notifies the delegate that the user has chosen to cancel editing or creating |
| 32 // an address and return to the previous screen. | 31 // an address and return to the previous screen. |
| 33 - (void)addressEditCoordinatorDidCancel:(AddressEditCoordinator*)coordinator; | 32 - (void)addressEditCoordinatorDidCancel:(AddressEditCoordinator*)coordinator; |
| 34 | 33 |
| 35 @end | 34 @end |
| 36 | 35 |
| 37 // Coordinator responsible for creating and presenting an address editor view | 36 // Coordinator responsible for creating and presenting an address 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 AddressEditCoordinator | 39 @interface AddressEditCoordinator |
| 41 : ChromeCoordinator<AddressEditViewControllerDelegate, | 40 : ChromeCoordinator<PaymentRequestEditViewControllerDelegate, |
| 42 PaymentRequestEditViewControllerValidator, | 41 PaymentRequestEditViewControllerValidator, |
| 43 CountrySelectionCoordinatorDelegate> | 42 CountrySelectionCoordinatorDelegate> |
| 44 | 43 |
| 45 // The address to be edited, if any. This pointer is not owned by this class | 44 // The address to be edited, if any. This pointer is not owned by this class |
| 46 // and should outlive it. | 45 // and should outlive it. |
| 47 @property(nonatomic, assign) autofill::AutofillProfile* address; | 46 @property(nonatomic, assign) autofill::AutofillProfile* address; |
| 48 | 47 |
| 49 // The PaymentRequest object owning an instance of web::PaymentRequest as | 48 // The PaymentRequest object owning an instance of web::PaymentRequest as |
| 50 // provided by the page invoking the Payment Request API. This pointer is not | 49 // provided by the page invoking the Payment Request API. This pointer is not |
| 51 // owned by this class and should outlive it. | 50 // owned by this class and should outlive it. |
| 52 @property(nonatomic, assign) PaymentRequest* paymentRequest; | 51 @property(nonatomic, assign) PaymentRequest* paymentRequest; |
| 53 | 52 |
| 54 // The delegate to be notified when the user returns or finishes creating or | 53 // The delegate to be notified when the user returns or finishes creating or |
| 55 // editing an address. | 54 // editing an address. |
| 56 @property(nonatomic, weak) id<AddressEditCoordinatorDelegate> delegate; | 55 @property(nonatomic, weak) id<AddressEditCoordinatorDelegate> delegate; |
| 57 | 56 |
| 58 @end | 57 @end |
| 59 | 58 |
| 60 #endif // IOS_CHROME_BROWSER_UI_PAYMENTS_ADDRESS_EDIT_COORDINATOR_H_ | 59 #endif // IOS_CHROME_BROWSER_UI_PAYMENTS_ADDRESS_EDIT_COORDINATOR_H_ |
| OLD | NEW |