| OLD | NEW |
| 1 /* | 1 /* |
| 2 This file is part of the Blink open source project. | 2 This file is part of the Blink open source project. |
| 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! | 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! |
| 4 | 4 |
| 5 This library is free software; you can redistribute it and/or | 5 This library is free software; you can redistribute it and/or |
| 6 modify it under the terms of the GNU Library General Public | 6 modify it under the terms of the GNU Library General Public |
| 7 License as published by the Free Software Foundation; either | 7 License as published by the Free Software Foundation; either |
| 8 version 2 of the License, or (at your option) any later version. | 8 version 2 of the License, or (at your option) any later version. |
| 9 | 9 |
| 10 This library is distributed in the hope that it will be useful, | 10 This library is distributed in the hope that it will be useful, |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 // In ScriptWrappable::init, the use of a local function declaration has an issu
e on Windows: | 55 // In ScriptWrappable::init, the use of a local function declaration has an issu
e on Windows: |
| 56 // the local declaration does not pick up the surrounding namespace. Therefore,
we provide this function | 56 // the local declaration does not pick up the surrounding namespace. Therefore,
we provide this function |
| 57 // in the global namespace. | 57 // in the global namespace. |
| 58 // (More info on the MSVC bug here: http://connect.microsoft.com/VisualStudio/fe
edback/details/664619/the-namespace-of-local-function-declarations-in-c) | 58 // (More info on the MSVC bug here: http://connect.microsoft.com/VisualStudio/fe
edback/details/664619/the-namespace-of-local-function-declarations-in-c) |
| 59 void webCoreInitializeScriptWrappableForInterface(WebCore::TestTypedefs* object) | 59 void webCoreInitializeScriptWrappableForInterface(WebCore::TestTypedefs* object) |
| 60 { | 60 { |
| 61 WebCore::initializeScriptWrappableForInterface(object); | 61 WebCore::initializeScriptWrappableForInterface(object); |
| 62 } | 62 } |
| 63 | 63 |
| 64 namespace WebCore { | 64 namespace WebCore { |
| 65 WrapperTypeInfo V8TestTypedefs::info = { V8TestTypedefs::GetTemplate, V8TestType
defs::derefObject, 0, 0, 0, V8TestTypedefs::installPerContextPrototypeProperties
, 0, WrapperTypeObjectPrototype }; | 65 WrapperTypeInfo V8TestTypedefs::info = { V8TestTypedefs::GetTemplate, V8TestType
defs::derefObject, 0, 0, 0, V8TestTypedefs::installPerContextEnabledPrototypePro
perties, 0, WrapperTypeObjectPrototype }; |
| 66 | 66 |
| 67 namespace TestTypedefsV8Internal { | 67 namespace TestTypedefsV8Internal { |
| 68 | 68 |
| 69 template <typename T> void V8_USE(T) { } | 69 template <typename T> void V8_USE(T) { } |
| 70 | 70 |
| 71 static void unsignedLongLongAttrAttributeGetter(v8::Local<v8::String> name, cons
t v8::PropertyCallbackInfo<v8::Value>& info) | 71 static void unsignedLongLongAttrAttributeGetter(v8::Local<v8::String> name, cons
t v8::PropertyCallbackInfo<v8::Value>& info) |
| 72 { | 72 { |
| 73 TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder()); | 73 TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder()); |
| 74 v8SetReturnValue(info, static_cast<double>(imp->unsignedLongLongAttr())); | 74 v8SetReturnValue(info, static_cast<double>(imp->unsignedLongLongAttr())); |
| 75 } | 75 } |
| (...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 582 const WrapperTypeInfo* actualInfo = ScriptWrappable::getTypeInfoFromObje
ct(impl.get()); | 582 const WrapperTypeInfo* actualInfo = ScriptWrappable::getTypeInfoFromObje
ct(impl.get()); |
| 583 // Might be a XXXConstructor::info instead of an XXX::info. These will b
oth have | 583 // Might be a XXXConstructor::info instead of an XXX::info. These will b
oth have |
| 584 // the same object de-ref functions, though, so use that as the basis of
the check. | 584 // the same object de-ref functions, though, so use that as the basis of
the check. |
| 585 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== info.derefObjectFunction); | 585 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== info.derefObjectFunction); |
| 586 } | 586 } |
| 587 | 587 |
| 588 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &info, toInternalPointer(impl.get()), isolate); | 588 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &info, toInternalPointer(impl.get()), isolate); |
| 589 if (UNLIKELY(wrapper.IsEmpty())) | 589 if (UNLIKELY(wrapper.IsEmpty())) |
| 590 return wrapper; | 590 return wrapper; |
| 591 | 591 |
| 592 installPerContextProperties(wrapper, impl.get(), isolate); | 592 installPerContextEnabledProperties(wrapper, impl.get(), isolate); |
| 593 V8DOMWrapper::associateObjectWithWrapper<V8TestTypedefs>(impl, &info, wrappe
r, isolate, WrapperConfiguration::Independent); | 593 V8DOMWrapper::associateObjectWithWrapper<V8TestTypedefs>(impl, &info, wrappe
r, isolate, WrapperConfiguration::Independent); |
| 594 return wrapper; | 594 return wrapper; |
| 595 } | 595 } |
| 596 | 596 |
| 597 void V8TestTypedefs::derefObject(void* object) | 597 void V8TestTypedefs::derefObject(void* object) |
| 598 { | 598 { |
| 599 fromInternalPointer(object)->deref(); | 599 fromInternalPointer(object)->deref(); |
| 600 } | 600 } |
| 601 | 601 |
| 602 } // namespace WebCore | 602 } // namespace WebCore |
| OLD | NEW |