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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 // In ScriptWrappable::init, the use of a local function declaration has an issu
e on Windows: | 48 // In ScriptWrappable::init, the use of a local function declaration has an issu
e on Windows: |
49 // the local declaration does not pick up the surrounding namespace. Therefore,
we provide this function | 49 // the local declaration does not pick up the surrounding namespace. Therefore,
we provide this function |
50 // in the global namespace. | 50 // in the global namespace. |
51 // (More info on the MSVC bug here: http://connect.microsoft.com/VisualStudio/fe
edback/details/664619/the-namespace-of-local-function-declarations-in-c) | 51 // (More info on the MSVC bug here: http://connect.microsoft.com/VisualStudio/fe
edback/details/664619/the-namespace-of-local-function-declarations-in-c) |
52 void webCoreInitializeScriptWrappableForInterface(WebCore::TestCustomAccessors*
object) | 52 void webCoreInitializeScriptWrappableForInterface(WebCore::TestCustomAccessors*
object) |
53 { | 53 { |
54 WebCore::initializeScriptWrappableForInterface(object); | 54 WebCore::initializeScriptWrappableForInterface(object); |
55 } | 55 } |
56 | 56 |
57 namespace WebCore { | 57 namespace WebCore { |
58 WrapperTypeInfo V8TestCustomAccessors::wrapperTypeInfo = { V8TestCustomAccessors
::GetTemplate, V8TestCustomAccessors::derefObject, 0, 0, 0, V8TestCustomAccessor
s::installPerContextEnabledPrototypeProperties, 0, WrapperTypeObjectPrototype }; | 58 const WrapperTypeInfo V8TestCustomAccessors::wrapperTypeInfo = { V8TestCustomAcc
essors::GetTemplate, V8TestCustomAccessors::derefObject, 0, 0, 0, V8TestCustomAc
cessors::installPerContextEnabledPrototypeProperties, 0, WrapperTypeObjectProtot
ype }; |
59 | 59 |
60 namespace TestCustomAccessorsV8Internal { | 60 namespace TestCustomAccessorsV8Internal { |
61 | 61 |
62 template <typename T> void V8_USE(T) { } | 62 template <typename T> void V8_USE(T) { } |
63 | 63 |
64 static void anotherFunctionMethod(const v8::FunctionCallbackInfo<v8::Value>& arg
s) | 64 static void anotherFunctionMethod(const v8::FunctionCallbackInfo<v8::Value>& arg
s) |
65 { | 65 { |
66 if (UNLIKELY(args.Length() < 1)) { | 66 if (UNLIKELY(args.Length() < 1)) { |
67 throwTypeError(ExceptionMessages::failedToExecute("anotherFunction", "Te
stCustomAccessors", ExceptionMessages::notEnoughArguments(1, args.Length())), ar
gs.GetIsolate()); | 67 throwTypeError(ExceptionMessages::failedToExecute("anotherFunction", "Te
stCustomAccessors", ExceptionMessages::notEnoughArguments(1, args.Length())), ar
gs.GetIsolate()); |
68 return; | 68 return; |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 V8DOMWrapper::associateObjectWithWrapper<V8TestCustomAccessors>(impl, &wrapp
erTypeInfo, wrapper, isolate, WrapperConfiguration::Independent); | 210 V8DOMWrapper::associateObjectWithWrapper<V8TestCustomAccessors>(impl, &wrapp
erTypeInfo, wrapper, isolate, WrapperConfiguration::Independent); |
211 return wrapper; | 211 return wrapper; |
212 } | 212 } |
213 | 213 |
214 void V8TestCustomAccessors::derefObject(void* object) | 214 void V8TestCustomAccessors::derefObject(void* object) |
215 { | 215 { |
216 fromInternalPointer(object)->deref(); | 216 fromInternalPointer(object)->deref(); |
217 } | 217 } |
218 | 218 |
219 } // namespace WebCore | 219 } // namespace WebCore |
OLD | NEW |