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 883 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
894 | 894 |
895 ScriptExecutionContext* context = getScriptExecutionContext(); | 895 ScriptExecutionContext* context = getScriptExecutionContext(); |
896 | 896 |
897 RefPtr<TestInterface> impl = TestInterface::create(context, str1, str2, ec); | 897 RefPtr<TestInterface> impl = TestInterface::create(context, str1, str2, ec); |
898 v8::Handle<v8::Object> wrapper = args.Holder(); | 898 v8::Handle<v8::Object> wrapper = args.Holder(); |
899 if (ec) { | 899 if (ec) { |
900 setDOMException(ec, args.GetIsolate()); | 900 setDOMException(ec, args.GetIsolate()); |
901 return; | 901 return; |
902 } | 902 } |
903 | 903 |
904 V8DOMWrapper::associateObjectWithWrapper(impl.release(), &V8TestInterface::i
nfo, wrapper, args.GetIsolate(), WrapperConfiguration::Dependent); | 904 V8DOMWrapper::associateObjectWithWrapper<V8TestInterface>(impl.release(), &V
8TestInterface::info, wrapper, args.GetIsolate(), WrapperConfiguration::Dependen
t); |
905 args.GetReturnValue().Set(wrapper); | 905 args.GetReturnValue().Set(wrapper); |
906 } | 906 } |
907 | 907 |
908 static void namedPropertyGetter(v8::Local<v8::String> name, const v8::PropertyCa
llbackInfo<v8::Value>& info) | 908 static void namedPropertyGetter(v8::Local<v8::String> name, const v8::PropertyCa
llbackInfo<v8::Value>& info) |
909 { | 909 { |
910 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty()) | 910 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty()) |
911 return; | 911 return; |
912 if (info.Holder()->HasRealNamedCallbackProperty(name)) | 912 if (info.Holder()->HasRealNamedCallbackProperty(name)) |
913 return; | 913 return; |
914 if (info.Holder()->HasRealNamedProperty(name)) | 914 if (info.Holder()->HasRealNamedProperty(name)) |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1242 | 1242 |
1243 ActiveDOMObject* V8TestInterface::toActiveDOMObject(v8::Handle<v8::Object> objec
t) | 1243 ActiveDOMObject* V8TestInterface::toActiveDOMObject(v8::Handle<v8::Object> objec
t) |
1244 { | 1244 { |
1245 return toNative(object); | 1245 return toNative(object); |
1246 } | 1246 } |
1247 | 1247 |
1248 | 1248 |
1249 v8::Handle<v8::Object> V8TestInterface::createWrapper(PassRefPtr<TestInterface>
impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) | 1249 v8::Handle<v8::Object> V8TestInterface::createWrapper(PassRefPtr<TestInterface>
impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
1250 { | 1250 { |
1251 ASSERT(impl.get()); | 1251 ASSERT(impl.get()); |
1252 ASSERT(DOMDataStore::getWrapper(impl.get(), isolate).IsEmpty()); | 1252 ASSERT(DOMDataStore::getWrapper<V8TestInterface>(impl.get(), isolate).IsEmpt
y()); |
1253 | 1253 |
1254 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &info, impl.get(), isolate); | 1254 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &info, toWrappedType(impl.get()), isolate); |
1255 if (UNLIKELY(wrapper.IsEmpty())) | 1255 if (UNLIKELY(wrapper.IsEmpty())) |
1256 return wrapper; | 1256 return wrapper; |
1257 installPerContextProperties(wrapper, impl.get(), isolate); | 1257 installPerContextProperties(wrapper, impl.get(), isolate); |
1258 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap
perConfiguration::Dependent); | 1258 V8DOMWrapper::associateObjectWithWrapper<V8TestInterface>(impl, &info, wrapp
er, isolate, WrapperConfiguration::Dependent); |
1259 return wrapper; | 1259 return wrapper; |
1260 } | 1260 } |
1261 void V8TestInterface::derefObject(void* object) | 1261 void V8TestInterface::derefObject(void* object) |
1262 { | 1262 { |
1263 static_cast<TestInterface*>(object)->deref(); | 1263 fromWrappedType(object)->deref(); |
1264 } | 1264 } |
1265 | 1265 |
1266 } // namespace WebCore | 1266 } // namespace WebCore |
1267 | 1267 |
1268 #endif // ENABLE(Condition1) || ENABLE(Condition2) | 1268 #endif // ENABLE(Condition1) || ENABLE(Condition2) |
OLD | NEW |