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" |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 if (UNLIKELY(info.Length() < 1)) { | 261 if (UNLIKELY(info.Length() < 1)) { |
262 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct
or(info.GetIsolate(), "TestTypedefs", 1, info.Length()), info.GetIsolate()); | 262 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct
or(info.GetIsolate(), "TestTypedefs", 1, info.Length()), info.GetIsolate()); |
263 return; | 263 return; |
264 } | 264 } |
265 V8StringResource<> stringArg; | 265 V8StringResource<> stringArg; |
266 { | 266 { |
267 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 267 TOSTRING_VOID_INTERNAL(stringArg, info[0]); |
268 } | 268 } |
269 RefPtr<TestTypedefs> impl = TestTypedefs::create(stringArg); | 269 RefPtr<TestTypedefs> impl = TestTypedefs::create(stringArg); |
270 v8::Handle<v8::Object> wrapper = info.Holder(); | 270 v8::Handle<v8::Object> wrapper = info.Holder(); |
271 impl->associateWithWrapper(&V8TestTypedefs::wrapperTypeInfo, wrapper, info.G
etIsolate()); | 271 impl->associateWithWrapper(info.GetIsolate(), &V8TestTypedefs::wrapperTypeIn
fo, wrapper); |
272 v8SetReturnValue(info, wrapper); | 272 v8SetReturnValue(info, wrapper); |
273 } | 273 } |
274 | 274 |
275 } // namespace TestTypedefsV8Internal | 275 } // namespace TestTypedefsV8Internal |
276 | 276 |
277 static const V8DOMConfiguration::AttributeConfiguration V8TestTypedefsAttributes
[] = { | 277 static const V8DOMConfiguration::AttributeConfiguration V8TestTypedefsAttributes
[] = { |
278 {"uLongLongAttribute", TestTypedefsV8Internal::uLongLongAttributeAttributeGe
tterCallback, TestTypedefsV8Internal::uLongLongAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA
ttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration
::OnInstance}, | 278 {"uLongLongAttribute", TestTypedefsV8Internal::uLongLongAttributeAttributeGe
tterCallback, TestTypedefsV8Internal::uLongLongAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA
ttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration
::OnInstance}, |
279 {"tAttribute", TestTypedefsV8Internal::TestTypedefsConstructorGetter, TestTy
pedefsV8Internal::TestTypedefsForceSetAttributeOnThisCallback, 0, 0, const_cast<
WrapperTypeInfo*>(&V8TestInterface::wrapperTypeInfo), static_cast<v8::AccessCont
rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfig
uration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | 279 {"tAttribute", TestTypedefsV8Internal::TestTypedefsConstructorGetter, TestTy
pedefsV8Internal::TestTypedefsForceSetAttributeOnThisCallback, 0, 0, const_cast<
WrapperTypeInfo*>(&V8TestInterface::wrapperTypeInfo), static_cast<v8::AccessCont
rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfig
uration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, |
280 }; | 280 }; |
281 | 281 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 scriptWrappable->toImpl<TestTypedefs>()->deref(); | 357 scriptWrappable->toImpl<TestTypedefs>()->deref(); |
358 } | 358 } |
359 | 359 |
360 template<> | 360 template<> |
361 v8::Handle<v8::Value> toV8NoInline(TestTypedefs* impl, v8::Handle<v8::Object> cr
eationContext, v8::Isolate* isolate) | 361 v8::Handle<v8::Value> toV8NoInline(TestTypedefs* impl, v8::Handle<v8::Object> cr
eationContext, v8::Isolate* isolate) |
362 { | 362 { |
363 return toV8(impl, creationContext, isolate); | 363 return toV8(impl, creationContext, isolate); |
364 } | 364 } |
365 | 365 |
366 } // namespace blink | 366 } // namespace blink |
OLD | NEW |