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

Unified Diff: third_party/WebKit/Source/modules/payments/PaymentRequestEvent.cpp

Issue 2665583002: PaymentApp: Rename PaymentAppRequestData to PaymentAppRequest. (Closed)
Patch Set: PaymentApp: Rename PaymentAppRequestData to PaymentAppRequest. Created 3 years, 11 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: third_party/WebKit/Source/modules/payments/PaymentRequestEvent.cpp
diff --git a/third_party/WebKit/Source/modules/payments/PaymentRequestEvent.cpp b/third_party/WebKit/Source/modules/payments/PaymentRequestEvent.cpp
index 4ad5a30371ba7c60b916d7d2dabb60acecee4a22..14fcf1dbc8c2af1c0ae9181aef8e1272dafd5f11 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentRequestEvent.cpp
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequestEvent.cpp
@@ -10,9 +10,9 @@ namespace blink {
PaymentRequestEvent* PaymentRequestEvent::create(
const AtomicString& type,
- const PaymentAppRequestData& data,
+ const PaymentAppRequest& appRequest,
WaitUntilObserver* observer) {
- return new PaymentRequestEvent(type, data, observer);
+ return new PaymentRequestEvent(type, appRequest, observer);
}
PaymentRequestEvent::~PaymentRequestEvent() {}
@@ -21,8 +21,8 @@ const AtomicString& PaymentRequestEvent::interfaceName() const {
return EventNames::PaymentRequestEvent;
}
-void PaymentRequestEvent::data(PaymentAppRequestData& data) const {
- data = m_data;
+void PaymentRequestEvent::appRequest(PaymentAppRequest& appRequest) const {
+ appRequest = m_appRequest;
}
void PaymentRequestEvent::respondWith(ScriptPromise) {
@@ -30,13 +30,14 @@ void PaymentRequestEvent::respondWith(ScriptPromise) {
}
DEFINE_TRACE(PaymentRequestEvent) {
- visitor->trace(m_data);
+ visitor->trace(m_appRequest);
ExtendableEvent::trace(visitor);
}
PaymentRequestEvent::PaymentRequestEvent(const AtomicString& type,
- const PaymentAppRequestData& data,
+ const PaymentAppRequest& appRequest,
WaitUntilObserver* observer)
- : ExtendableEvent(type, ExtendableEventInit(), observer), m_data(data) {}
+ : ExtendableEvent(type, ExtendableEventInit(), observer),
+ m_appRequest(appRequest) {}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698