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

Side by Side Diff: ios/chrome/browser/payments/shipping_option_selection_view_controller.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_VIEW_CONTROLLER_H_
6 #define IOS_CHROME_BROWSER_PAYMENTS_SHIPPING_OPTION_SELECTION_VIEW_CONTROLLER_H_
7
8 #import <UIKit/UIKit.h>
9
10 #import "ios/chrome/browser/ui/collection_view/collection_view_controller.h"
11 #include "ios/web/public/payments/payment_request.h"
12
13 @class ShippingOptionSelectionViewController;
14
15 @protocol ShippingOptionSelectionViewControllerDelegate<NSObject>
16
17 - (void)shippingOptionSelectionViewController:
18 (ShippingOptionSelectionViewController*)controller
19 selectedShippingOption:
20 (web::PaymentShippingOption*)shippingOption;
21 - (void)shippingOptionSelectionViewControllerDidReturn:
22 (ShippingOptionSelectionViewController*)controller;
23
24 @end
25
26 // View controller responsible for presenting the available shipping options
27 // for selection by the user and communicating their choice to the supplied
28 // delegate.
29 @interface ShippingOptionSelectionViewController : CollectionViewController
30
31 // The available shipping options to fulfill the payment request.
32 @property(nonatomic, assign) std::vector<web::PaymentShippingOption*>
33 shippingOptions;
34
35 // The shipping option selected by the user, if any.
36 @property(nonatomic, assign) web::PaymentShippingOption* selectedShippingOption;
37
38 // The delegate to be notified when the user selects a shipping option or
39 // returns without selecting one.
40 @property(nonatomic, weak) id<ShippingOptionSelectionViewControllerDelegate>
41 delegate;
42
43 - (instancetype)init NS_DESIGNATED_INITIALIZER;
44
45 - (instancetype)initWithStyle:(CollectionViewControllerStyle)style
46 NS_UNAVAILABLE;
47
48 @end
49
50 #endif // IOS_CHROME_BROWSER_PAYMENTS_SHIPPING_OPTION_SELECTION_VIEW_CONTROLLER _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698