[Payment Request] UI for iOS Payment Request Native Apps

Desktop / Chromium - Randall Raymond [google.com] - 9 August 2017 12:28 EDT

This CL puts together all the UI requirements for displaying native apps for users on Payment Request:

1) Shows a spinner in Payment Request UI until all payment methods are loaded 2) Populates the payment method page with both autofill payment instruments and iOS payment instruments 3) Displays the appropriate icon if the instrument is an iOS payment instrument. 4) Adds a flag such that native payment app UI is only visible when this flag is enabled.

Bug: 748556 Change-Id: Ie94db646af5c115bbc3f5a67edfcfaf1be056f60 Reviewed-on: https://chromium-review.googlesource.com/602500 Commit-Queue: Randall Raymond

59766ac [Payment Request] UI for iOS Payment Request Native Apps
components/payments/core/features.cc | 3 +
components/payments/core/features.h | 3 +
ios/chrome/browser/about_flags.mm | 3 +
ios/chrome/browser/ios_chrome_flag_descriptions.cc | 5 ++
ios/chrome/browser/ios_chrome_flag_descriptions.h | 5 ++
.../browser/payments/ios_payment_instrument.mm | 5 +-
ios/chrome/browser/payments/payment_request.h | 49 ++++++++++---
ios/chrome/browser/payments/payment_request.mm | 81 ++++++++++++++++------
.../browser/payments/payment_request_unittest.mm | 10 +++
ios/chrome/browser/payments/test_payment_request.h | 5 ++
.../browser/payments/test_payment_request.mm | 9 +++
ios/chrome/browser/ui/payments/BUILD.gn | 1 +
.../payments/payment_method_selection_mediator.mm | 33 +++++----
.../ui/payments/payment_request_coordinator.h | 4 ++
.../ui/payments/payment_request_coordinator.mm | 11 ++-
.../browser/ui/payments/payment_request_manager.mm | 19 +++--
.../ui/payments/payment_request_mediator.mm | 16 ++++-
.../ui/payments/payment_request_view_controller.h | 3 +
.../ui/payments/payment_request_view_controller.mm | 8 ++-
19 files changed, 217 insertions(+), 56 deletions(-)

Upstream: git.chromium.org


  • Share