| // Copyright 2014 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. |
| |
| // This file has been auto-generated by code_generator_v8.py. |
| // DO NOT MODIFY! |
| |
| // This file has been generated from the Jinja2 template in |
| // third_party/WebKit/Source/bindings/templates/dictionary_impl.h.tmpl |
| |
| // clang-format off |
| #ifndef PaymentDetailsInit_h |
| #define PaymentDetailsInit_h |
| |
| #include "modules/ModulesExport.h" |
| #include "modules/payments/PaymentDetailsBase.h" |
| #include "modules/payments/PaymentItem.h" |
| #include "platform/heap/Handle.h" |
| #include "platform/wtf/text/WTFString.h" |
| |
| namespace blink { |
| |
| class MODULES_EXPORT PaymentDetailsInit : public PaymentDetailsBase { |
| DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
| public: |
| PaymentDetailsInit(); |
| virtual ~PaymentDetailsInit(); |
| PaymentDetailsInit(const PaymentDetailsInit&); |
| PaymentDetailsInit& operator=(const PaymentDetailsInit&); |
| |
| bool hasId() const; |
| String id() const; |
| void setId(String); |
| |
| bool hasTotal() const; |
| const PaymentItem& total() const; |
| void setTotal(const PaymentItem&); |
| |
| v8::Local<v8::Value> ToV8Impl(v8::Local<v8::Object>, v8::Isolate*) const override; |
| DECLARE_VIRTUAL_TRACE(); |
| |
| private: |
| bool m_hasTotal = false; |
| |
| String m_id; |
| PaymentItem m_total; |
| |
| friend class V8PaymentDetailsInit; |
| }; |
| |
| } // namespace blink |
| |
| #endif // PaymentDetailsInit_h |