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

Side by Side Diff: third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.h

Issue 1931233002: Implement PaymentRequestUpdateEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@explicit-shipping
Patch Set: Rebase 1 Created 4 years, 7 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef PaymentRequestUpdateEvent_h
6 #define PaymentRequestUpdateEvent_h
7
8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptWrappable.h"
10 #include "core/events/Event.h"
11 #include "modules/ModulesExport.h"
12 #include "platform/heap/Handle.h"
13
14 namespace blink {
15
16 class PaymentRequestUpdateEventInit;
17 class PaymentUpdater;
18
19 class MODULES_EXPORT PaymentRequestUpdateEvent final : public Event {
20 DEFINE_WRAPPERTYPEINFO();
21
22 public:
23 ~PaymentRequestUpdateEvent() override;
24
25 static PaymentRequestUpdateEvent* create();
26 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.
27 static PaymentRequestUpdateEvent* create(const AtomicString& type, const Pay mentRequestUpdateEventInit&);
28
29 void setPaymentDetailsUpdater(PaymentUpdater*);
30
31 void updateWith(ScriptState*, ScriptPromise);
32
33 DECLARE_VIRTUAL_TRACE();
34
35 private:
36 PaymentRequestUpdateEvent();
37 explicit PaymentRequestUpdateEvent(const AtomicString& type);
38
39 Member<PaymentUpdater> m_updater;
40 };
41
42 } // namespace blink
43
44 #endif // PaymentRequestUpdateEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698