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

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

Issue 2893823004: [Payments] Implement openWindow for service worker based payment handler (Closed)
Patch Set: use CompleteURL Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PaymentRequestEvent_h 5 #ifndef PaymentRequestEvent_h
6 #define PaymentRequestEvent_h 6 #define PaymentRequestEvent_h
7 7
8 #include "modules/EventModules.h" 8 #include "modules/EventModules.h"
9 #include "modules/payments/PaymentAppRequest.h" 9 #include "modules/payments/PaymentAppRequest.h"
10 #include "modules/serviceworkers/ExtendableEvent.h" 10 #include "modules/serviceworkers/ExtendableEvent.h"
(...skipping 21 matching lines...) Expand all
32 const AtomicString& InterfaceName() const override; 32 const AtomicString& InterfaceName() const override;
33 33
34 const String& topLevelOrigin() const; 34 const String& topLevelOrigin() const;
35 const String& paymentRequestOrigin() const; 35 const String& paymentRequestOrigin() const;
36 const String& paymentRequestId() const; 36 const String& paymentRequestId() const;
37 const HeapVector<PaymentMethodData>& methodData() const; 37 const HeapVector<PaymentMethodData>& methodData() const;
38 void total(PaymentItem& value) const; 38 void total(PaymentItem& value) const;
39 const HeapVector<PaymentDetailsModifier>& modifiers() const; 39 const HeapVector<PaymentDetailsModifier>& modifiers() const;
40 const String& instrumentKey() const; 40 const String& instrumentKey() const;
41 41
42 ScriptPromise openWindow(ScriptState*, const String& url);
42 void respondWith(ScriptState*, ScriptPromise, ExceptionState&); 43 void respondWith(ScriptState*, ScriptPromise, ExceptionState&);
43 44
44 DECLARE_VIRTUAL_TRACE(); 45 DECLARE_VIRTUAL_TRACE();
45 46
46 private: 47 private:
47 PaymentRequestEvent(const AtomicString& type, 48 PaymentRequestEvent(const AtomicString& type,
48 const PaymentAppRequest&, 49 const PaymentAppRequest&,
49 RespondWithObserver*, 50 RespondWithObserver*,
50 WaitUntilObserver*); 51 WaitUntilObserver*);
51 52
52 String top_level_origin_; 53 String top_level_origin_;
53 String payment_request_origin_; 54 String payment_request_origin_;
54 String payment_request_id_; 55 String payment_request_id_;
55 HeapVector<PaymentMethodData> method_data_; 56 HeapVector<PaymentMethodData> method_data_;
56 PaymentItem total_; 57 PaymentItem total_;
57 HeapVector<PaymentDetailsModifier> modifiers_; 58 HeapVector<PaymentDetailsModifier> modifiers_;
58 String instrument_key_; 59 String instrument_key_;
59 60
60 Member<RespondWithObserver> observer_; 61 Member<RespondWithObserver> observer_;
61 }; 62 };
62 63
63 } // namespace blink 64 } // namespace blink
64 65
65 #endif // PaymentRequestEvent_h 66 #endif // PaymentRequestEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698