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

Side by Side Diff: ios/chrome/browser/payments/payment_method_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_PAYMENT_METHOD_SELECTION_COORDINATOR_H_
6 #define IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_METHOD_SELECTION_COORDINATOR_H_
7
8 #import <UIKit/UIKit.h>
9 #include <vector>
10
11 #import "ios/chrome/browser/chrome_coordinator.h"
12 #import "ios/chrome/browser/payments/payment_method_selection_view_controller.h"
13
14 namespace autofill {
15 class CreditCard;
16 }
17
18 @class PaymentMethodSelectionCoordinator;
19
20 @protocol PaymentMethodSelectionCoordinatorDelegate<NSObject>
21
22 - (void)paymentMethodSelectionCoordinator:
23 (PaymentMethodSelectionCoordinator*)coordinator
24 selectedPaymentMethod:(autofill::CreditCard*)paymentMethod;
25 - (void)paymentMethodSelectionCoordinatorDidReturn:
26 (PaymentMethodSelectionCoordinator*)coordinator;
27
28 @end
29
30 // Coordinator responsible for creating and presenting the payment method
31 // selection view controller. This view controller will be presented by the view
32 // controller provided in the initializer.
33 @interface PaymentMethodSelectionCoordinator
34 : ChromeCoordinator<PaymentMethodSelectionViewControllerDelegate>
35
36 // The payment methods available to fulfill the payment request.
37 @property(nonatomic, assign) std::vector<autofill::CreditCard*> paymentMethods;
38
39 // The payment method selected by the user, if any.
40 @property(nonatomic, assign) autofill::CreditCard* selectedPaymentMethod;
41
42 // The delegate to be notified when the user selects a payment method or returns
43 // without selecting a payment method.
44 @property(nonatomic, weak) id<PaymentMethodSelectionCoordinatorDelegate>
45 delegate;
46
47 @end
48
49 #endif // IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_METHOD_SELECTION_COORDINATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698