Commit d5719d0c authored by Mathias Carlen's avatar Mathias Carlen Committed by Commit Bot

[Autofill Assistant] Payment Request UI tweaks.

 - Update the status message with the PR prompt.
 - The progress bar should pulse when the PR is shown.

R=arbesser@google.com

Bug: 806868
Change-Id: I00e8ec07cc19c06bd13f49116955f0e09e422dd9
Reviewed-on: https://chromium-review.googlesource.com/c/1337494Reviewed-by: default avatarStephane Zermatten <szermatt@chromium.org>
Commit-Queue: Mathias Carlen <mcarlen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#608346}
parent 3099a217
...@@ -787,6 +787,7 @@ class AutofillAssistantUiDelegate { ...@@ -787,6 +787,7 @@ class AutofillAssistantUiDelegate {
// Make sure we wrap content in the container. // Make sure we wrap content in the container.
mBottomBarAnimations.setBottomBarHeightToWrapContent(); mBottomBarAnimations.setBottomBarHeightToWrapContent();
mPaymentRequest.show(mCarouselScroll, callback); mPaymentRequest.show(mCarouselScroll, callback);
enableProgressBarPulsing();
} }
/** Close and destroy the payment request UI. */ /** Close and destroy the payment request UI. */
...@@ -794,5 +795,6 @@ class AutofillAssistantUiDelegate { ...@@ -794,5 +795,6 @@ class AutofillAssistantUiDelegate {
mPaymentRequest.close(); mPaymentRequest.close();
mPaymentRequest = null; mPaymentRequest = null;
mBottomBarAnimations.setBottomBarHeightToFixed(); mBottomBarAnimations.setBottomBarHeightToFixed();
disableProgressBarPulsing();
} }
} }
...@@ -57,6 +57,9 @@ void GetPaymentInformationAction::InternalProcessAction( ...@@ -57,6 +57,9 @@ void GetPaymentInformationAction::InternalProcessAction(
weak_ptr_factory_.GetWeakPtr(), delegate, weak_ptr_factory_.GetWeakPtr(), delegate,
std::move(get_payment_information), std::move(callback)), std::move(get_payment_information), std::move(callback)),
get_payment_information.prompt(), supported_basic_card_networks); get_payment_information.prompt(), supported_basic_card_networks);
if (get_payment_information.has_prompt()) {
delegate->ShowStatusMessage(get_payment_information.prompt());
}
} }
void GetPaymentInformationAction::OnGetPaymentInformation( void GetPaymentInformationAction::OnGetPaymentInformation(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment