| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 WebCore::initializeScriptWrappableForInterface(object); | 58 WebCore::initializeScriptWrappableForInterface(object); |
| 59 } | 59 } |
| 60 | 60 |
| 61 namespace WebCore { | 61 namespace WebCore { |
| 62 const WrapperTypeInfo V8TestEventTarget::wrapperTypeInfo = { V8TestEventTarget::
GetTemplate, V8TestEventTarget::derefObject, 0, V8TestEventTarget::toEventTarget
, 0, V8TestEventTarget::installPerContextEnabledPrototypeProperties, &V8EventTar
get::wrapperTypeInfo, WrapperTypeObjectPrototype }; | 62 const WrapperTypeInfo V8TestEventTarget::wrapperTypeInfo = { V8TestEventTarget::
GetTemplate, V8TestEventTarget::derefObject, 0, V8TestEventTarget::toEventTarget
, 0, V8TestEventTarget::installPerContextEnabledPrototypeProperties, &V8EventTar
get::wrapperTypeInfo, WrapperTypeObjectPrototype }; |
| 63 | 63 |
| 64 namespace TestEventTargetV8Internal { | 64 namespace TestEventTargetV8Internal { |
| 65 | 65 |
| 66 template <typename T> void V8_USE(T) { } | 66 template <typename T> void V8_USE(T) { } |
| 67 | 67 |
| 68 static void itemMethod(const v8::FunctionCallbackInfo<v8::Value>& args) | 68 static void itemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 69 { | 69 { |
| 70 if (UNLIKELY(args.Length() < 1)) { | 70 if (UNLIKELY(info.Length() < 1)) { |
| 71 throwTypeError(ExceptionMessages::failedToExecute("item", "TestEventTarg
et", ExceptionMessages::notEnoughArguments(1, args.Length())), args.GetIsolate()
); | 71 throwTypeError(ExceptionMessages::failedToExecute("item", "TestEventTarg
et", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()
); |
| 72 return; | 72 return; |
| 73 } | 73 } |
| 74 TestEventTarget* imp = V8TestEventTarget::toNative(args.Holder()); | 74 TestEventTarget* imp = V8TestEventTarget::toNative(info.Holder()); |
| 75 V8TRYCATCH_VOID(unsigned, index, toUInt32(args[0])); | 75 V8TRYCATCH_VOID(unsigned, index, toUInt32(info[0])); |
| 76 v8SetReturnValue(args, imp->item(index)); | 76 v8SetReturnValue(info, imp->item(index)); |
| 77 } | 77 } |
| 78 | 78 |
| 79 static void itemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& args) | 79 static void itemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 80 { | 80 { |
| 81 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 81 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 82 TestEventTargetV8Internal::itemMethod(args); | 82 TestEventTargetV8Internal::itemMethod(info); |
| 83 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 83 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 84 } | 84 } |
| 85 | 85 |
| 86 static void namedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& args) | 86 static void namedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 87 { | 87 { |
| 88 if (UNLIKELY(args.Length() < 1)) { | 88 if (UNLIKELY(info.Length() < 1)) { |
| 89 throwTypeError(ExceptionMessages::failedToExecute("namedItem", "TestEven
tTarget", ExceptionMessages::notEnoughArguments(1, args.Length())), args.GetIsol
ate()); | 89 throwTypeError(ExceptionMessages::failedToExecute("namedItem", "TestEven
tTarget", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsol
ate()); |
| 90 return; | 90 return; |
| 91 } | 91 } |
| 92 TestEventTarget* imp = V8TestEventTarget::toNative(args.Holder()); | 92 TestEventTarget* imp = V8TestEventTarget::toNative(info.Holder()); |
| 93 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, name, args[0]); | 93 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, name, info[0]); |
| 94 v8SetReturnValue(args, imp->namedItem(name)); | 94 v8SetReturnValue(info, imp->namedItem(name)); |
| 95 } | 95 } |
| 96 | 96 |
| 97 static void namedItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& a
rgs) | 97 static void namedItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 98 { | 98 { |
| 99 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 99 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 100 TestEventTargetV8Internal::namedItemMethod(args); | 100 TestEventTargetV8Internal::namedItemMethod(info); |
| 101 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 101 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 102 } | 102 } |
| 103 | 103 |
| 104 static void indexedPropertyGetter(uint32_t index, const v8::PropertyCallbackInfo
<v8::Value>& info) | 104 static void indexedPropertyGetter(uint32_t index, const v8::PropertyCallbackInfo
<v8::Value>& info) |
| 105 { | 105 { |
| 106 ASSERT(V8DOMWrapper::maybeDOMWrapper(info.Holder())); | 106 ASSERT(V8DOMWrapper::maybeDOMWrapper(info.Holder())); |
| 107 TestEventTarget* collection = V8TestEventTarget::toNative(info.Holder()); | 107 TestEventTarget* collection = V8TestEventTarget::toNative(info.Holder()); |
| 108 RefPtr<Node> element = collection->item(index); | 108 RefPtr<Node> element = collection->item(index); |
| 109 if (!element) | 109 if (!element) |
| 110 return; | 110 return; |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 V8DOMWrapper::associateObjectWithWrapper<V8TestEventTarget>(impl, &wrapperTy
peInfo, wrapper, isolate, WrapperConfiguration::Independent); | 342 V8DOMWrapper::associateObjectWithWrapper<V8TestEventTarget>(impl, &wrapperTy
peInfo, wrapper, isolate, WrapperConfiguration::Independent); |
| 343 return wrapper; | 343 return wrapper; |
| 344 } | 344 } |
| 345 | 345 |
| 346 void V8TestEventTarget::derefObject(void* object) | 346 void V8TestEventTarget::derefObject(void* object) |
| 347 { | 347 { |
| 348 fromInternalPointer(object)->deref(); | 348 fromInternalPointer(object)->deref(); |
| 349 } | 349 } |
| 350 | 350 |
| 351 } // namespace WebCore | 351 } // namespace WebCore |
| OLD | NEW |