| // 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 from the Jinja2 template |
| // third_party/blink/renderer/bindings/templates/interface.h.tmpl |
| // by the script code_generator_v8.py. |
| // DO NOT MODIFY! |
| |
| // clang-format off |
| #ifndef THIRD_PARTY_BLINK_RENDERER_BINDINGS_TESTS_RESULTS_CORE_V8_TEST_INTERFACE_EVENT_TARGET_H_ |
| #define THIRD_PARTY_BLINK_RENDERER_BINDINGS_TESTS_RESULTS_CORE_V8_TEST_INTERFACE_EVENT_TARGET_H_ |
| |
| #include "third_party/blink/renderer/bindings/core/v8/generated_code_helper.h" |
| #include "third_party/blink/renderer/bindings/core/v8/native_value_traits.h" |
| #include "third_party/blink/renderer/bindings/core/v8/to_v8_for_core.h" |
| #include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_core.h" |
| #include "third_party/blink/renderer/bindings/core/v8/v8_event_target.h" |
| #include "third_party/blink/renderer/bindings/tests/idls/core/test_interface_event_target.h" |
| #include "third_party/blink/renderer/core/core_export.h" |
| #include "third_party/blink/renderer/platform/bindings/script_wrappable.h" |
| #include "third_party/blink/renderer/platform/bindings/v8_dom_wrapper.h" |
| #include "third_party/blink/renderer/platform/bindings/wrapper_type_info.h" |
| #include "third_party/blink/renderer/platform/heap/handle.h" |
| |
| namespace blink { |
| |
| class V8TestInterfaceEventTargetConstructor { |
| STATIC_ONLY(V8TestInterfaceEventTargetConstructor); |
| public: |
| static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*, const DOMWrapperWorld&); |
| static void NamedConstructorAttributeGetter(v8::Local<v8::Name> propertyName, const v8::PropertyCallbackInfo<v8::Value>& info); |
| static const WrapperTypeInfo wrapperTypeInfo; |
| }; |
| |
| class V8TestInterfaceEventTarget { |
| STATIC_ONLY(V8TestInterfaceEventTarget); |
| 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 TestInterfaceEventTarget* ToImpl(v8::Local<v8::Object> object) { |
| return ToScriptWrappable(object)->ToImpl<TestInterfaceEventTarget>(); |
| } |
| CORE_EXPORT static TestInterfaceEventTarget* ToImplWithTypeCheck(v8::Isolate*, v8::Local<v8::Value>); |
| CORE_EXPORT static const WrapperTypeInfo wrapperTypeInfo; |
| static const int internalFieldCount = kV8DefaultWrapperInternalFieldCount; |
| |
| // Callback functions |
| |
| static void InstallRuntimeEnabledFeaturesOnTemplate( |
| v8::Isolate*, |
| const DOMWrapperWorld&, |
| v8::Local<v8::FunctionTemplate> interface_template); |
| }; |
| |
| template <> |
| struct NativeValueTraits<TestInterfaceEventTarget> : public NativeValueTraitsBase<TestInterfaceEventTarget> { |
| CORE_EXPORT static TestInterfaceEventTarget* NativeValue(v8::Isolate*, v8::Local<v8::Value>, ExceptionState&); |
| CORE_EXPORT static TestInterfaceEventTarget* NullValue() { return nullptr; } |
| }; |
| |
| template <> |
| struct V8TypeOf<TestInterfaceEventTarget> { |
| typedef V8TestInterfaceEventTarget Type; |
| }; |
| |
| } // namespace blink |
| |
| #endif // THIRD_PARTY_BLINK_RENDERER_BINDINGS_TESTS_RESULTS_CORE_V8_TEST_INTERFACE_EVENT_TARGET_H_ |