| Index: ios/chrome/browser/payments/shipping_address_selection_coordinator.h
|
| diff --git a/ios/chrome/browser/payments/shipping_address_selection_coordinator.h b/ios/chrome/browser/payments/shipping_address_selection_coordinator.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..62f08b20d8fbe1b8ac500f5d257caeaeb6934893
|
| --- /dev/null
|
| +++ b/ios/chrome/browser/payments/shipping_address_selection_coordinator.h
|
| @@ -0,0 +1,49 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef IOS_CHROME_BROWSER_PAYMENTS_SHIPPING_ADDRESS_SELECTION_COORDINATOR_H_
|
| +#define IOS_CHROME_BROWSER_PAYMENTS_SHIPPING_ADDRESS_SELECTION_COORDINATOR_H_
|
| +
|
| +#import <UIKit/UIKit.h>
|
| +#include <vector>
|
| +
|
| +#import "ios/chrome/browser/chrome_coordinator.h"
|
| +
|
| +namespace autofill {
|
| +class AutofillProfile;
|
| +} // namespace autofill
|
| +
|
| +@class ShippingAddressSelectionCoordinator;
|
| +
|
| +@protocol ShippingAddressSelectionCoordinatorDelegate<NSObject>
|
| +
|
| +- (void)shippingAddressSelectionCoordinator:
|
| + (ShippingAddressSelectionCoordinator*)coordinator
|
| + selectedShippingAddress:
|
| + (autofill::AutofillProfile*)shippingAddress;
|
| +- (void)shippingAddressSelectionCoordinatorDidReturn:
|
| + (ShippingAddressSelectionCoordinator*)coordinator;
|
| +
|
| +@end
|
| +
|
| +// Coordinator responsible for creating and presenting the shipping address
|
| +// selection view controller. This view controller will be presented by the view
|
| +// controller provided in the initializer.
|
| +@interface ShippingAddressSelectionCoordinator : ChromeCoordinator
|
| +
|
| +// The available shipping addresses to fulfill the payment request.
|
| +@property(nonatomic, assign) std::vector<autofill::AutofillProfile*>
|
| + shippingAddresses;
|
| +
|
| +// The shipping address selected by the user, if any.
|
| +@property(nonatomic, assign) autofill::AutofillProfile* selectedShippingAddress;
|
| +
|
| +// The delegate to be notified when the user selects a shipping address or
|
| +// returns without selecting one.
|
| +@property(nonatomic, weak) id<ShippingAddressSelectionCoordinatorDelegate>
|
| + delegate;
|
| +
|
| +@end
|
| +
|
| +#endif // IOS_CHROME_BROWSER_PAYMENTS_SHIPPING_ADDRESS_SELECTION_COORDINATOR_H_
|
|
|