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

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: Addressed comments by lpromero@ and jdonnelley@ 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 2017 The Chromium Authors. All rights reserved.
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 // Notifies the delegate that the user has selected a shipping option.
19 - (void)shippingOptionSelectionCoordinator:
20 (ShippingOptionSelectionCoordinator*)coordinator
21 selectedShippingOption:
22 (web::PaymentShippingOption*)shippingOption;
23
24 // Notifies the delegate that the user has chosen to return to the previous
25 // screen without making a selection.
26 - (void)shippingOptionSelectionCoordinatorDidReturn:
27 (ShippingOptionSelectionCoordinator*)coordinator;
28
29 @end
30
31 // Coordinator responsible for creating and presenting the shipping option
32 // selection view controller. This view controller will be presented by the view
33 // controller provided in the initializer.
34 @interface ShippingOptionSelectionCoordinator : ChromeCoordinator
35
36 // The available shipping options to fulfill the payment request.
37 @property(nonatomic, assign) std::vector<web::PaymentShippingOption*>
38 shippingOptions;
39
40 // The shipping option selected by the user, if any.
41 @property(nonatomic, assign) web::PaymentShippingOption* selectedShippingOption;
42
43 // The delegate to be notified when the user selects a shipping option or
44 // returns without selecting one.
45 @property(nonatomic, weak) id<ShippingOptionSelectionCoordinatorDelegate>
46 delegate;
47
48 @end
49
50 #endif // IOS_CHROME_BROWSER_PAYMENTS_SHIPPING_OPTION_SELECTION_COORDINATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698