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

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

Issue 2805263003: [Payments] Selecting incomplete items will open editors (Closed)
Patch Set: Initial 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 85db90324b11253965d6d63cadcc8c9bc9a1d168..63868e2a52c05ac46a5c6039e02b43ad90f4856c 100644
--- a/chrome/browser/ui/views/payments/payment_request_dialog_view.h
+++ b/chrome/browser/ui/views/payments/payment_request_dialog_view.h
@@ -14,6 +14,11 @@
#include "components/payments/content/payment_request_spec.h"
#include "ui/views/window/dialog_delegate.h"
+namespace autofill {
+class AutofillProfile;
+class CreditCard;
+} // namespace autofill
+
namespace payments {
class PaymentRequest;
@@ -90,8 +95,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