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

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

Issue 14070022: add back TestPartialInterface bindings test (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 8 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
OLDNEW
1 /* 1 /*
2 This file is part of the WebKit open source project. 2 This file is part of the WebKit open source project.
3 This file has been generated by generate-bindings.pl. DO NOT MODIFY! 3 This file has been generated by generate-bindings.pl. 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 2251 matching lines...) Expand 10 before | Expand all | Expand 10 after
2262 TestObjV8Internal::activityLoggedInIsolatedWorldsAttrGetterAttrSetterForMain World(name, value, info); 2262 TestObjV8Internal::activityLoggedInIsolatedWorldsAttrGetterAttrSetterForMain World(name, value, info);
2263 } 2263 }
2264 2264
2265 static v8::Handle<v8::Value> deprecatedStaticReadOnlyAttrAttrGetter(v8::Local<v8 ::String> name, const v8::AccessorInfo& info) 2265 static v8::Handle<v8::Value> deprecatedStaticReadOnlyAttrAttrGetter(v8::Local<v8 ::String> name, const v8::AccessorInfo& info)
2266 { 2266 {
2267 return v8Integer(TestObj::deprecatedStaticReadOnlyAttr(), info.GetIsolate()) ; 2267 return v8Integer(TestObj::deprecatedStaticReadOnlyAttr(), info.GetIsolate()) ;
2268 } 2268 }
2269 2269
2270 static v8::Handle<v8::Value> deprecatedStaticReadOnlyAttrAttrGetterCallback(v8:: Local<v8::String> name, const v8::AccessorInfo& info) 2270 static v8::Handle<v8::Value> deprecatedStaticReadOnlyAttrAttrGetterCallback(v8:: Local<v8::String> name, const v8::AccessorInfo& info)
2271 { 2271 {
2272 UseCounter::observe(activeDOMWindow(BindingState::instance()), UseCounter::S taticReadonlyAttribute); 2272 UseCounter::measureDeprecatedFeature(activeDOMWindow(BindingState::instance( )), UseCounter::StaticReadonlyAttribute);
2273
2274 PageConsole::reportDeprecation(activeDOMWindow(BindingState::instance()), Pa geConsole::StaticReadonlyAttribute);
2275 return TestObjV8Internal::deprecatedStaticReadOnlyAttrAttrGetter(name, info) ; 2273 return TestObjV8Internal::deprecatedStaticReadOnlyAttrAttrGetter(name, info) ;
2276 } 2274 }
2277 2275
2278 static v8::Handle<v8::Value> deprecatedStaticAttrAttrGetter(v8::Local<v8::String > name, const v8::AccessorInfo& info) 2276 static v8::Handle<v8::Value> deprecatedStaticAttrAttrGetter(v8::Local<v8::String > name, const v8::AccessorInfo& info)
2279 { 2277 {
2280 return v8Integer(TestObj::deprecatedStaticAttr(), info.GetIsolate()); 2278 return v8Integer(TestObj::deprecatedStaticAttr(), info.GetIsolate());
2281 } 2279 }
2282 2280
2283 static v8::Handle<v8::Value> deprecatedStaticAttrAttrGetterCallback(v8::Local<v8 ::String> name, const v8::AccessorInfo& info) 2281 static v8::Handle<v8::Value> deprecatedStaticAttrAttrGetterCallback(v8::Local<v8 ::String> name, const v8::AccessorInfo& info)
2284 { 2282 {
2285 UseCounter::observe(activeDOMWindow(BindingState::instance()), UseCounter::S taticAttribute); 2283 UseCounter::measureDeprecatedFeature(activeDOMWindow(BindingState::instance( )), UseCounter::StaticAttribute);
2286
2287 PageConsole::reportDeprecation(activeDOMWindow(BindingState::instance()), Pa geConsole::StaticAttribute);
2288 return TestObjV8Internal::deprecatedStaticAttrAttrGetter(name, info); 2284 return TestObjV8Internal::deprecatedStaticAttrAttrGetter(name, info);
2289 } 2285 }
2290 2286
2291 static void deprecatedStaticAttrAttrSetter(v8::Local<v8::String> name, v8::Local <v8::Value> value, const v8::AccessorInfo& info) 2287 static void deprecatedStaticAttrAttrSetter(v8::Local<v8::String> name, v8::Local <v8::Value> value, const v8::AccessorInfo& info)
2292 { 2288 {
2293 V8TRYCATCH_VOID(int, v, toInt32(value)); 2289 V8TRYCATCH_VOID(int, v, toInt32(value));
2294 TestObj::setDeprecatedStaticAttr(v); 2290 TestObj::setDeprecatedStaticAttr(v);
2295 return; 2291 return;
2296 } 2292 }
2297 2293
2298 static void deprecatedStaticAttrAttrSetterCallback(v8::Local<v8::String> name, v 8::Local<v8::Value> value, const v8::AccessorInfo& info) 2294 static void deprecatedStaticAttrAttrSetterCallback(v8::Local<v8::String> name, v 8::Local<v8::Value> value, const v8::AccessorInfo& info)
2299 { 2295 {
2300 UseCounter::observe(activeDOMWindow(BindingState::instance()), UseCounter::S taticAttribute); 2296 UseCounter::measureDeprecatedFeature(activeDOMWindow(BindingState::instance( )), UseCounter::StaticAttribute);
2301
2302 PageConsole::reportDeprecation(activeDOMWindow(BindingState::instance()), Pa geConsole::StaticAttribute);
2303 TestObjV8Internal::deprecatedStaticAttrAttrSetter(name, value, info); 2297 TestObjV8Internal::deprecatedStaticAttrAttrSetter(name, value, info);
2304 } 2298 }
2305 2299
2306 static v8::Handle<v8::Value> deprecatedReadonlyAttrAttrGetter(v8::Local<v8::Stri ng> name, const v8::AccessorInfo& info) 2300 static v8::Handle<v8::Value> deprecatedReadonlyAttrAttrGetter(v8::Local<v8::Stri ng> name, const v8::AccessorInfo& info)
2307 { 2301 {
2308 TestObj* imp = V8TestObj::toNative(info.Holder()); 2302 TestObj* imp = V8TestObj::toNative(info.Holder());
2309 return v8Integer(imp->deprecatedReadonlyAttr(), info.GetIsolate()); 2303 return v8Integer(imp->deprecatedReadonlyAttr(), info.GetIsolate());
2310 } 2304 }
2311 2305
2312 static v8::Handle<v8::Value> deprecatedReadonlyAttrAttrGetterCallback(v8::Local< v8::String> name, const v8::AccessorInfo& info) 2306 static v8::Handle<v8::Value> deprecatedReadonlyAttrAttrGetterCallback(v8::Local< v8::String> name, const v8::AccessorInfo& info)
2313 { 2307 {
2314 UseCounter::observe(activeDOMWindow(BindingState::instance()), UseCounter::R eadonlyAttribute); 2308 UseCounter::measureDeprecatedFeature(activeDOMWindow(BindingState::instance( )), UseCounter::ReadonlyAttribute);
2315
2316 PageConsole::reportDeprecation(activeDOMWindow(BindingState::instance()), Pa geConsole::ReadonlyAttribute);
2317 return TestObjV8Internal::deprecatedReadonlyAttrAttrGetter(name, info); 2309 return TestObjV8Internal::deprecatedReadonlyAttrAttrGetter(name, info);
2318 } 2310 }
2319 2311
2320 static v8::Handle<v8::Value> deprecatedAttrAttrGetter(v8::Local<v8::String> name , const v8::AccessorInfo& info) 2312 static v8::Handle<v8::Value> deprecatedAttrAttrGetter(v8::Local<v8::String> name , const v8::AccessorInfo& info)
2321 { 2313 {
2322 TestObj* imp = V8TestObj::toNative(info.Holder()); 2314 TestObj* imp = V8TestObj::toNative(info.Holder());
2323 return v8Integer(imp->deprecatedAttr(), info.GetIsolate()); 2315 return v8Integer(imp->deprecatedAttr(), info.GetIsolate());
2324 } 2316 }
2325 2317
2326 static v8::Handle<v8::Value> deprecatedAttrAttrGetterCallback(v8::Local<v8::Stri ng> name, const v8::AccessorInfo& info) 2318 static v8::Handle<v8::Value> deprecatedAttrAttrGetterCallback(v8::Local<v8::Stri ng> name, const v8::AccessorInfo& info)
2327 { 2319 {
2328 UseCounter::observe(activeDOMWindow(BindingState::instance()), UseCounter::A ttribute); 2320 UseCounter::measureDeprecatedFeature(activeDOMWindow(BindingState::instance( )), UseCounter::Attribute);
2329
2330 PageConsole::reportDeprecation(activeDOMWindow(BindingState::instance()), Pa geConsole::Attribute);
2331 return TestObjV8Internal::deprecatedAttrAttrGetter(name, info); 2321 return TestObjV8Internal::deprecatedAttrAttrGetter(name, info);
2332 } 2322 }
2333 2323
2334 static void deprecatedAttrAttrSetter(v8::Local<v8::String> name, v8::Local<v8::V alue> value, const v8::AccessorInfo& info) 2324 static void deprecatedAttrAttrSetter(v8::Local<v8::String> name, v8::Local<v8::V alue> value, const v8::AccessorInfo& info)
2335 { 2325 {
2336 TestObj* imp = V8TestObj::toNative(info.Holder()); 2326 TestObj* imp = V8TestObj::toNative(info.Holder());
2337 V8TRYCATCH_VOID(int, v, toInt32(value)); 2327 V8TRYCATCH_VOID(int, v, toInt32(value));
2338 imp->setDeprecatedAttr(v); 2328 imp->setDeprecatedAttr(v);
2339 return; 2329 return;
2340 } 2330 }
2341 2331
2342 static void deprecatedAttrAttrSetterCallback(v8::Local<v8::String> name, v8::Loc al<v8::Value> value, const v8::AccessorInfo& info) 2332 static void deprecatedAttrAttrSetterCallback(v8::Local<v8::String> name, v8::Loc al<v8::Value> value, const v8::AccessorInfo& info)
2343 { 2333 {
2344 UseCounter::observe(activeDOMWindow(BindingState::instance()), UseCounter::A ttribute); 2334 UseCounter::measureDeprecatedFeature(activeDOMWindow(BindingState::instance( )), UseCounter::Attribute);
2345
2346 PageConsole::reportDeprecation(activeDOMWindow(BindingState::instance()), Pa geConsole::Attribute);
2347 TestObjV8Internal::deprecatedAttrAttrSetter(name, value, info); 2335 TestObjV8Internal::deprecatedAttrAttrSetter(name, value, info);
2348 } 2336 }
2349 2337
2350 static v8::Handle<v8::Value> TestObjConstructorGetter(v8::Local<v8::String> name , const v8::AccessorInfo& info) 2338 static v8::Handle<v8::Value> TestObjConstructorGetter(v8::Local<v8::String> name , const v8::AccessorInfo& info)
2351 { 2339 {
2352 v8::Handle<v8::Value> data = info.Data(); 2340 v8::Handle<v8::Value> data = info.Data();
2353 ASSERT(data->IsExternal()); 2341 ASSERT(data->IsExternal());
2354 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre ationContext()); 2342 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre ationContext());
2355 if (!perContextData) 2343 if (!perContextData)
2356 return v8Undefined(); 2344 return v8Undefined();
(...skipping 1601 matching lines...) Expand 10 before | Expand all | Expand 10 after
3958 3946
3959 static v8::Handle<v8::Value> deprecatedMethodMethod(const v8::Arguments& args) 3947 static v8::Handle<v8::Value> deprecatedMethodMethod(const v8::Arguments& args)
3960 { 3948 {
3961 TestObj* imp = V8TestObj::toNative(args.Holder()); 3949 TestObj* imp = V8TestObj::toNative(args.Holder());
3962 imp->deprecatedMethod(); 3950 imp->deprecatedMethod();
3963 return v8Undefined(); 3951 return v8Undefined();
3964 } 3952 }
3965 3953
3966 static v8::Handle<v8::Value> deprecatedMethodMethodCallback(const v8::Arguments& args) 3954 static v8::Handle<v8::Value> deprecatedMethodMethodCallback(const v8::Arguments& args)
3967 { 3955 {
3968 UseCounter::observe(activeDOMWindow(BindingState::instance()), UseCounter::M ethod); 3956 UseCounter::measureDeprecatedFeature(activeDOMWindow(BindingState::instance( )), UseCounter::Method);
3969
3970 PageConsole::reportDeprecation(activeDOMWindow(BindingState::instance()), Pa geConsole::Method);
3971 return TestObjV8Internal::deprecatedMethodMethod(args); 3957 return TestObjV8Internal::deprecatedMethodMethod(args);
3972 } 3958 }
3973 3959
3974 static v8::Handle<v8::Value> deprecatedStaticMethodMethod(const v8::Arguments& a rgs) 3960 static v8::Handle<v8::Value> deprecatedStaticMethodMethod(const v8::Arguments& a rgs)
3975 { 3961 {
3976 TestObj::deprecatedStaticMethod(); 3962 TestObj::deprecatedStaticMethod();
3977 return v8Undefined(); 3963 return v8Undefined();
3978 } 3964 }
3979 3965
3980 static v8::Handle<v8::Value> deprecatedStaticMethodMethodCallback(const v8::Argu ments& args) 3966 static v8::Handle<v8::Value> deprecatedStaticMethodMethodCallback(const v8::Argu ments& args)
3981 { 3967 {
3982 UseCounter::observe(activeDOMWindow(BindingState::instance()), UseCounter::S taticMethod); 3968 UseCounter::measureDeprecatedFeature(activeDOMWindow(BindingState::instance( )), UseCounter::StaticMethod);
3983
3984 PageConsole::reportDeprecation(activeDOMWindow(BindingState::instance()), Pa geConsole::StaticMethod);
3985 return TestObjV8Internal::deprecatedStaticMethodMethod(args); 3969 return TestObjV8Internal::deprecatedStaticMethodMethod(args);
3986 } 3970 }
3987 3971
3988 static v8::Handle<v8::Value> constructor(const v8::Arguments& args) 3972 static v8::Handle<v8::Value> constructor(const v8::Arguments& args)
3989 { 3973 {
3990 if (args.Length() < 1) 3974 if (args.Length() < 1)
3991 return throwNotEnoughArgumentsError(args.GetIsolate()); 3975 return throwNotEnoughArgumentsError(args.GetIsolate());
3992 if (args.Length() <= 0 || !args[0]->IsFunction()) 3976 if (args.Length() <= 0 || !args[0]->IsFunction())
3993 return throwTypeError(0, args.GetIsolate()); 3977 return throwTypeError(0, args.GetIsolate());
3994 RefPtr<TestCallback> testCallback = V8TestCallback::create(args[0], getScrip tExecutionContext()); 3978 RefPtr<TestCallback> testCallback = V8TestCallback::create(args[0], getScrip tExecutionContext());
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
4496 installPerContextProperties(wrapper, impl.get(), isolate); 4480 installPerContextProperties(wrapper, impl.get(), isolate);
4497 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep endent); 4481 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep endent);
4498 return wrapper; 4482 return wrapper;
4499 } 4483 }
4500 void V8TestObj::derefObject(void* object) 4484 void V8TestObj::derefObject(void* object)
4501 { 4485 {
4502 static_cast<TestObj*>(object)->deref(); 4486 static_cast<TestObj*>(object)->deref();
4503 } 4487 }
4504 4488
4505 } // namespace WebCore 4489 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestInterface.cpp ('k') | Source/bindings/tests/results/V8TestPartialInterface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698