• Liquan(Max) Gu's avatar
    [PaymentHandler] Open a blank PaymentHandler bottom-sheet behind a flag · 726b6ba2
    Liquan(Max) Gu authored
    The PaymentHandler UI is opened as an ChromeCustomTab Activity. Going
    forwards, we will refactor the Payment Handler to make it based on
    bottom-sheet.
    
    For this purpose, this CL adds:
    * A blank bottom-sheet-based Payment Handler UI.
    * "ScrollToExpandPaymentHandler" to enable the incomplete feature while
    we are still developing the refactored solution.
    
    Here's the expected change after the patch:
    
    Flag:
    When this flag is disabled (default), Payment Handler is unchanged.
    When this flag is enabled (--enable-features=ScrollToExpandPaymentHandler),
    the Payment Handler UI is changed to blank widget.
    
    The Payment Handler bottom-sheet:
    The Payment Handler UI will be displayed as an empty bottom-sheet. The
    swipe-down can dismissing the UI; the swipe-up can maximize the UI.
    
    Bug: 999196
    
    Change-Id: Id839dfe63a9473243c5864295c5ae435ee725e55
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1832702
    Commit-Queue: Liquan (Max) Gu <maxlg@chromium.org>
    Reviewed-by: default avatarRouslan Solomakhin <rouslan@chromium.org>
    Reviewed-by: default avatarMatthew Jones <mdjones@chromium.org>
    Reviewed-by: default avatarAndrew Grieve <agrieve@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#702998}
    726b6ba2
chrome_feature_list.cc 26.8 KB