Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1065)

Unified Diff: chrome/browser/ui/views/payments/payment_request_dialog_view.cc

Issue 2643643006: [WebPayments] Adding something resembling Shipping Address list (Closed)
Patch Set: Further rebasing Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/payments/payment_request_dialog_view.cc
diff --git a/chrome/browser/ui/views/payments/payment_request_dialog_view.cc b/chrome/browser/ui/views/payments/payment_request_dialog_view.cc
index 355a8a92292fd0277492558d7283b074d385618e..8abd3608c5b96b60958eabbb573674f4a41255e9 100644
--- a/chrome/browser/ui/views/payments/payment_request_dialog_view.cc
+++ b/chrome/browser/ui/views/payments/payment_request_dialog_view.cc
@@ -11,10 +11,10 @@
#include "chrome/browser/ui/views/payments/order_summary_view_controller.h"
#include "chrome/browser/ui/views/payments/payment_method_view_controller.h"
#include "chrome/browser/ui/views/payments/payment_sheet_view_controller.h"
+#include "chrome/browser/ui/views/payments/shipping_list_view_controller.h"
#include "chrome/grit/generated_resources.h"
#include "components/constrained_window/constrained_window_views.h"
#include "components/payments/payment_request.h"
-#include "components/payments/payment_request_dialog.h"
#include "content/public/browser/browser_thread.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/views/layout/fill_layout.h"
@@ -101,13 +101,19 @@ void PaymentRequestDialogView::GoBack() {
void PaymentRequestDialogView::ShowOrderSummary() {
view_stack_.Push(CreateViewAndInstallController<OrderSummaryViewController>(
&controller_map_, request_, this),
- true);
+ /* animate = */ true);
}
void PaymentRequestDialogView::ShowPaymentMethodSheet() {
view_stack_.Push(CreateViewAndInstallController<PaymentMethodViewController>(
&controller_map_, request_, this),
- true);
+ /* animate = */ true);
+}
+
+void PaymentRequestDialogView::ShowShippingListSheet() {
+ view_stack_.Push(CreateViewAndInstallController<ShippingListViewController>(
+ &controller_map_, request_, this),
+ /* animate = */ true);
}
void PaymentRequestDialogView::ShowDialog() {
@@ -122,7 +128,7 @@ void PaymentRequestDialogView::CloseDialog() {
void PaymentRequestDialogView::ShowInitialPaymentSheet() {
view_stack_.Push(CreateViewAndInstallController<PaymentSheetViewController>(
&controller_map_, request_, this),
- false);
+ /* animate = */ false);
if (observer_for_testing_)
observer_for_testing_->OnDialogOpened();
}

Powered by Google App Engine
This is Rietveld 408576698