| // 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/interface.h.tmpl |
| |
| // clang-format off |
| #ifndef V8PaymentRequest_h |
| #define V8PaymentRequest_h |
| |
| #include "bindings/core/v8/GeneratedCodeHelper.h" |
| #include "bindings/core/v8/NativeValueTraits.h" |
| #include "bindings/core/v8/ScriptWrappable.h" |
| #include "bindings/core/v8/ToV8ForCore.h" |
| #include "bindings/core/v8/V8BindingForCore.h" |
| #include "bindings/core/v8/V8DOMWrapper.h" |
| #include "bindings/core/v8/V8EventTarget.h" |
| #include "bindings/core/v8/WrapperTypeInfo.h" |
| #include "modules/ModulesExport.h" |
| #include "modules/payments/PaymentRequest.h" |
| #include "platform/heap/Handle.h" |
| |
| namespace blink { |
| |
| class V8PaymentRequest { |
| STATIC_ONLY(V8PaymentRequest); |
| public: |
| MODULES_EXPORT static bool hasInstance(v8::Local<v8::Value>, v8::Isolate*); |
| static v8::Local<v8::Object> findInstanceInPrototypeChain(v8::Local<v8::Value>, v8::Isolate*); |
| MODULES_EXPORT static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*, const DOMWrapperWorld&); |
| static PaymentRequest* toImpl(v8::Local<v8::Object> object) { |
| return ToScriptWrappable(object)->ToImpl<PaymentRequest>(); |
| } |
| MODULES_EXPORT static PaymentRequest* toImplWithTypeCheck(v8::Isolate*, v8::Local<v8::Value>); |
| MODULES_EXPORT static const WrapperTypeInfo wrapperTypeInfo; |
| static void Trace(Visitor* visitor, ScriptWrappable* scriptWrappable) { |
| visitor->Trace(scriptWrappable->ToImpl<PaymentRequest>()); |
| } |
| static void TraceWrappers(WrapperVisitor* visitor, ScriptWrappable* scriptWrappable) { |
| visitor->TraceWrappers(scriptWrappable->ToImpl<PaymentRequest>()); |
| } |
| static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
| static const int eventListenerCacheIndex = kV8DefaultWrapperInternalFieldCount + 0; |
| static const int internalFieldCount = kV8DefaultWrapperInternalFieldCount + 1; |
| |
| // Callback functions |
| |
| MODULES_EXPORT static void idAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
| MODULES_EXPORT static void shippingAddressAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
| MODULES_EXPORT static void shippingOptionAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
| MODULES_EXPORT static void shippingTypeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
| MODULES_EXPORT static void onshippingaddresschangeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
| MODULES_EXPORT static void onshippingaddresschangeAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
| MODULES_EXPORT static void onshippingoptionchangeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
| MODULES_EXPORT static void onshippingoptionchangeAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
| |
| MODULES_EXPORT static void showMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
| MODULES_EXPORT static void abortMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
| MODULES_EXPORT static void canMakePaymentMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
| }; |
| |
| template <> |
| struct NativeValueTraits<PaymentRequest> : public NativeValueTraitsBase<PaymentRequest> { |
| MODULES_EXPORT static PaymentRequest* NativeValue(v8::Isolate*, v8::Local<v8::Value>, ExceptionState&); |
| }; |
| |
| template <> |
| struct V8TypeOf<PaymentRequest> { |
| typedef V8PaymentRequest Type; |
| }; |
| |
| } // namespace blink |
| |
| #endif // V8PaymentRequest_h |