| OLD | NEW |
| 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_PAYMENT_REQUEST_SELECTOR_VIEW_CONTROLLER_
H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_SELECTOR_VIEW_CONTROLLER_
H_ |
| 6 #define IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_SELECTOR_VIEW_CONTROLLER_
H_ | 6 #define IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_SELECTOR_VIEW_CONTROLLER_
H_ |
| 7 | 7 |
| 8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
| 9 | 9 |
| 10 #import "ios/chrome/browser/ui/collection_view/collection_view_controller.h" | 10 #import "ios/chrome/browser/ui/collection_view/collection_view_controller.h" |
| 11 #import "ios/chrome/browser/ui/payments/payment_request_selector_view_controller
_data_source.h" | 11 #import "ios/chrome/browser/ui/payments/payment_request_selector_view_controller
_data_source.h" |
| 12 | 12 |
| 13 @class PaymentRequestSelectorViewController; | 13 @class PaymentRequestSelectorViewController; |
| 14 | 14 |
| 15 // Delegate protocol for PaymentRequestSelectorViewController. | 15 // Delegate protocol for PaymentRequestSelectorViewController. |
| 16 @protocol PaymentRequestSelectorViewControllerDelegate<NSObject> | 16 @protocol PaymentRequestSelectorViewControllerDelegate<NSObject> |
| 17 | 17 |
| 18 // Notifies the delegate that the user has selected an item at the given index. | 18 // Notifies the delegate that the user has selected an item at the given index. |
| 19 - (void)paymentRequestSelectorViewController: | 19 // Returns whether the selection can actually be made. |
| 20 - (BOOL)paymentRequestSelectorViewController: |
| 20 (PaymentRequestSelectorViewController*)controller | 21 (PaymentRequestSelectorViewController*)controller |
| 21 didSelectItemAtIndex:(NSUInteger)index; | 22 didSelectItemAtIndex:(NSUInteger)index; |
| 22 | 23 |
| 23 // Notifies the delegate that the user has chosen to return to the previous | 24 // Notifies the delegate that the user has chosen to return to the previous |
| 24 // screen without making a selection. | 25 // screen without making a selection. |
| 25 - (void)paymentRequestSelectorViewControllerDidFinish: | 26 - (void)paymentRequestSelectorViewControllerDidFinish: |
| 26 (PaymentRequestSelectorViewController*)controller; | 27 (PaymentRequestSelectorViewController*)controller; |
| 27 | 28 |
| 28 @optional | 29 @optional |
| 29 | 30 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 @property(nonatomic, assign, getter=isEditing) BOOL editing; | 63 @property(nonatomic, assign, getter=isEditing) BOOL editing; |
| 63 | 64 |
| 64 // Convenience initializer. Initializes this object with the | 65 // Convenience initializer. Initializes this object with the |
| 65 // CollectionViewControllerStyleAppBar style and sets up the leading (back) | 66 // CollectionViewControllerStyleAppBar style and sets up the leading (back) |
| 66 // button. | 67 // button. |
| 67 - (instancetype)init; | 68 - (instancetype)init; |
| 68 | 69 |
| 69 @end | 70 @end |
| 70 | 71 |
| 71 #endif // IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_SELECTOR_VIEW_CONTROLL
ER_H_ | 72 #endif // IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_SELECTOR_VIEW_CONTROLL
ER_H_ |
| OLD | NEW |