Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
|
lpromero
2017/01/11 12:51:15
2017. You can use boilerplate.py to create the boi
Moe
2017/01/12 00:06:18
Today I learned.
| |
| 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_PAYMENTS_SHIPPING_OPTION_SELECTION_COORDINATOR_H_ | |
| 6 #define IOS_CHROME_BROWSER_PAYMENTS_SHIPPING_OPTION_SELECTION_COORDINATOR_H_ | |
| 7 | |
| 8 #import <UIKit/UIKit.h> | |
| 9 #include <vector> | |
| 10 | |
| 11 #import "ios/chrome/browser/chrome_coordinator.h" | |
| 12 #include "ios/web/public/payments/payment_request.h" | |
| 13 | |
| 14 @class ShippingOptionSelectionCoordinator; | |
| 15 | |
| 16 @protocol ShippingOptionSelectionCoordinatorDelegate<NSObject> | |
| 17 | |
| 18 - (void)shippingOptionSelectionCoordinator: | |
|
lpromero
2017/01/11 12:51:15
Comments for these two methods.
Moe
2017/01/12 00:06:18
Done.
| |
| 19 (ShippingOptionSelectionCoordinator*)coordinator | |
| 20 selectedShippingOption: | |
| 21 (web::PaymentShippingOption*)shippingOption; | |
| 22 - (void)shippingOptionSelectionCoordinatorDidReturn: | |
| 23 (ShippingOptionSelectionCoordinator*)coordinator; | |
| 24 | |
| 25 @end | |
| 26 | |
| 27 // Coordinator responsible for creating and presenting the shipping option | |
| 28 // selection view controller. This view controller will be presented by the view | |
| 29 // controller provided in the initializer. | |
| 30 @interface ShippingOptionSelectionCoordinator : ChromeCoordinator | |
| 31 | |
| 32 // The available shipping options to fulfill the payment request. | |
| 33 @property(nonatomic, assign) std::vector<web::PaymentShippingOption*> | |
| 34 shippingOptions; | |
| 35 | |
| 36 // The shipping option selected by the user, if any. | |
| 37 @property(nonatomic, assign) web::PaymentShippingOption* selectedShippingOption; | |
| 38 | |
| 39 // The delegate to be notified when the user selects a shipping option or | |
| 40 // returns without selecting one. | |
| 41 @property(nonatomic, weak) id<ShippingOptionSelectionCoordinatorDelegate> | |
| 42 delegate; | |
| 43 | |
| 44 @end | |
| 45 | |
| 46 #endif // IOS_CHROME_BROWSER_PAYMENTS_SHIPPING_OPTION_SELECTION_COORDINATOR_H_ | |
| OLD | NEW |