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

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

Issue 2054823002: PaymentRequest: complete() method should take PaymentComplete enum value. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/PaymentCompleter.h
diff --git a/third_party/WebKit/Source/modules/payments/PaymentCompleter.h b/third_party/WebKit/Source/modules/payments/PaymentCompleter.h
index 284d2a16d9e36bd5fd29e549b4ec85daff423cc3..52b44019229f26facc5d78df87aaab954ad01023 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentCompleter.h
+++ b/third_party/WebKit/Source/modules/payments/PaymentCompleter.h
@@ -11,11 +11,17 @@
namespace blink {
+enum PaymentComplete {
please use gerrit instead 2016/06/10 19:15:35 Doesn't PaymentResponse.idl generate the enum for
please use gerrit instead 2016/06/13 15:28:10 Nevermind, ignore this comment.
+ Success,
+ Fail,
+ Unknown
+};
+
class ScriptState;
class MODULES_EXPORT PaymentCompleter : public GarbageCollectedMixin {
public:
- virtual ScriptPromise complete(ScriptState*, bool success) = 0;
+ virtual ScriptPromise complete(ScriptState*, const PaymentComplete result) = 0;
protected:
virtual ~PaymentCompleter() {}

Powered by Google App Engine
This is Rietveld 408576698