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

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

Issue 2804853002: Cancels payment request when Settings is tapped, and opens the Autofill settings page. (Closed)
Patch Set: Remove more strongSelf checks. Created 3 years, 8 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_COORDINATOR_H_ 5 #ifndef IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_COORDINATOR_H_
6 #define IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_COORDINATOR_H_ 6 #define IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_COORDINATOR_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 #include "base/ios/block_types.h" 10 #include "base/ios/block_types.h"
(...skipping 28 matching lines...) Expand all
39 39
40 @class PaymentRequestCoordinator; 40 @class PaymentRequestCoordinator;
41 41
42 // Delegate protocol for PaymentRequestCoordinator. 42 // Delegate protocol for PaymentRequestCoordinator.
43 @protocol PaymentRequestCoordinatorDelegate<NSObject> 43 @protocol PaymentRequestCoordinatorDelegate<NSObject>
44 44
45 // Notifies the delegate that the user has canceled the payment request. 45 // Notifies the delegate that the user has canceled the payment request.
46 - (void)paymentRequestCoordinatorDidCancel: 46 - (void)paymentRequestCoordinatorDidCancel:
47 (PaymentRequestCoordinator*)coordinator; 47 (PaymentRequestCoordinator*)coordinator;
48 48
49 // Notifies the delegate that the user has selected to go to the card and
50 // address options page in Settings.
51 - (void)paymentRequestCoordinatorDidSelectSettings:
52 (PaymentRequestCoordinator*)coordinator;
53
49 // Notifies the delegate that the user has confirmed the payment request. 54 // Notifies the delegate that the user has confirmed the payment request.
50 - (void)paymentRequestCoordinator:(PaymentRequestCoordinator*)coordinator 55 - (void)paymentRequestCoordinator:(PaymentRequestCoordinator*)coordinator
51 didConfirmWithPaymentResponse:(web::PaymentResponse)paymentResponse; 56 didConfirmWithPaymentResponse:(web::PaymentResponse)paymentResponse;
52 57
53 // Notifies the delegate that the user has selected a shipping address. 58 // Notifies the delegate that the user has selected a shipping address.
54 - (void)paymentRequestCoordinator:(PaymentRequestCoordinator*)coordinator 59 - (void)paymentRequestCoordinator:(PaymentRequestCoordinator*)coordinator
55 didSelectShippingAddress:(payments::PaymentAddress)shippingAddress; 60 didSelectShippingAddress:(payments::PaymentAddress)shippingAddress;
56 61
57 // Notifies the delegate that the user has selected a shipping option. 62 // Notifies the delegate that the user has selected a shipping option.
58 - (void)paymentRequestCoordinator:(PaymentRequestCoordinator*)coordinator 63 - (void)paymentRequestCoordinator:(PaymentRequestCoordinator*)coordinator
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // Called when a credit card has been successfully unmasked. Note that |card| 113 // Called when a credit card has been successfully unmasked. Note that |card|
109 // may be different from what's returned by the selected_credit_card() method of 114 // may be different from what's returned by the selected_credit_card() method of
110 // |paymentRequest|, because CVC unmasking process may update the credit card 115 // |paymentRequest|, because CVC unmasking process may update the credit card
111 // number and expiration date. 116 // number and expiration date.
112 - (void)fullCardRequestDidSucceedWithCard:(const autofill::CreditCard&)card 117 - (void)fullCardRequestDidSucceedWithCard:(const autofill::CreditCard&)card
113 CVC:(const base::string16&)cvc; 118 CVC:(const base::string16&)cvc;
114 119
115 @end 120 @end
116 121
117 #endif // IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_COORDINATOR_H_ 122 #endif // IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_COORDINATOR_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/payments/BUILD.gn ('k') | ios/chrome/browser/payments/payment_request_coordinator.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698