Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(452)

Side by Side Diff: Source/bindings/tests/results/V8TestInterface.cpp

Issue 18778002: Inherit EventTarget interface instead of duplicating its code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 919 matching lines...) Expand 10 before | Expand all | Expand 10 after
930 930
931 ScriptExecutionContext* context = getScriptExecutionContext(); 931 ScriptExecutionContext* context = getScriptExecutionContext();
932 932
933 RefPtr<TestInterface> impl = TestInterface::create(context, str1, str2, ec); 933 RefPtr<TestInterface> impl = TestInterface::create(context, str1, str2, ec);
934 v8::Handle<v8::Object> wrapper = args.Holder(); 934 v8::Handle<v8::Object> wrapper = args.Holder();
935 if (ec) { 935 if (ec) {
936 setDOMException(ec, args.GetIsolate()); 936 setDOMException(ec, args.GetIsolate());
937 return; 937 return;
938 } 938 }
939 939
940 V8DOMWrapper::associateObjectWithWrapper(impl.release(), &V8TestInterface::i nfo, wrapper, args.GetIsolate(), WrapperConfiguration::Dependent); 940 V8DOMWrapper::associateObjectWithWrapper<V8TestInterface>(impl.release(), &V 8TestInterface::info, wrapper, args.GetIsolate(), WrapperConfiguration::Dependen t);
941 args.GetReturnValue().Set(wrapper); 941 args.GetReturnValue().Set(wrapper);
942 } 942 }
943 943
944 static void namedPropertyGetter(v8::Local<v8::String> name, const v8::PropertyCa llbackInfo<v8::Value>& info) 944 static void namedPropertyGetter(v8::Local<v8::String> name, const v8::PropertyCa llbackInfo<v8::Value>& info)
945 { 945 {
946 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty()) 946 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty())
947 return; 947 return;
948 if (info.Holder()->HasRealNamedCallbackProperty(name)) 948 if (info.Holder()->HasRealNamedCallbackProperty(name))
949 return; 949 return;
950 if (info.Holder()->HasRealNamedProperty(name)) 950 if (info.Holder()->HasRealNamedProperty(name))
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
1278 1278
1279 ActiveDOMObject* V8TestInterface::toActiveDOMObject(v8::Handle<v8::Object> objec t) 1279 ActiveDOMObject* V8TestInterface::toActiveDOMObject(v8::Handle<v8::Object> objec t)
1280 { 1280 {
1281 return toNative(object); 1281 return toNative(object);
1282 } 1282 }
1283 1283
1284 1284
1285 v8::Handle<v8::Object> V8TestInterface::createWrapper(PassRefPtr<TestInterface> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) 1285 v8::Handle<v8::Object> V8TestInterface::createWrapper(PassRefPtr<TestInterface> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
1286 { 1286 {
1287 ASSERT(impl.get()); 1287 ASSERT(impl.get());
1288 ASSERT(DOMDataStore::getWrapper(impl.get(), isolate).IsEmpty()); 1288 ASSERT(DOMDataStore::getWrapper<V8TestInterface>(impl.get(), isolate).IsEmpt y());
1289 1289
1290 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext , &info, impl.get(), isolate); 1290 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext , &info, toInternalPointer(impl.get()), isolate);
1291 if (UNLIKELY(wrapper.IsEmpty())) 1291 if (UNLIKELY(wrapper.IsEmpty()))
1292 return wrapper; 1292 return wrapper;
1293 installPerContextProperties(wrapper, impl.get(), isolate); 1293 installPerContextProperties(wrapper, impl.get(), isolate);
1294 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap perConfiguration::Dependent); 1294 V8DOMWrapper::associateObjectWithWrapper<V8TestInterface>(impl, &info, wrapp er, isolate, WrapperConfiguration::Dependent);
1295 return wrapper; 1295 return wrapper;
1296 } 1296 }
1297 void V8TestInterface::derefObject(void* object) 1297 void V8TestInterface::derefObject(void* object)
1298 { 1298 {
1299 static_cast<TestInterface*>(object)->deref(); 1299 fromInternalPointer(object)->deref();
1300 } 1300 }
1301 1301
1302 } // namespace WebCore 1302 } // namespace WebCore
1303 1303
1304 #endif // ENABLE(Condition1) || ENABLE(Condition2) 1304 #endif // ENABLE(Condition1) || ENABLE(Condition2)
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestInterface.h ('k') | Source/bindings/tests/results/V8TestInterfaceImplementedAs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698