[Payment Request] Refactors the remaining selector view controllers

Desktop / Chromium - mahmadi [chromium.org] - 20 April 2017 13:12 EDT

This CL (which is a continuation of https://codereview.chromium.org/2827453004) replaces the following view controllers with PaymentRequestSelectorViewController:
- ShippingOptionSelectionViewController
- PaymentMethodSelectionViewController

BUG=602666

Review-Url: https://codereview.chromium.org/2826713002 Cr-Commit-Position: refs/heads/master@{#466033}

5b23f58 [Payment Request] Refactors the remaining selector view controllers
ios/chrome/browser/payments/BUILD.gn | 12 +-
.../payment_method_selection_coordinator.h | 4 +-
.../payment_method_selection_coordinator.mm | 132 +++++++------
...ayment_method_selection_coordinator_unittest.mm | 35 ++--
.../payments/payment_method_selection_mediator.h | 29 +++
.../payments/payment_method_selection_mediator.mm | 121 ++++++++++++
.../payment_method_selection_view_controller.h | 63 ------
.../payment_method_selection_view_controller.mm | 213 --------------------
...ment_method_selection_view_controller_actions.h | 17 --
...nt_method_selection_view_controller_unittest.mm | 94 ---------
.../payment_request_selector_view_controller.h | 10 +-
.../payment_request_selector_view_controller.mm | 15 +-
.../shipping_address_selection_coordinator.mm | 8 +-
.../shipping_address_selection_mediator.mm | 2 +-
.../shipping_option_selection_coordinator.h | 4 +-
.../shipping_option_selection_coordinator.mm | 97 +++++----
...ipping_option_selection_coordinator_unittest.mm | 24 +--
.../payments/shipping_option_selection_mediator.h | 36 ++++
.../payments/shipping_option_selection_mediator.mm | 102 ++++++++++
.../shipping_option_selection_view_controller.h | 65 ------
.../shipping_option_selection_view_controller.mm | 218 ---------------------
...ping_option_selection_view_controller_actions.h | 17 --
...ng_option_selection_view_controller_unittest.mm | 94 ---------
23 files changed, 487 insertions(+), 925 deletions(-)

Upstream: git.chromium.org


  • Share