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

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

Issue 2747943004: [Web Payments] Add the shipping options sheet. (Closed)
Patch Set: Address comments. Created 3 years, 9 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 71e42202008b4170494a8aa32b24410ac37bb69b..7242a75c5f0d0b6bcb8a858450e7c2d0f94d3f72 100644
--- a/chrome/browser/ui/views/payments/payment_request_dialog_view.cc
+++ b/chrome/browser/ui/views/payments/payment_request_dialog_view.cc
@@ -13,6 +13,7 @@
#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/profile_list_view_controller.h"
+#include "chrome/browser/ui/views/payments/shipping_option_view_controller.h"
#include "components/constrained_window/constrained_window_views.h"
#include "components/payments/content/payment_request.h"
#include "content/public/browser/browser_thread.h"
@@ -140,6 +141,14 @@ void PaymentRequestDialogView::ShowShippingProfileSheet() {
/* animate = */ true);
}
+void PaymentRequestDialogView::ShowShippingOptionSheet() {
+ view_stack_.Push(
+ CreateViewAndInstallController(
+ base::MakeUnique<ShippingOptionViewController>(request_, this),
+ &controller_map_),
+ /* animate = */ true);
+}
+
void PaymentRequestDialogView::ShowCreditCardEditor() {
view_stack_.Push(
CreateViewAndInstallController(

Powered by Google App Engine
This is Rietveld 408576698