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

Unified Diff: components/payments/content/payment_request.h

Issue 2789093002: [Payments] Desktop: implement shipping address/option change (Closed)
Patch Set: fixed test 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: components/payments/content/payment_request.h
diff --git a/components/payments/content/payment_request.h b/components/payments/content/payment_request.h
index fdfec343216ffcb458396fd4930d5b742b409077..0bb25451cc2750c4daee6f62ce9b776e119dad46 100644
--- a/components/payments/content/payment_request.h
+++ b/components/payments/content/payment_request.h
@@ -55,16 +55,20 @@ class PaymentRequest : public mojom::PaymentRequest,
mojom::PaymentDetailsPtr details,
mojom::PaymentOptionsPtr options) override;
void Show() override;
- void UpdateWith(mojom::PaymentDetailsPtr details) override {}
+ void UpdateWith(mojom::PaymentDetailsPtr details) override;
void Abort() override;
void Complete(mojom::PaymentComplete result) override;
void CanMakePayment() override;
// PaymentRequestSpec::Observer:
+ void OnSpecUpdated() override {}
void OnInvalidSpecProvided() override;
// PaymentRequestState::Delegate:
void OnPaymentResponseAvailable(mojom::PaymentResponsePtr response) override;
+ void OnShippingOptionIdSelected(
+ const std::string& shipping_option_id) override;
+ void OnShippingAddressSelected(mojom::PaymentAddressPtr address) override;
// Called when the user explicitely cancelled the flow. Will send a message
// to the renderer which will indirectly destroy this object (through

Powered by Google App Engine
This is Rietveld 408576698