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

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

Issue 2585233003: Upstream Chrome on iOS source code [2/11]. (Closed)
Patch Set: Created 4 years 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.
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_ADDRESS_SELECTION_COORDINATOR_H_
6 #define IOS_CHROME_BROWSER_PAYMENTS_SHIPPING_ADDRESS_SELECTION_COORDINATOR_H_
7
8 #import <UIKit/UIKit.h>
9 #include <vector>
10
11 #import "ios/chrome/browser/chrome_coordinator.h"
12
13 namespace autofill {
14 class AutofillProfile;
15 } // namespace autofill
16
17 @class ShippingAddressSelectionCoordinator;
18
19 @protocol ShippingAddressSelectionCoordinatorDelegate<NSObject>
20
21 - (void)shippingAddressSelectionCoordinator:
22 (ShippingAddressSelectionCoordinator*)coordinator
23 selectedShippingAddress:
24 (autofill::AutofillProfile*)shippingAddress;
25 - (void)shippingAddressSelectionCoordinatorDidReturn:
26 (ShippingAddressSelectionCoordinator*)coordinator;
27
28 @end
29
30 // Coordinator responsible for creating and presenting the shipping address
31 // selection view controller. This view controller will be presented by the view
32 // controller provided in the initializer.
33 @interface ShippingAddressSelectionCoordinator : ChromeCoordinator
34
35 // The available shipping addresses to fulfill the payment request.
36 @property(nonatomic, assign) std::vector<autofill::AutofillProfile*>
37 shippingAddresses;
38
39 // The shipping address selected by the user, if any.
40 @property(nonatomic, assign) autofill::AutofillProfile* selectedShippingAddress;
41
42 // The delegate to be notified when the user selects a shipping address or
43 // returns without selecting one.
44 @property(nonatomic, weak) id<ShippingAddressSelectionCoordinatorDelegate>
45 delegate;
46
47 @end
48
49 #endif // IOS_CHROME_BROWSER_PAYMENTS_SHIPPING_ADDRESS_SELECTION_COORDINATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698