| // 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 V8CustomEvent_h |
| #define V8CustomEvent_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/V8Event.h" |
| #include "bindings/core/v8/WrapperTypeInfo.h" |
| #include "core/CoreExport.h" |
| #include "core/events/CustomEvent.h" |
| #include "platform/heap/Handle.h" |
| |
| namespace blink { |
| |
| class V8CustomEvent { |
| STATIC_ONLY(V8CustomEvent); |
| public: |
| CORE_EXPORT static bool hasInstance(v8::Local<v8::Value>, v8::Isolate*); |
| static v8::Local<v8::Object> findInstanceInPrototypeChain(v8::Local<v8::Value>, v8::Isolate*); |
| CORE_EXPORT static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*, const DOMWrapperWorld&); |
| static CustomEvent* toImpl(v8::Local<v8::Object> object) { |
| return ToScriptWrappable(object)->ToImpl<CustomEvent>(); |
| } |
| CORE_EXPORT static CustomEvent* toImplWithTypeCheck(v8::Isolate*, v8::Local<v8::Value>); |
| CORE_EXPORT static const WrapperTypeInfo wrapperTypeInfo; |
| static void Trace(Visitor* visitor, ScriptWrappable* scriptWrappable) { |
| visitor->Trace(scriptWrappable->ToImpl<CustomEvent>()); |
| } |
| static void TraceWrappers(WrapperVisitor* visitor, ScriptWrappable* scriptWrappable) { |
| visitor->TraceWrappers(scriptWrappable->ToImpl<CustomEvent>()); |
| } |
| static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
| static const int internalFieldCount = kV8DefaultWrapperInternalFieldCount + 0; |
| |
| // Callback functions |
| |
| CORE_EXPORT static void detailAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
| CORE_EXPORT static void isTrustedAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
| |
| CORE_EXPORT static void initCustomEventMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
| }; |
| |
| template <> |
| struct NativeValueTraits<CustomEvent> : public NativeValueTraitsBase<CustomEvent> { |
| CORE_EXPORT static CustomEvent* NativeValue(v8::Isolate*, v8::Local<v8::Value>, ExceptionState&); |
| }; |
| |
| template <> |
| struct V8TypeOf<CustomEvent> { |
| typedef V8CustomEvent Type; |
| }; |
| |
| } // namespace blink |
| |
| #endif // V8CustomEvent_h |