Chromium Code Reviews| Index: third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.h |
| diff --git a/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.h b/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..bebd9d3b86d2d84adbf1c18b4be4dbe01b35ef3d |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.h |
| @@ -0,0 +1,44 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef PaymentRequestUpdateEvent_h |
| +#define PaymentRequestUpdateEvent_h |
| + |
| +#include "bindings/core/v8/ScriptPromise.h" |
| +#include "bindings/core/v8/ScriptWrappable.h" |
| +#include "core/events/Event.h" |
| +#include "modules/ModulesExport.h" |
| +#include "platform/heap/Handle.h" |
| + |
| +namespace blink { |
| + |
| +class PaymentRequestUpdateEventInit; |
| +class PaymentUpdater; |
| + |
| +class MODULES_EXPORT PaymentRequestUpdateEvent final : public Event { |
| + DEFINE_WRAPPERTYPEINFO(); |
| + |
| +public: |
| + ~PaymentRequestUpdateEvent() override; |
| + |
| + static PaymentRequestUpdateEvent* create(); |
| + static PaymentRequestUpdateEvent* create(const AtomicString& type); |
|
Marijn Kruisselbrink
2016/05/03 17:57:28
Do you actually need a create method that takes a
please use gerrit instead
2016/05/03 21:38:33
Done.
|
| + static PaymentRequestUpdateEvent* create(const AtomicString& type, const PaymentRequestUpdateEventInit&); |
| + |
| + void setPaymentDetailsUpdater(PaymentUpdater*); |
| + |
| + void updateWith(ScriptState*, ScriptPromise); |
| + |
| + DECLARE_VIRTUAL_TRACE(); |
| + |
| +private: |
| + PaymentRequestUpdateEvent(); |
| + explicit PaymentRequestUpdateEvent(const AtomicString& type); |
| + |
| + Member<PaymentUpdater> m_updater; |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // PaymentRequestUpdateEvent_h |