| Index: ios/chrome/browser/payments/shipping_option_selection_view_controller.h
|
| diff --git a/ios/chrome/browser/payments/shipping_option_selection_view_controller.h b/ios/chrome/browser/payments/shipping_option_selection_view_controller.h
|
| deleted file mode 100644
|
| index fd7f1ad22efa3810a391b392e6cedf536fc1151f..0000000000000000000000000000000000000000
|
| --- a/ios/chrome/browser/payments/shipping_option_selection_view_controller.h
|
| +++ /dev/null
|
| @@ -1,65 +0,0 @@
|
| -// Copyright 2017 The Chromium Authors. All rights reserved.
|
| -// Use of this source code is governed by a BSD-style license that can be
|
| -// found in the LICENSE file.
|
| -
|
| -#ifndef IOS_CHROME_BROWSER_PAYMENTS_SHIPPING_OPTION_SELECTION_VIEW_CONTROLLER_H_
|
| -#define IOS_CHROME_BROWSER_PAYMENTS_SHIPPING_OPTION_SELECTION_VIEW_CONTROLLER_H_
|
| -
|
| -#import <UIKit/UIKit.h>
|
| -
|
| -#import "ios/chrome/browser/ui/collection_view/collection_view_controller.h"
|
| -
|
| -class PaymentRequest;
|
| -
|
| -namespace web {
|
| -class PaymentShippingOption;
|
| -} // namespace web
|
| -
|
| -@class ShippingOptionSelectionViewController;
|
| -
|
| -// Delegate protocol for ShippingOptionSelectionViewController.
|
| -@protocol ShippingOptionSelectionViewControllerDelegate<NSObject>
|
| -
|
| -// Notifies the delegate that the user has selected a shipping option.
|
| -- (void)shippingOptionSelectionViewController:
|
| - (ShippingOptionSelectionViewController*)controller
|
| - didSelectShippingOption:
|
| - (web::PaymentShippingOption*)shippingOption;
|
| -
|
| -// Notifies the delegate that the user has chosen to return to the previous
|
| -// screen without making a selection.
|
| -- (void)shippingOptionSelectionViewControllerDidReturn:
|
| - (ShippingOptionSelectionViewController*)controller;
|
| -
|
| -@end
|
| -
|
| -// View controller responsible for presenting the available shipping options
|
| -// for selection by the user and communicating their choice to the supplied
|
| -// delegate.
|
| -@interface ShippingOptionSelectionViewController : CollectionViewController
|
| -
|
| -// Whether or not the view is in a pending state.
|
| -@property(nonatomic, assign, getter=isPending) BOOL pending;
|
| -
|
| -// The error message to display, if any.
|
| -@property(nonatomic, copy) NSString* errorMessage;
|
| -
|
| -// The delegate to be notified when the user selects a shipping option or
|
| -// returns without selecting one.
|
| -@property(nonatomic, weak)
|
| - id<ShippingOptionSelectionViewControllerDelegate> delegate;
|
| -
|
| -// Initializes this object with an instance of PaymentRequest which has a copy
|
| -// of web::PaymentRequest as provided by the page invoking the Payment Request
|
| -// API. This object will not take ownership of |paymentRequest|.
|
| -- (instancetype)initWithPaymentRequest:(PaymentRequest*)paymentRequest
|
| - NS_DESIGNATED_INITIALIZER;
|
| -
|
| -- (instancetype)init NS_UNAVAILABLE;
|
| -
|
| -- (instancetype)initWithStyle:(CollectionViewControllerStyle)style
|
| - NS_UNAVAILABLE;
|
| -
|
| -@end
|
| -
|
| -#endif // IOS_CHROME_BROWSER_PAYMENTS_SHIPPING_OPTION_SELECTION_VIEW_CONTROLLER_H_
|
|
|