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 #if ENABLE(CONDITION) | 8 #if ENABLE(CONDITION) |
9 #include "V8TestInterface.h" | 9 #include "V8TestInterface.h" |
10 | 10 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 | 43 |
44 void webCoreInitializeScriptWrappableForInterface(blink::TestInterfaceImplementa
tion* object) | 44 void webCoreInitializeScriptWrappableForInterface(blink::TestInterfaceImplementa
tion* object) |
45 { | 45 { |
46 blink::initializeScriptWrappableForInterface(object); | 46 blink::initializeScriptWrappableForInterface(object); |
47 } | 47 } |
48 | 48 |
49 namespace blink { | 49 namespace blink { |
50 | 50 |
51 const WrapperTypeInfo V8TestInterface::wrapperTypeInfo = { gin::kEmbedderBlink,
V8TestInterface::domTemplate, V8TestInterface::refObject, V8TestInterface::deref
Object, V8TestInterface::createPersistentHandle, V8TestInterface::toActiveDOMObj
ect, 0, V8TestInterface::visitDOMWrapper, V8TestInterface::installConditionallyE
nabledMethods, V8TestInterface::installConditionallyEnabledProperties, &V8TestIn
terfaceEmpty::wrapperTypeInfo, WrapperTypeInfo::WrapperTypeObjectPrototype, Wrap
perTypeInfo::ObjectClassId, WrapperTypeInfo::Dependent, WrapperTypeInfo::RefCoun
tedObject }; | 51 const WrapperTypeInfo V8TestInterface::wrapperTypeInfo = { gin::kEmbedderBlink,
V8TestInterface::domTemplate, V8TestInterface::refObject, V8TestInterface::deref
Object, V8TestInterface::createPersistentHandle, V8TestInterface::toActiveDOMObj
ect, 0, V8TestInterface::visitDOMWrapper, V8TestInterface::installConditionallyE
nabledMethods, V8TestInterface::installConditionallyEnabledProperties, &V8TestIn
terfaceEmpty::wrapperTypeInfo, WrapperTypeInfo::WrapperTypeObjectPrototype, Wrap
perTypeInfo::ObjectClassId, WrapperTypeInfo::Dependent, WrapperTypeInfo::RefCoun
tedObject }; |
52 | 52 |
| 53 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
eImplementation.h. |
| 54 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in |
| 55 // bindings/core/v8/ScriptWrappable.h. |
| 56 const WrapperTypeInfo& TestInterfaceImplementation::s_wrapperTypeInfo = V8TestIn
terface::wrapperTypeInfo; |
| 57 |
53 namespace TestInterfaceImplementationV8Internal { | 58 namespace TestInterfaceImplementationV8Internal { |
54 | 59 |
55 template <typename T> void V8_USE(T) { } | 60 template <typename T> void V8_USE(T) { } |
56 | 61 |
57 static void testInterfaceAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) | 62 static void testInterfaceAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) |
58 { | 63 { |
59 v8::Handle<v8::Object> holder = info.Holder(); | 64 v8::Handle<v8::Object> holder = info.Holder(); |
60 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); | 65 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); |
61 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceAttribute()), impl
); | 66 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceAttribute()), impl
); |
62 } | 67 } |
(...skipping 1898 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1961 RELEASE_ASSERT_NOT_REACHED(); | 1966 RELEASE_ASSERT_NOT_REACHED(); |
1962 } | 1967 } |
1963 block.ReThrow(); | 1968 block.ReThrow(); |
1964 return false; | 1969 return false; |
1965 } | 1970 } |
1966 return true; | 1971 return true; |
1967 } | 1972 } |
1968 | 1973 |
1969 } // namespace blink | 1974 } // namespace blink |
1970 #endif // ENABLE(CONDITION) | 1975 #endif // ENABLE(CONDITION) |
OLD | NEW |