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

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

Issue 2770193003: Implement request id in PaymentDetailsInit (Closed)
Patch Set: Rebase once more since mojom file moved 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: 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 f3c13197dccb96aa586e5ba6dcf85a9e084b1cb7..a36b56bc1377c8908d0211f181fb5fe73194827e 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentRequest.h
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequest.h
@@ -61,6 +61,7 @@ class MODULES_EXPORT PaymentRequest final
ScriptPromise show(ScriptState*);
ScriptPromise abort(ScriptState*);
+ const String& id() const { return id_; }
PaymentAddress* getShippingAddress() const { return shipping_address_.Get(); }
const String& shippingOption() const { return shipping_option_; }
const String& shippingType() const { return shipping_type_; }
@@ -116,6 +117,7 @@ class MODULES_EXPORT PaymentRequest final
PaymentOptions options_;
Member<PaymentAddress> shipping_address_;
+ String id_;
String shipping_option_;
String shipping_type_;
Member<ScriptPromiseResolver> show_resolver_;

Powered by Google App Engine
This is Rietveld 408576698