| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! | 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
| 6 | 6 |
| 7 #include "config.h" | 7 #include "config.h" |
| 8 #include "V8TestTypedefs.h" | 8 #include "V8TestTypedefs.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
| 11 #include "bindings/core/v8/V8DOMConfiguration.h" | 11 #include "bindings/core/v8/V8DOMConfiguration.h" |
| 12 #include "bindings/core/v8/V8HiddenValue.h" | 12 #include "bindings/core/v8/V8HiddenValue.h" |
| 13 #include "bindings/core/v8/V8ObjectConstructor.h" | 13 #include "bindings/core/v8/V8ObjectConstructor.h" |
| 14 #include "bindings/tests/v8/V8TestCallbackInterface.h" | 14 #include "bindings/tests/v8/V8TestCallbackInterface.h" |
| 15 #include "bindings/tests/v8/V8TestInterface.h" | 15 #include "bindings/tests/v8/V8TestInterface.h" |
| 16 #include "bindings/tests/v8/V8TestInterfaceEmpty.h" | 16 #include "bindings/tests/v8/V8TestInterfaceEmpty.h" |
| 17 #include "core/dom/ContextFeatures.h" | 17 #include "core/dom/ContextFeatures.h" |
| 18 #include "core/dom/Document.h" | 18 #include "core/dom/Document.h" |
| 19 #include "core/frame/LocalDOMWindow.h" | 19 #include "core/frame/LocalDOMWindow.h" |
| 20 #include "platform/RuntimeEnabledFeatures.h" | 20 #include "platform/RuntimeEnabledFeatures.h" |
| 21 #include "platform/TraceEvent.h" | 21 #include "platform/TraceEvent.h" |
| 22 #include "wtf/GetPtr.h" | 22 #include "wtf/GetPtr.h" |
| 23 #include "wtf/RefPtr.h" | 23 #include "wtf/RefPtr.h" |
| 24 | 24 |
| 25 namespace blink { | 25 namespace blink { |
| 26 | 26 |
| 27 static void initializeScriptWrappableForInterface(TestTypedefs* impl) | |
| 28 { | |
| 29 impl->setTypeInfo(&V8TestTypedefs::wrapperTypeInfo); | |
| 30 } | |
| 31 | |
| 32 } // namespace blink | |
| 33 | |
| 34 void webCoreInitializeScriptWrappableForInterface(blink::TestTypedefs* object) | |
| 35 { | |
| 36 blink::initializeScriptWrappableForInterface(object); | |
| 37 } | |
| 38 | |
| 39 namespace blink { | |
| 40 | |
| 41 const WrapperTypeInfo V8TestTypedefs::wrapperTypeInfo = { gin::kEmbedderBlink, V
8TestTypedefs::domTemplate, V8TestTypedefs::refObject, V8TestTypedefs::derefObje
ct, V8TestTypedefs::createPersistentHandle, 0, 0, 0, V8TestTypedefs::installCond
itionallyEnabledMethods, V8TestTypedefs::installConditionallyEnabledProperties,
0, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId,
WrapperTypeInfo::Independent, WrapperTypeInfo::RefCountedObject }; | 27 const WrapperTypeInfo V8TestTypedefs::wrapperTypeInfo = { gin::kEmbedderBlink, V
8TestTypedefs::domTemplate, V8TestTypedefs::refObject, V8TestTypedefs::derefObje
ct, V8TestTypedefs::createPersistentHandle, 0, 0, 0, V8TestTypedefs::installCond
itionallyEnabledMethods, V8TestTypedefs::installConditionallyEnabledProperties,
0, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId,
WrapperTypeInfo::Independent, WrapperTypeInfo::RefCountedObject }; |
| 42 | 28 |
| 43 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestTypedefs
.h. | 29 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestTypedefs
.h. |
| 44 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in | 30 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in |
| 45 // bindings/core/v8/ScriptWrappable.h. | 31 // bindings/core/v8/ScriptWrappable.h. |
| 46 const WrapperTypeInfo& TestTypedefs::s_wrapperTypeInfo = V8TestTypedefs::wrapper
TypeInfo; | 32 const WrapperTypeInfo& TestTypedefs::s_wrapperTypeInfo = V8TestTypedefs::wrapper
TypeInfo; |
| 47 | 33 |
| 48 namespace TestTypedefsV8Internal { | 34 namespace TestTypedefsV8Internal { |
| 49 | 35 |
| 50 template <typename T> void V8_USE(T) { } | 36 template <typename T> void V8_USE(T) { } |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 return 0; | 382 return 0; |
| 397 } | 383 } |
| 398 | 384 |
| 399 template<> | 385 template<> |
| 400 v8::Handle<v8::Value> toV8NoInline(TestTypedefs* impl, v8::Handle<v8::Object> cr
eationContext, v8::Isolate* isolate) | 386 v8::Handle<v8::Value> toV8NoInline(TestTypedefs* impl, v8::Handle<v8::Object> cr
eationContext, v8::Isolate* isolate) |
| 401 { | 387 { |
| 402 return toV8(impl, creationContext, isolate); | 388 return toV8(impl, creationContext, isolate); |
| 403 } | 389 } |
| 404 | 390 |
| 405 } // namespace blink | 391 } // namespace blink |
| OLD | NEW |