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

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

Issue 2805263003: [Payments] Selecting incomplete items will open editors (Closed)
Patch Set: fix ios test for realz Created 3 years, 8 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.h
diff --git a/chrome/browser/ui/views/payments/payment_request_dialog_view.h b/chrome/browser/ui/views/payments/payment_request_dialog_view.h
index 0e1eca705dd64c06aed90f166cc1437238330d9f..b79c877ad70055ec11a128cafb8214193119b1ba 100644
--- a/chrome/browser/ui/views/payments/payment_request_dialog_view.h
+++ b/chrome/browser/ui/views/payments/payment_request_dialog_view.h
@@ -15,6 +15,11 @@
#include "ui/views/controls/throbber.h"
#include "ui/views/window/dialog_delegate.h"
+namespace autofill {
+class AutofillProfile;
+class CreditCard;
+} // namespace autofill
+
namespace payments {
class PaymentRequest;
@@ -93,8 +98,10 @@ class PaymentRequestDialogView : public views::DialogDelegateView,
void ShowShippingProfileSheet();
void ShowPaymentMethodSheet();
void ShowShippingOptionSheet();
- void ShowCreditCardEditor();
- void ShowShippingAddressEditor();
+ // |credit_card| is the card to be edited, or nullptr for adding a card.
+ void ShowCreditCardEditor(autofill::CreditCard* credit_card = nullptr);
+ // |profile| is the address to be edited, or nullptr for adding an address.
+ void ShowShippingAddressEditor(autofill::AutofillProfile* profile = nullptr);
void EditorViewUpdated();
void ShowCvcUnmaskPrompt(

Powered by Google App Engine
This is Rietveld 408576698