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

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

Issue 2965073002: [Payment Request] Moves PaymentRequest into the payments namespace (Closed)
Patch Set: rebase Created 3 years, 5 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 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_BILLING_ADDRESS_SELECTION_MEDIATOR_H_ 5 #ifndef IOS_CHROME_BROWSER_UI_PAYMENTS_BILLING_ADDRESS_SELECTION_MEDIATOR_H_
6 #define IOS_CHROME_BROWSER_UI_PAYMENTS_BILLING_ADDRESS_SELECTION_MEDIATOR_H_ 6 #define IOS_CHROME_BROWSER_UI_PAYMENTS_BILLING_ADDRESS_SELECTION_MEDIATOR_H_
7 7
8 #import "ios/chrome/browser/ui/payments/payment_request_selector_view_controller _data_source.h" 8 #import "ios/chrome/browser/ui/payments/payment_request_selector_view_controller _data_source.h"
9 9
10 class PaymentRequest;
11
12 namespace autofill { 10 namespace autofill {
13 class AutofillProfile; 11 class AutofillProfile;
14 } // namespace autofill 12 } // namespace autofill
15 13
14 namespace payments {
15 class PaymentRequest;
16 } // namespace payments
17
16 // Serves as data source for PaymentRequestSelectorViewController. 18 // Serves as data source for PaymentRequestSelectorViewController.
17 @interface BillingAddressSelectionMediator 19 @interface BillingAddressSelectionMediator
18 : NSObject<PaymentRequestSelectorViewControllerDataSource> 20 : NSObject<PaymentRequestSelectorViewControllerDataSource>
19 21
20 // Redefined to be read-write. 22 // Redefined to be read-write.
21 @property(nonatomic, readwrite, assign) PaymentRequestSelectorState state; 23 @property(nonatomic, readwrite, assign) PaymentRequestSelectorState state;
22 24
23 // Redefined to be read-write. 25 // Redefined to be read-write.
24 @property(nonatomic, readwrite, assign) NSUInteger selectedItemIndex; 26 @property(nonatomic, readwrite, assign) NSUInteger selectedItemIndex;
25 27
26 // Creates and stores the selectable items to display in the collection. 28 // Creates and stores the selectable items to display in the collection.
27 - (void)loadItems; 29 - (void)loadItems;
28 30
29 // Initializes this object with an instance of PaymentRequest which has a copy 31 // Initializes this object with an instance of PaymentRequest which has a copy
30 // of web::PaymentRequest as provided by the page invoking the Payment Request 32 // of web::PaymentRequest as provided by the page invoking the Payment Request
31 // API as well as the selected billing profile. This object will not take 33 // API as well as the selected billing profile. This object will not take
32 // ownership of |paymentRequest| or |selectedBillingProfile|. 34 // ownership of |paymentRequest| or |selectedBillingProfile|.
33 - (instancetype)initWithPaymentRequest:(PaymentRequest*)paymentRequest 35 - (instancetype)initWithPaymentRequest:(payments::PaymentRequest*)paymentRequest
34 selectedBillingProfile: 36 selectedBillingProfile:
35 (autofill::AutofillProfile*)selectedBillingProfile 37 (autofill::AutofillProfile*)selectedBillingProfile
36 NS_DESIGNATED_INITIALIZER; 38 NS_DESIGNATED_INITIALIZER;
37 39
38 - (instancetype)init NS_UNAVAILABLE; 40 - (instancetype)init NS_UNAVAILABLE;
39 41
40 @end 42 @end
41 43
42 #endif // IOS_CHROME_BROWSER_UI_PAYMENTS_BILLING_ADDRESS_SELECTION_MEDIATOR_H_ 44 #endif // IOS_CHROME_BROWSER_UI_PAYMENTS_BILLING_ADDRESS_SELECTION_MEDIATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698