| 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, |
| 11 but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 Library General Public License for more details. | 13 Library General Public License for more details. |
| 14 | 14 |
| 15 You should have received a copy of the GNU Library General Public License | 15 You should have received a copy of the GNU Library General Public License |
| 16 along with this library; see the file COPYING.LIB. If not, write to | 16 along with this library; see the file COPYING.LIB. If not, write to |
| 17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
| 18 Boston, MA 02111-1307, USA. | 18 Boston, MA 02111-1307, USA. |
| 19 */ | 19 */ |
| 20 | 20 |
| 21 #include "config.h" | 21 #include "config.h" |
| 22 #include "V8TestCustomAccessors.h" | 22 #include "V8TestCustomAccessors.h" |
| 23 | 23 |
| 24 #include "RuntimeEnabledFeatures.h" | 24 #include "RuntimeEnabledFeatures.h" |
| 25 #include "bindings/v8/ExceptionMessages.h" |
| 25 #include "bindings/v8/ExceptionState.h" | 26 #include "bindings/v8/ExceptionState.h" |
| 26 #include "bindings/v8/ScriptController.h" | 27 #include "bindings/v8/ScriptController.h" |
| 27 #include "bindings/v8/V8Binding.h" | 28 #include "bindings/v8/V8Binding.h" |
| 28 #include "bindings/v8/V8DOMConfiguration.h" | 29 #include "bindings/v8/V8DOMConfiguration.h" |
| 29 #include "bindings/v8/V8DOMWrapper.h" | 30 #include "bindings/v8/V8DOMWrapper.h" |
| 30 #include "core/dom/ContextFeatures.h" | 31 #include "core/dom/ContextFeatures.h" |
| 31 #include "core/dom/Document.h" | 32 #include "core/dom/Document.h" |
| 32 #include "core/platform/chromium/TraceEvent.h" | 33 #include "core/platform/chromium/TraceEvent.h" |
| 33 #include "wtf/UnusedParam.h" | 34 #include "wtf/UnusedParam.h" |
| 34 | 35 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 56 namespace WebCore { | 57 namespace WebCore { |
| 57 WrapperTypeInfo V8TestCustomAccessors::info = { V8TestCustomAccessors::GetTempla
te, V8TestCustomAccessors::derefObject, 0, 0, 0, V8TestCustomAccessors::installP
erContextPrototypeProperties, 0, WrapperTypeObjectPrototype }; | 58 WrapperTypeInfo V8TestCustomAccessors::info = { V8TestCustomAccessors::GetTempla
te, V8TestCustomAccessors::derefObject, 0, 0, 0, V8TestCustomAccessors::installP
erContextPrototypeProperties, 0, WrapperTypeObjectPrototype }; |
| 58 | 59 |
| 59 namespace TestCustomAccessorsV8Internal { | 60 namespace TestCustomAccessorsV8Internal { |
| 60 | 61 |
| 61 template <typename T> void V8_USE(T) { } | 62 template <typename T> void V8_USE(T) { } |
| 62 | 63 |
| 63 static void anotherFunctionMethod(const v8::FunctionCallbackInfo<v8::Value>& arg
s) | 64 static void anotherFunctionMethod(const v8::FunctionCallbackInfo<v8::Value>& arg
s) |
| 64 { | 65 { |
| 65 if (UNLIKELY(args.Length() < 1)) { | 66 if (UNLIKELY(args.Length() < 1)) { |
| 66 throwNotEnoughArgumentsError(args.GetIsolate()); | 67 throwTypeError(ExceptionMessages::failedToExecute("anotherFunction", "Te
stCustomAccessors", ExceptionMessages::notEnoughArguments(1, args.Length())), ar
gs.GetIsolate()); |
| 67 return; | 68 return; |
| 68 } | 69 } |
| 69 TestCustomAccessors* imp = V8TestCustomAccessors::toNative(args.Holder()); | 70 TestCustomAccessors* imp = V8TestCustomAccessors::toNative(args.Holder()); |
| 70 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str, args[0]); | 71 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str, args[0]); |
| 71 imp->anotherFunction(str); | 72 imp->anotherFunction(str); |
| 72 | 73 |
| 73 return; | 74 return; |
| 74 } | 75 } |
| 75 | 76 |
| 76 static void anotherFunctionMethodCallback(const v8::FunctionCallbackInfo<v8::Val
ue>& args) | 77 static void anotherFunctionMethodCallback(const v8::FunctionCallbackInfo<v8::Val
ue>& args) |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 V8DOMWrapper::associateObjectWithWrapper<V8TestCustomAccessors>(impl, &info,
wrapper, isolate, WrapperConfiguration::Independent); | 210 V8DOMWrapper::associateObjectWithWrapper<V8TestCustomAccessors>(impl, &info,
wrapper, isolate, WrapperConfiguration::Independent); |
| 210 return wrapper; | 211 return wrapper; |
| 211 } | 212 } |
| 212 | 213 |
| 213 void V8TestCustomAccessors::derefObject(void* object) | 214 void V8TestCustomAccessors::derefObject(void* object) |
| 214 { | 215 { |
| 215 fromInternalPointer(object)->deref(); | 216 fromInternalPointer(object)->deref(); |
| 216 } | 217 } |
| 217 | 218 |
| 218 } // namespace WebCore | 219 } // namespace WebCore |
| OLD | NEW |