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

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

Issue 2725623004: [Web Payments] Add the contact info screen. (Closed)
Patch Set: Address comments. Created 3 years, 10 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 d6a122e5ad73950e18d6ad7ab4cffd4a46c5285c..c87db39dd7f1577dd2bdb2ae05f6057177e4bab4 100644
--- a/chrome/browser/ui/views/payments/payment_request_dialog_view.cc
+++ b/chrome/browser/ui/views/payments/payment_request_dialog_view.cc
@@ -8,6 +8,7 @@
#include "base/logging.h"
#include "base/memory/ptr_util.h"
+#include "chrome/browser/ui/views/payments/contact_info_view_controller.h"
#include "chrome/browser/ui/views/payments/credit_card_editor_view_controller.h"
#include "chrome/browser/ui/views/payments/order_summary_view_controller.h"
#include "chrome/browser/ui/views/payments/payment_method_view_controller.h"
@@ -96,6 +97,16 @@ void PaymentRequestDialogView::GoBack() {
observer_for_testing_->OnBackNavigation();
}
+void PaymentRequestDialogView::ShowContactInfoSheet() {
+ view_stack_.Push(
+ CreateViewAndInstallController(
+ base::MakeUnique<ContactInfoViewController>(request_, this),
+ &controller_map_),
+ /* animate */ true);
+ if (observer_for_testing_)
+ observer_for_testing_->OnContactInfoOpened();
+}
+
void PaymentRequestDialogView::ShowOrderSummary() {
view_stack_.Push(
CreateViewAndInstallController(

Powered by Google App Engine
This is Rietveld 408576698