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

Side by Side Diff: ios/chrome/browser/ui/payments/address_edit_mediator.h

Issue 2950843002: [Payment Request] Populates region field if region code/name is valid. (Closed)
Patch Set: Addressed comment Created 3 years, 6 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
« no previous file with comments | « no previous file | ios/chrome/browser/ui/payments/address_edit_mediator.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 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 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_UI_PAYMENTS_ADDRESS_EDIT_MEDIATOR_H_ 5 #ifndef IOS_CHROME_BROWSER_UI_PAYMENTS_ADDRESS_EDIT_MEDIATOR_H_
6 #define IOS_CHROME_BROWSER_UI_PAYMENTS_ADDRESS_EDIT_MEDIATOR_H_ 6 #define IOS_CHROME_BROWSER_UI_PAYMENTS_ADDRESS_EDIT_MEDIATOR_H_
7 7
8 #import "ios/chrome/browser/ui/payments/payment_request_edit_view_controller_dat a_source.h" 8 #import "ios/chrome/browser/ui/payments/payment_request_edit_view_controller_dat a_source.h"
9 #import "ios/chrome/browser/ui/payments/region_data_loader.h" 9 #import "ios/chrome/browser/ui/payments/region_data_loader.h"
10 10
(...skipping 12 matching lines...) Expand all
23 // The consumer for this object. This can change during the lifetime of this 23 // The consumer for this object. This can change during the lifetime of this
24 // object and may be nil. 24 // object and may be nil.
25 @property(nonatomic, weak) id<PaymentRequestEditConsumer> consumer; 25 @property(nonatomic, weak) id<PaymentRequestEditConsumer> consumer;
26 26
27 // The map of country codes to country names. 27 // The map of country codes to country names.
28 @property(nonatomic, strong) NSDictionary<NSString*, NSString*>* countries; 28 @property(nonatomic, strong) NSDictionary<NSString*, NSString*>* countries;
29 29
30 // The country code for the currently selected country, if any. 30 // The country code for the currently selected country, if any.
31 @property(nonatomic, strong) NSString* selectedCountryCode; 31 @property(nonatomic, strong) NSString* selectedCountryCode;
32 32
33 // The list of region names used for the autofill::ADDRESS_HOME_STATE field.
34 @property(nonatomic, strong) NSArray<NSString*>* regions;
35
36 // Initializes this object with an instance of PaymentRequest which has a copy 33 // Initializes this object with an instance of PaymentRequest which has a copy
37 // of web::PaymentRequest as provided by the page invoking the Payment Request 34 // of web::PaymentRequest as provided by the page invoking the Payment Request
38 // API as well as |address| which is the address to be edited, if any. 35 // API as well as |address| which is the address to be edited, if any.
39 // This object will not take ownership of |paymentRequest| or |address|. 36 // This object will not take ownership of |paymentRequest| or |address|.
40 - (instancetype)initWithPaymentRequest:(PaymentRequest*)paymentRequest 37 - (instancetype)initWithPaymentRequest:(PaymentRequest*)paymentRequest
41 address:(autofill::AutofillProfile*)address 38 address:(autofill::AutofillProfile*)address
42 NS_DESIGNATED_INITIALIZER; 39 NS_DESIGNATED_INITIALIZER;
43 40
44 - (instancetype)init NS_UNAVAILABLE; 41 - (instancetype)init NS_UNAVAILABLE;
45 42
46 @end 43 @end
47 44
48 #endif // IOS_CHROME_BROWSER_UI_PAYMENTS_ADDRESS_EDIT_MEDIATOR_H_ 45 #endif // IOS_CHROME_BROWSER_UI_PAYMENTS_ADDRESS_EDIT_MEDIATOR_H_
OLDNEW
« no previous file with comments | « no previous file | ios/chrome/browser/ui/payments/address_edit_mediator.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698