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

Unified Diff: third_party/WebKit/Source/modules/payments/PaymentRequest.h

Issue 2545523004: Rename canMakeActivePayment to canMakePayment (Closed)
Patch Set: Rebase Created 4 years 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: third_party/WebKit/Source/modules/payments/PaymentRequest.h
diff --git a/third_party/WebKit/Source/modules/payments/PaymentRequest.h b/third_party/WebKit/Source/modules/payments/PaymentRequest.h
index f1c43c185897e750238c0521c55986613e4bc0d0..9d74c232cb90936029ba9e0bdf7e61a20674f873 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentRequest.h
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequest.h
@@ -67,7 +67,7 @@ class MODULES_EXPORT PaymentRequest final
DEFINE_ATTRIBUTE_EVENT_LISTENER(shippingaddresschange);
DEFINE_ATTRIBUTE_EVENT_LISTENER(shippingoptionchange);
- ScriptPromise canMakeActivePayment(ScriptState*);
+ ScriptPromise canMakePayment(ScriptState*);
// ScriptWrappable:
bool hasPendingActivity() const override;
@@ -105,8 +105,8 @@ class MODULES_EXPORT PaymentRequest final
void OnError(payments::mojom::blink::PaymentErrorReason) override;
void OnComplete() override;
void OnAbort(bool abortedSuccessfully) override;
- void OnCanMakeActivePayment(
- payments::mojom::blink::ActivePaymentQueryResult) override;
+ void OnCanMakePayment(
+ payments::mojom::blink::CanMakePaymentQueryResult) override;
void onCompleteTimeout(TimerBase*);
@@ -120,7 +120,7 @@ class MODULES_EXPORT PaymentRequest final
Member<ScriptPromiseResolver> m_showResolver;
Member<ScriptPromiseResolver> m_completeResolver;
Member<ScriptPromiseResolver> m_abortResolver;
- Member<ScriptPromiseResolver> m_canMakeActivePaymentResolver;
+ Member<ScriptPromiseResolver> m_canMakePaymentResolver;
payments::mojom::blink::PaymentRequestPtr m_paymentProvider;
mojo::Binding<payments::mojom::blink::PaymentRequestClient> m_clientBinding;
Timer<PaymentRequest> m_completeTimer;

Powered by Google App Engine
This is Rietveld 408576698