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

Side by Side Diff: ios/chrome/browser/payments/shipping_option_selection_coordinator.h

Issue 2621453002: Selected shipping option in payment summary view + shipping option selection view (Closed)
Patch Set: Initial Created 3 years, 11 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 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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698