| 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 4951 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4962 if (ec) { | 4962 if (ec) { |
| 4963 setDOMException(ec, info.GetIsolate()); | 4963 setDOMException(ec, info.GetIsolate()); |
| 4964 return; | 4964 return; |
| 4965 } | 4965 } |
| 4966 v8::Handle<v8::Array> v8names = v8::Array::New(names.size()); | 4966 v8::Handle<v8::Array> v8names = v8::Array::New(names.size()); |
| 4967 for (size_t i = 0; i < names.size(); ++i) | 4967 for (size_t i = 0; i < names.size(); ++i) |
| 4968 v8names->Set(v8Integer(i, info.GetIsolate()), v8String(names[i], info.Ge
tIsolate())); | 4968 v8names->Set(v8Integer(i, info.GetIsolate()), v8String(names[i], info.Ge
tIsolate())); |
| 4969 v8SetReturnValue(info, v8names); | 4969 v8SetReturnValue(info, v8names); |
| 4970 } | 4970 } |
| 4971 | 4971 |
| 4972 void V8TestObject::namedPropertyQuery(v8::Local<v8::String> name, const v8::Prop
ertyCallbackInfo<v8::Integer>& info) |
| 4973 { |
| 4974 TestObj* collection = toNative(info.Holder()); |
| 4975 AtomicString propertyName = toWebCoreAtomicString(name); |
| 4976 ExceptionCode ec = 0; |
| 4977 int returnValue = 0; |
| 4978 bool result = collection->namedPropertyQuery(propertyName, returnValue, ec); |
| 4979 if (ec) { |
| 4980 setDOMException(ec, info.GetIsolate()); |
| 4981 return; |
| 4982 } |
| 4983 if (!result) |
| 4984 return; |
| 4985 v8SetReturnValueInt(info, 0); |
| 4986 } |
| 4987 |
| 4972 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestObjectTemplate(v8::Handle
<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType currentWorld
Type) | 4988 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestObjectTemplate(v8::Handle
<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType currentWorld
Type) |
| 4973 { | 4989 { |
| 4974 desc->ReadOnlyPrototype(); | 4990 desc->ReadOnlyPrototype(); |
| 4975 | 4991 |
| 4976 v8::Local<v8::Signature> defaultSignature; | 4992 v8::Local<v8::Signature> defaultSignature; |
| 4977 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "TestObject",
v8::Local<v8::FunctionTemplate>(), V8TestObject::internalFieldCount, | 4993 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "TestObject",
v8::Local<v8::FunctionTemplate>(), V8TestObject::internalFieldCount, |
| 4978 V8TestObjectAttrs, WTF_ARRAY_LENGTH(V8TestObjectAttrs), | 4994 V8TestObjectAttrs, WTF_ARRAY_LENGTH(V8TestObjectAttrs), |
| 4979 V8TestObjectMethods, WTF_ARRAY_LENGTH(V8TestObjectMethods), isolate, cur
rentWorldType); | 4995 V8TestObjectMethods, WTF_ARRAY_LENGTH(V8TestObjectMethods), isolate, cur
rentWorldType); |
| 4980 UNUSED_PARAM(defaultSignature); // In some cases, it will not be used. | 4996 UNUSED_PARAM(defaultSignature); // In some cases, it will not be used. |
| 4981 desc->SetCallHandler(V8TestObject::constructorCallback); | 4997 desc->SetCallHandler(V8TestObject::constructorCallback); |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5147 installPerContextProperties(wrapper, impl.get(), isolate); | 5163 installPerContextProperties(wrapper, impl.get(), isolate); |
| 5148 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap
perConfiguration::Independent); | 5164 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap
perConfiguration::Independent); |
| 5149 return wrapper; | 5165 return wrapper; |
| 5150 } | 5166 } |
| 5151 void V8TestObject::derefObject(void* object) | 5167 void V8TestObject::derefObject(void* object) |
| 5152 { | 5168 { |
| 5153 static_cast<TestObj*>(object)->deref(); | 5169 static_cast<TestObj*>(object)->deref(); |
| 5154 } | 5170 } |
| 5155 | 5171 |
| 5156 } // namespace WebCore | 5172 } // namespace WebCore |
| OLD | NEW |