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

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

Issue 1773813007: blink: Rename modules/ method to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-modules: rebase-fixes Created 4 years, 9 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 PaymentRequest_h 5 #ifndef PaymentRequest_h
6 #define PaymentRequest_h 6 #define PaymentRequest_h
7 7
8 #include "bindings/core/v8/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptValue.h" 9 #include "bindings/core/v8/ScriptValue.h"
10 #include "bindings/core/v8/ScriptWrappable.h" 10 #include "bindings/core/v8/ScriptWrappable.h"
(...skipping 20 matching lines...) Expand all
31 public: 31 public:
32 static PaymentRequest* create(ScriptState*, const Vector<String>& supportedM ethods, const PaymentDetails&, ExceptionState&); 32 static PaymentRequest* create(ScriptState*, const Vector<String>& supportedM ethods, const PaymentDetails&, ExceptionState&);
33 static PaymentRequest* create(ScriptState*, const Vector<String>& supportedM ethods, const PaymentDetails&, const PaymentOptions&, ExceptionState&); 33 static PaymentRequest* create(ScriptState*, const Vector<String>& supportedM ethods, const PaymentDetails&, const PaymentOptions&, ExceptionState&);
34 static PaymentRequest* create(ScriptState*, const Vector<String>& supportedM ethods, const PaymentDetails&, const PaymentOptions&, const ScriptValue& data, E xceptionState&); 34 static PaymentRequest* create(ScriptState*, const Vector<String>& supportedM ethods, const PaymentDetails&, const PaymentOptions&, const ScriptValue& data, E xceptionState&);
35 35
36 virtual ~PaymentRequest(); 36 virtual ~PaymentRequest();
37 37
38 ScriptPromise show(ScriptState*); 38 ScriptPromise show(ScriptState*);
39 void abort(); 39 void abort();
40 40
41 ShippingAddress* shippingAddress() const { return m_shippingAddress.get(); } 41 ShippingAddress* getShippingAddress() const { return m_shippingAddress.get() ; }
42 const String& shippingOption() const { return m_shippingOption; } 42 const String& shippingOption() const { return m_shippingOption; }
43 43
44 DEFINE_ATTRIBUTE_EVENT_LISTENER(shippingaddresschange); 44 DEFINE_ATTRIBUTE_EVENT_LISTENER(shippingaddresschange);
45 DEFINE_ATTRIBUTE_EVENT_LISTENER(shippingoptionchange); 45 DEFINE_ATTRIBUTE_EVENT_LISTENER(shippingoptionchange);
46 46
47 // EventTargetWithInlineData: 47 // EventTargetWithInlineData:
48 const AtomicString& interfaceName() const override; 48 const AtomicString& interfaceName() const override;
49 ExecutionContext* executionContext() const override; 49 ExecutionContext* getExecutionContext() const override;
50 50
51 DECLARE_TRACE(); 51 DECLARE_TRACE();
52 52
53 private: 53 private:
54 PaymentRequest(ScriptState*, const Vector<String>& supportedMethods, const P aymentDetails&, const PaymentOptions&, const ScriptValue& data, ExceptionState&) ; 54 PaymentRequest(ScriptState*, const Vector<String>& supportedMethods, const P aymentDetails&, const PaymentOptions&, const ScriptValue& data, ExceptionState&) ;
55 55
56 RefPtr<ScriptState> m_scriptState; 56 RefPtr<ScriptState> m_scriptState;
57 Vector<String> m_supportedMethods; 57 Vector<String> m_supportedMethods;
58 PaymentDetails m_details; 58 PaymentDetails m_details;
59 PaymentOptions m_options; 59 PaymentOptions m_options;
60 String m_stringifiedData; 60 String m_stringifiedData;
61 Member<ShippingAddress> m_shippingAddress; 61 Member<ShippingAddress> m_shippingAddress;
62 String m_shippingOption; 62 String m_shippingOption;
63 }; 63 };
64 64
65 } // namespace blink 65 } // namespace blink
66 66
67 #endif // PaymentRequest_h 67 #endif // PaymentRequest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698