| 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 "V8TestInterfaceWillBeGarbageCollected.h" | 8 #include "V8TestInterfaceWillBeGarbageCollected.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 } | 108 } |
| 109 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl = TestInterface
WillBeGarbageCollected::create(str); | 109 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl = TestInterface
WillBeGarbageCollected::create(str); |
| 110 v8::Handle<v8::Object> wrapper = info.Holder(); | 110 v8::Handle<v8::Object> wrapper = info.Holder(); |
| 111 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceWillBeGarbageCollect
ed>(impl.release(), &V8TestInterfaceWillBeGarbageCollected::wrapperTypeInfo, wra
pper, info.GetIsolate(), WrapperConfiguration::Independent); | 111 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceWillBeGarbageCollect
ed>(impl.release(), &V8TestInterfaceWillBeGarbageCollected::wrapperTypeInfo, wra
pper, info.GetIsolate(), WrapperConfiguration::Independent); |
| 112 v8SetReturnValue(info, wrapper); | 112 v8SetReturnValue(info, wrapper); |
| 113 } | 113 } |
| 114 | 114 |
| 115 } // namespace TestInterfaceWillBeGarbageCollectedV8Internal | 115 } // namespace TestInterfaceWillBeGarbageCollectedV8Internal |
| 116 | 116 |
| 117 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceWillBeGar
bageCollectedAttributes[] = { | 117 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceWillBeGar
bageCollectedAttributes[] = { |
| 118 {"attr1", TestInterfaceWillBeGarbageCollectedV8Internal::attr1AttributeGette
rCallback, TestInterfaceWillBeGarbageCollectedV8Internal::attr1AttributeSetterCa
llback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pr
opertyAttribute>(v8::None), 0 /* on instance */}, | 118 {"attr1", TestInterfaceWillBeGarbageCollectedV8Internal::attr1AttributeGette
rCallback, TestInterfaceWillBeGarbageCollectedV8Internal::attr1AttributeSetterCa
llback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pr
opertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, 0 /* on ins
tance */}, |
| 119 }; | 119 }; |
| 120 | 120 |
| 121 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceWillBeGarbag
eCollectedMethods[] = { | 121 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceWillBeGarbag
eCollectedMethods[] = { |
| 122 {"func", TestInterfaceWillBeGarbageCollectedV8Internal::funcMethodCallback,
0, 1}, | 122 {"func", TestInterfaceWillBeGarbageCollectedV8Internal::funcMethodCallback,
0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
| 123 }; | 123 }; |
| 124 | 124 |
| 125 const WrapperTypeInfo V8TestInterfaceWillBeGarbageCollectedConstructor::wrapperT
ypeInfo = { gin::kEmbedderBlink, V8TestInterfaceWillBeGarbageCollectedConstructo
r::domTemplate, V8TestInterfaceWillBeGarbageCollected::derefObject, 0, V8TestInt
erfaceWillBeGarbageCollected::toEventTarget, 0, V8TestInterfaceWillBeGarbageColl
ected::installPerContextEnabledMethods, 0, WrapperTypeObjectPrototype, WillBeGar
bageCollectedObject }; | 125 const WrapperTypeInfo V8TestInterfaceWillBeGarbageCollectedConstructor::wrapperT
ypeInfo = { gin::kEmbedderBlink, V8TestInterfaceWillBeGarbageCollectedConstructo
r::domTemplate, V8TestInterfaceWillBeGarbageCollected::derefObject, 0, V8TestInt
erfaceWillBeGarbageCollected::toEventTarget, 0, V8TestInterfaceWillBeGarbageColl
ected::installPerContextEnabledMethods, 0, WrapperTypeObjectPrototype, WillBeGar
bageCollectedObject }; |
| 126 | 126 |
| 127 static void V8TestInterfaceWillBeGarbageCollectedConstructorCallback(const v8::F
unctionCallbackInfo<v8::Value>& info) | 127 static void V8TestInterfaceWillBeGarbageCollectedConstructorCallback(const v8::F
unctionCallbackInfo<v8::Value>& info) |
| 128 { | 128 { |
| 129 if (!info.IsConstructCall()) { | 129 if (!info.IsConstructCall()) { |
| 130 throwTypeError(ExceptionMessages::constructorNotCallableAsFunction("Test
Interface"), info.GetIsolate()); | 130 throwTypeError(ExceptionMessages::constructorNotCallableAsFunction("Test
Interface"), info.GetIsolate()); |
| 131 return; | 131 return; |
| 132 } | 132 } |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 #endif // !ENABLE(OILPAN) | 261 #endif // !ENABLE(OILPAN) |
| 262 } | 262 } |
| 263 | 263 |
| 264 template<> | 264 template<> |
| 265 v8::Handle<v8::Value> toV8NoInline(TestInterfaceWillBeGarbageCollected* impl, v8
::Handle<v8::Object> creationContext, v8::Isolate* isolate) | 265 v8::Handle<v8::Value> toV8NoInline(TestInterfaceWillBeGarbageCollected* impl, v8
::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
| 266 { | 266 { |
| 267 return toV8(impl, creationContext, isolate); | 267 return toV8(impl, creationContext, isolate); |
| 268 } | 268 } |
| 269 | 269 |
| 270 } // namespace blink | 270 } // namespace blink |
| OLD | NEW |