| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 if (UNLIKELY(info.Length() < 1)) { | 90 if (UNLIKELY(info.Length() < 1)) { |
| 91 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct
or("TestInterfaceWillBeGarbageCollected", 1, info.Length(), info.GetIsolate()),
info.GetIsolate()); | 91 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct
or("TestInterfaceWillBeGarbageCollected", 1, info.Length(), info.GetIsolate()),
info.GetIsolate()); |
| 92 return; | 92 return; |
| 93 } | 93 } |
| 94 V8StringResource<> str; | 94 V8StringResource<> str; |
| 95 { | 95 { |
| 96 TOSTRING_VOID_INTERNAL(str, info[0]); | 96 TOSTRING_VOID_INTERNAL(str, info[0]); |
| 97 } | 97 } |
| 98 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl = TestInterface
WillBeGarbageCollected::create(str); | 98 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl = TestInterface
WillBeGarbageCollected::create(str); |
| 99 v8::Handle<v8::Object> wrapper = info.Holder(); | 99 v8::Handle<v8::Object> wrapper = info.Holder(); |
| 100 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceWillBeGarbageCollect
ed>(impl.release(), &V8TestInterfaceWillBeGarbageCollected::wrapperTypeInfo, wra
pper, info.GetIsolate()); | 100 impl->associateWithWrapper(&V8TestInterfaceWillBeGarbageCollected::wrapperTy
peInfo, wrapper, info.GetIsolate()); |
| 101 v8SetReturnValue(info, wrapper); | 101 v8SetReturnValue(info, wrapper); |
| 102 } | 102 } |
| 103 | 103 |
| 104 } // namespace TestInterfaceWillBeGarbageCollectedV8Internal | 104 } // namespace TestInterfaceWillBeGarbageCollectedV8Internal |
| 105 | 105 |
| 106 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceWillBeGar
bageCollectedAttributes[] = { | 106 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceWillBeGar
bageCollectedAttributes[] = { |
| 107 {"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, V8DOMConfig
uration::OnInstance}, | 107 {"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, V8DOMConfig
uration::OnInstance}, |
| 108 }; | 108 }; |
| 109 | 109 |
| 110 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceWillBeGarbag
eCollectedMethods[] = { | 110 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceWillBeGarbag
eCollectedMethods[] = { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 127 if (UNLIKELY(info.Length() < 1)) { | 127 if (UNLIKELY(info.Length() < 1)) { |
| 128 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct
or("TestInterfaceWillBeGarbageCollected", 1, info.Length(), info.GetIsolate()),
info.GetIsolate()); | 128 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct
or("TestInterfaceWillBeGarbageCollected", 1, info.Length(), info.GetIsolate()),
info.GetIsolate()); |
| 129 return; | 129 return; |
| 130 } | 130 } |
| 131 V8StringResource<> str; | 131 V8StringResource<> str; |
| 132 { | 132 { |
| 133 TOSTRING_VOID_INTERNAL(str, info[0]); | 133 TOSTRING_VOID_INTERNAL(str, info[0]); |
| 134 } | 134 } |
| 135 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl = TestInterface
WillBeGarbageCollected::createForJSConstructor(str); | 135 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl = TestInterface
WillBeGarbageCollected::createForJSConstructor(str); |
| 136 v8::Handle<v8::Object> wrapper = info.Holder(); | 136 v8::Handle<v8::Object> wrapper = info.Holder(); |
| 137 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceWillBeGarbageCollect
ed>(impl.release(), &V8TestInterfaceWillBeGarbageCollectedConstructor::wrapperTy
peInfo, wrapper, info.GetIsolate()); | 137 impl->associateWithWrapper(&V8TestInterfaceWillBeGarbageCollectedConstructor
::wrapperTypeInfo, wrapper, info.GetIsolate()); |
| 138 v8SetReturnValue(info, wrapper); | 138 v8SetReturnValue(info, wrapper); |
| 139 } | 139 } |
| 140 | 140 |
| 141 v8::Handle<v8::FunctionTemplate> V8TestInterfaceWillBeGarbageCollectedConstructo
r::domTemplate(v8::Isolate* isolate) | 141 v8::Handle<v8::FunctionTemplate> V8TestInterfaceWillBeGarbageCollectedConstructo
r::domTemplate(v8::Isolate* isolate) |
| 142 { | 142 { |
| 143 static int domTemplateKey; // This address is used for a key to look up the
dom template. | 143 static int domTemplateKey; // This address is used for a key to look up the
dom template. |
| 144 V8PerIsolateData* data = V8PerIsolateData::from(isolate); | 144 V8PerIsolateData* data = V8PerIsolateData::from(isolate); |
| 145 v8::Local<v8::FunctionTemplate> result = data->existingDOMTemplate(&domTempl
ateKey); | 145 v8::Local<v8::FunctionTemplate> result = data->existingDOMTemplate(&domTempl
ateKey); |
| 146 if (!result.IsEmpty()) | 146 if (!result.IsEmpty()) |
| 147 return result; | 147 return result; |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 #endif | 241 #endif |
| 242 } | 242 } |
| 243 | 243 |
| 244 template<> | 244 template<> |
| 245 v8::Handle<v8::Value> toV8NoInline(TestInterfaceWillBeGarbageCollected* impl, v8
::Handle<v8::Object> creationContext, v8::Isolate* isolate) | 245 v8::Handle<v8::Value> toV8NoInline(TestInterfaceWillBeGarbageCollected* impl, v8
::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
| 246 { | 246 { |
| 247 return toV8(impl, creationContext, isolate); | 247 return toV8(impl, creationContext, isolate); |
| 248 } | 248 } |
| 249 | 249 |
| 250 } // namespace blink | 250 } // namespace blink |
| OLD | NEW |