| OLD | NEW |
| 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_ITEMS_DISPLAY_VIEW_CONTROLLER_H_ | 5 #ifndef IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_ITEMS_DISPLAY_VIEW_CONTROLLER_H_ |
| 6 #define IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_ITEMS_DISPLAY_VIEW_CONTROLLER_H_ | 6 #define IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_ITEMS_DISPLAY_VIEW_CONTROLLER_H_ |
| 7 | 7 |
| 8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #import "ios/chrome/browser/ui/collection_view/collection_view_controller.h" | 11 #import "ios/chrome/browser/ui/collection_view/collection_view_controller.h" |
| 12 #include "ios/web/public/payments/payment_request.h" | 12 #include "ios/web/public/payments/payment_request.h" |
| 13 | 13 |
| 14 // The accessibility identifiers of the cells in the collection view. | |
| 15 extern NSString* const kPaymentItemsDisplayItemId; | |
| 16 | |
| 17 @class PaymentItemsDisplayViewController; | 14 @class PaymentItemsDisplayViewController; |
| 18 | 15 |
| 19 // Protocol for communicating with the delegate supplied to | 16 // Protocol for communicating with the delegate supplied to |
| 20 // PaymentItemsDisplayViewController. | 17 // PaymentItemsDisplayViewController. |
| 21 @protocol PaymentItemsDisplayViewControllerDelegate<NSObject> | 18 @protocol PaymentItemsDisplayViewControllerDelegate<NSObject> |
| 22 | 19 |
| 23 // Notifies the delegate that the user has chosen to return to the previous | 20 // Notifies the delegate that the user has chosen to return to the previous |
| 24 // screen. | 21 // screen. |
| 25 - (void)paymentItemsDisplayViewControllerDidReturn: | 22 - (void)paymentItemsDisplayViewControllerDidReturn: |
| 26 (PaymentItemsDisplayViewController*)controller; | 23 (PaymentItemsDisplayViewController*)controller; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 49 | 46 |
| 50 - (instancetype)initWithPayButtonEnabled:(BOOL)payButtonEnabled | 47 - (instancetype)initWithPayButtonEnabled:(BOOL)payButtonEnabled |
| 51 NS_DESIGNATED_INITIALIZER; | 48 NS_DESIGNATED_INITIALIZER; |
| 52 | 49 |
| 53 - (instancetype)initWithStyle:(CollectionViewControllerStyle)style | 50 - (instancetype)initWithStyle:(CollectionViewControllerStyle)style |
| 54 NS_UNAVAILABLE; | 51 NS_UNAVAILABLE; |
| 55 | 52 |
| 56 @end | 53 @end |
| 57 | 54 |
| 58 #endif // IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_ITEMS_DISPLAY_VIEW_CONTROLLER_H_ | 55 #endif // IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_ITEMS_DISPLAY_VIEW_CONTROLLER_H_ |
| OLD | NEW |