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 4956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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) | 4972 void V8TestObject::namedPropertyQuery(v8::Local<v8::String> name, const v8::Prop
ertyCallbackInfo<v8::Integer>& info) |
4973 { | 4973 { |
4974 TestObj* collection = toNative(info.Holder()); | 4974 TestObj* collection = toNative(info.Holder()); |
4975 AtomicString propertyName = toWebCoreAtomicString(name); | 4975 AtomicString propertyName = toWebCoreAtomicString(name); |
4976 ExceptionCode ec = 0; | 4976 ExceptionCode ec = 0; |
4977 int returnValue = 0; | 4977 bool result = collection->namedPropertyQuery(propertyName, ec); |
4978 bool result = collection->namedPropertyQuery(propertyName, returnValue, ec); | |
4979 if (ec) { | 4978 if (ec) { |
4980 setDOMException(ec, info.GetIsolate()); | 4979 setDOMException(ec, info.GetIsolate()); |
4981 return; | 4980 return; |
4982 } | 4981 } |
4983 if (!result) | 4982 if (!result) |
4984 return; | 4983 return; |
4985 v8SetReturnValueInt(info, 0); | 4984 v8SetReturnValueInt(info, v8::None); |
4986 } | 4985 } |
4987 | 4986 |
4988 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestObjectTemplate(v8::Handle
<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType currentWorld
Type) | 4987 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestObjectTemplate(v8::Handle
<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType currentWorld
Type) |
4989 { | 4988 { |
4990 desc->ReadOnlyPrototype(); | 4989 desc->ReadOnlyPrototype(); |
4991 | 4990 |
4992 v8::Local<v8::Signature> defaultSignature; | 4991 v8::Local<v8::Signature> defaultSignature; |
4993 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "TestObject",
v8::Local<v8::FunctionTemplate>(), V8TestObject::internalFieldCount, | 4992 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "TestObject",
v8::Local<v8::FunctionTemplate>(), V8TestObject::internalFieldCount, |
4994 V8TestObjectAttrs, WTF_ARRAY_LENGTH(V8TestObjectAttrs), | 4993 V8TestObjectAttrs, WTF_ARRAY_LENGTH(V8TestObjectAttrs), |
4995 V8TestObjectMethods, WTF_ARRAY_LENGTH(V8TestObjectMethods), isolate, cur
rentWorldType); | 4994 V8TestObjectMethods, WTF_ARRAY_LENGTH(V8TestObjectMethods), isolate, cur
rentWorldType); |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5152 | 5151 |
5153 | 5152 |
5154 v8::Handle<v8::Object> V8TestObject::createWrapper(PassRefPtr<TestObj> impl, v8:
:Handle<v8::Object> creationContext, v8::Isolate* isolate) | 5153 v8::Handle<v8::Object> V8TestObject::createWrapper(PassRefPtr<TestObj> impl, v8:
:Handle<v8::Object> creationContext, v8::Isolate* isolate) |
5155 { | 5154 { |
5156 ASSERT(impl.get()); | 5155 ASSERT(impl.get()); |
5157 ASSERT(DOMDataStore::getWrapper(impl.get(), isolate).IsEmpty()); | 5156 ASSERT(DOMDataStore::getWrapper(impl.get(), isolate).IsEmpty()); |
5158 | 5157 |
5159 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &info, impl.get(), isolate); | 5158 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &info, impl.get(), isolate); |
5160 if (UNLIKELY(wrapper.IsEmpty())) | 5159 if (UNLIKELY(wrapper.IsEmpty())) |
5161 return wrapper; | 5160 return wrapper; |
5162 | |
5163 installPerContextProperties(wrapper, impl.get(), isolate); | 5161 installPerContextProperties(wrapper, impl.get(), isolate); |
5164 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap
perConfiguration::Independent); | 5162 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap
perConfiguration::Independent); |
5165 return wrapper; | 5163 return wrapper; |
5166 } | 5164 } |
5167 void V8TestObject::derefObject(void* object) | 5165 void V8TestObject::derefObject(void* object) |
5168 { | 5166 { |
5169 static_cast<TestObj*>(object)->deref(); | 5167 static_cast<TestObj*>(object)->deref(); |
5170 } | 5168 } |
5171 | 5169 |
5172 } // namespace WebCore | 5170 } // namespace WebCore |
OLD | NEW |