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

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

Issue 14384004: Get rid of [Callback] extended attribute for parameters in IDL files (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 28 matching lines...) Expand all
39 #include "V8DOMStringList.h" 39 #include "V8DOMStringList.h"
40 #include "V8DOMWrapper.h" 40 #include "V8DOMWrapper.h"
41 #include "V8Document.h" 41 #include "V8Document.h"
42 #include "V8EventListenerList.h" 42 #include "V8EventListenerList.h"
43 #include "V8Float32Array.h" 43 #include "V8Float32Array.h"
44 #include "V8Node.h" 44 #include "V8Node.h"
45 #include "V8SVGDocument.h" 45 #include "V8SVGDocument.h"
46 #include "V8SVGPoint.h" 46 #include "V8SVGPoint.h"
47 #include "V8ScriptProfile.h" 47 #include "V8ScriptProfile.h"
48 #include "V8TestCallback.h" 48 #include "V8TestCallback.h"
49 #include "V8TestNode.h"
49 #include "V8TestSubObj.h" 50 #include "V8TestSubObj.h"
50 #include "V8a.h"
51 #include "V8b.h"
52 #include "V8bool.h" 51 #include "V8bool.h"
53 #include "V8d.h"
54 #include "V8e.h"
55 #include "core/page/Frame.h" 52 #include "core/page/Frame.h"
56 #include "core/page/RuntimeEnabledFeatures.h" 53 #include "core/page/RuntimeEnabledFeatures.h"
57 #include "core/page/UseCounter.h" 54 #include "core/page/UseCounter.h"
58 #include <wtf/Float32Array.h> 55 #include <wtf/Float32Array.h>
59 #include <wtf/GetPtr.h> 56 #include <wtf/GetPtr.h>
60 #include <wtf/RefCounted.h> 57 #include <wtf/RefCounted.h>
61 #include <wtf/RefPtr.h> 58 #include <wtf/RefPtr.h>
62 #include <wtf/UnusedParam.h> 59 #include <wtf/UnusedParam.h>
63 #include <wtf/Vector.h> 60 #include <wtf/Vector.h>
64 61
(...skipping 3429 matching lines...) Expand 10 before | Expand all | Expand 10 after
3494 static v8::Handle<v8::Value> getSVGDocumentMethodCallback(const v8::Arguments& a rgs) 3491 static v8::Handle<v8::Value> getSVGDocumentMethodCallback(const v8::Arguments& a rgs)
3495 { 3492 {
3496 return TestObjV8Internal::getSVGDocumentMethod(args); 3493 return TestObjV8Internal::getSVGDocumentMethod(args);
3497 } 3494 }
3498 3495
3499 static v8::Handle<v8::Value> convert1Method(const v8::Arguments& args) 3496 static v8::Handle<v8::Value> convert1Method(const v8::Arguments& args)
3500 { 3497 {
3501 if (args.Length() < 1) 3498 if (args.Length() < 1)
3502 return throwNotEnoughArgumentsError(args.GetIsolate()); 3499 return throwNotEnoughArgumentsError(args.GetIsolate());
3503 TestObj* imp = V8TestObj::toNative(args.Holder()); 3500 TestObj* imp = V8TestObj::toNative(args.Holder());
3504 V8TRYCATCH(a*, value, V8a::HasInstance(args[0], args.GetIsolate(), worldType (args.GetIsolate())) ? V8a::toNative(v8::Handle<v8::Object>::Cast(args[0])) : 0) ; 3501 V8TRYCATCH(TestNode*, value, V8TestNode::HasInstance(args[0], args.GetIsolat e(), worldType(args.GetIsolate())) ? V8TestNode::toNative(v8::Handle<v8::Object> ::Cast(args[0])) : 0);
3505 imp->convert1(value); 3502 imp->convert1(value);
3506 return v8Undefined(); 3503 return v8Undefined();
3507 } 3504 }
3508 3505
3509 static v8::Handle<v8::Value> convert1MethodCallback(const v8::Arguments& args) 3506 static v8::Handle<v8::Value> convert1MethodCallback(const v8::Arguments& args)
3510 { 3507 {
3511 return TestObjV8Internal::convert1Method(args); 3508 return TestObjV8Internal::convert1Method(args);
3512 } 3509 }
3513 3510
3514 static v8::Handle<v8::Value> convert2Method(const v8::Arguments& args) 3511 static v8::Handle<v8::Value> convert2Method(const v8::Arguments& args)
3515 { 3512 {
3516 if (args.Length() < 1) 3513 if (args.Length() < 1)
3517 return throwNotEnoughArgumentsError(args.GetIsolate()); 3514 return throwNotEnoughArgumentsError(args.GetIsolate());
3518 TestObj* imp = V8TestObj::toNative(args.Holder()); 3515 TestObj* imp = V8TestObj::toNative(args.Holder());
3519 V8TRYCATCH(b*, value, V8b::HasInstance(args[0], args.GetIsolate(), worldType (args.GetIsolate())) ? V8b::toNative(v8::Handle<v8::Object>::Cast(args[0])) : 0) ; 3516 V8TRYCATCH(TestNode*, value, V8TestNode::HasInstance(args[0], args.GetIsolat e(), worldType(args.GetIsolate())) ? V8TestNode::toNative(v8::Handle<v8::Object> ::Cast(args[0])) : 0);
3520 imp->convert2(value); 3517 imp->convert2(value);
3521 return v8Undefined(); 3518 return v8Undefined();
3522 } 3519 }
3523 3520
3524 static v8::Handle<v8::Value> convert2MethodCallback(const v8::Arguments& args) 3521 static v8::Handle<v8::Value> convert2MethodCallback(const v8::Arguments& args)
3525 { 3522 {
3526 return TestObjV8Internal::convert2Method(args); 3523 return TestObjV8Internal::convert2Method(args);
3527 } 3524 }
3528 3525
3529 static v8::Handle<v8::Value> convert4Method(const v8::Arguments& args) 3526 static v8::Handle<v8::Value> convert4Method(const v8::Arguments& args)
3530 { 3527 {
3531 if (args.Length() < 1) 3528 if (args.Length() < 1)
3532 return throwNotEnoughArgumentsError(args.GetIsolate()); 3529 return throwNotEnoughArgumentsError(args.GetIsolate());
3533 TestObj* imp = V8TestObj::toNative(args.Holder()); 3530 TestObj* imp = V8TestObj::toNative(args.Holder());
3534 V8TRYCATCH(d*, value, V8d::HasInstance(args[0], args.GetIsolate(), worldType (args.GetIsolate())) ? V8d::toNative(v8::Handle<v8::Object>::Cast(args[0])) : 0) ; 3531 V8TRYCATCH(TestNode*, value, V8TestNode::HasInstance(args[0], args.GetIsolat e(), worldType(args.GetIsolate())) ? V8TestNode::toNative(v8::Handle<v8::Object> ::Cast(args[0])) : 0);
3535 imp->convert4(value); 3532 imp->convert4(value);
3536 return v8Undefined(); 3533 return v8Undefined();
3537 } 3534 }
3538 3535
3539 static v8::Handle<v8::Value> convert4MethodCallback(const v8::Arguments& args) 3536 static v8::Handle<v8::Value> convert4MethodCallback(const v8::Arguments& args)
3540 { 3537 {
3541 return TestObjV8Internal::convert4Method(args); 3538 return TestObjV8Internal::convert4Method(args);
3542 } 3539 }
3543 3540
3544 static v8::Handle<v8::Value> convert5Method(const v8::Arguments& args) 3541 static v8::Handle<v8::Value> convert5Method(const v8::Arguments& args)
3545 { 3542 {
3546 if (args.Length() < 1) 3543 if (args.Length() < 1)
3547 return throwNotEnoughArgumentsError(args.GetIsolate()); 3544 return throwNotEnoughArgumentsError(args.GetIsolate());
3548 TestObj* imp = V8TestObj::toNative(args.Holder()); 3545 TestObj* imp = V8TestObj::toNative(args.Holder());
3549 V8TRYCATCH(e*, value, V8e::HasInstance(args[0], args.GetIsolate(), worldType (args.GetIsolate())) ? V8e::toNative(v8::Handle<v8::Object>::Cast(args[0])) : 0) ; 3546 V8TRYCATCH(TestNode*, value, V8TestNode::HasInstance(args[0], args.GetIsolat e(), worldType(args.GetIsolate())) ? V8TestNode::toNative(v8::Handle<v8::Object> ::Cast(args[0])) : 0);
3550 imp->convert5(value); 3547 imp->convert5(value);
3551 return v8Undefined(); 3548 return v8Undefined();
3552 } 3549 }
3553 3550
3554 static v8::Handle<v8::Value> convert5MethodCallback(const v8::Arguments& args) 3551 static v8::Handle<v8::Value> convert5MethodCallback(const v8::Arguments& args)
3555 { 3552 {
3556 return TestObjV8Internal::convert5Method(args); 3553 return TestObjV8Internal::convert5Method(args);
3557 } 3554 }
3558 3555
3559 static v8::Handle<v8::Value> mutablePointFunctionMethod(const v8::Arguments& arg s) 3556 static v8::Handle<v8::Value> mutablePointFunctionMethod(const v8::Arguments& arg s)
(...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after
4361 proto->Set(v8::String::NewSymbol("stringArrayFunction"), v8::FunctionTemplat e::New(TestObjV8Internal::stringArrayFunctionMethodCallback, v8Undefined(), stri ngArrayFunctionSignature, 1)); 4358 proto->Set(v8::String::NewSymbol("stringArrayFunction"), v8::FunctionTemplat e::New(TestObjV8Internal::stringArrayFunctionMethodCallback, v8Undefined(), stri ngArrayFunctionSignature, 1));
4362 4359
4363 // Custom Signature 'domStringListFunction' 4360 // Custom Signature 'domStringListFunction'
4364 const int domStringListFunctionArgc = 1; 4361 const int domStringListFunctionArgc = 1;
4365 v8::Handle<v8::FunctionTemplate> domStringListFunctionArgv[domStringListFunc tionArgc] = { V8PerIsolateData::from(isolate)->rawTemplate(&V8DOMStringList::inf o, currentWorldType) }; 4362 v8::Handle<v8::FunctionTemplate> domStringListFunctionArgv[domStringListFunc tionArgc] = { V8PerIsolateData::from(isolate)->rawTemplate(&V8DOMStringList::inf o, currentWorldType) };
4366 v8::Handle<v8::Signature> domStringListFunctionSignature = v8::Signature::Ne w(desc, domStringListFunctionArgc, domStringListFunctionArgv); 4363 v8::Handle<v8::Signature> domStringListFunctionSignature = v8::Signature::Ne w(desc, domStringListFunctionArgc, domStringListFunctionArgv);
4367 proto->Set(v8::String::NewSymbol("domStringListFunction"), v8::FunctionTempl ate::New(TestObjV8Internal::domStringListFunctionMethodCallback, v8Undefined(), domStringListFunctionSignature, 1)); 4364 proto->Set(v8::String::NewSymbol("domStringListFunction"), v8::FunctionTempl ate::New(TestObjV8Internal::domStringListFunctionMethodCallback, v8Undefined(), domStringListFunctionSignature, 1));
4368 4365
4369 // Custom Signature 'convert1' 4366 // Custom Signature 'convert1'
4370 const int convert1Argc = 1; 4367 const int convert1Argc = 1;
4371 v8::Handle<v8::FunctionTemplate> convert1Argv[convert1Argc] = { V8PerIsolate Data::from(isolate)->rawTemplate(&V8a::info, currentWorldType) }; 4368 v8::Handle<v8::FunctionTemplate> convert1Argv[convert1Argc] = { V8PerIsolate Data::from(isolate)->rawTemplate(&V8TestNode::info, currentWorldType) };
4372 v8::Handle<v8::Signature> convert1Signature = v8::Signature::New(desc, conve rt1Argc, convert1Argv); 4369 v8::Handle<v8::Signature> convert1Signature = v8::Signature::New(desc, conve rt1Argc, convert1Argv);
4373 proto->Set(v8::String::NewSymbol("convert1"), v8::FunctionTemplate::New(Test ObjV8Internal::convert1MethodCallback, v8Undefined(), convert1Signature, 1)); 4370 proto->Set(v8::String::NewSymbol("convert1"), v8::FunctionTemplate::New(Test ObjV8Internal::convert1MethodCallback, v8Undefined(), convert1Signature, 1));
4374 4371
4375 // Custom Signature 'convert2' 4372 // Custom Signature 'convert2'
4376 const int convert2Argc = 1; 4373 const int convert2Argc = 1;
4377 v8::Handle<v8::FunctionTemplate> convert2Argv[convert2Argc] = { V8PerIsolate Data::from(isolate)->rawTemplate(&V8b::info, currentWorldType) }; 4374 v8::Handle<v8::FunctionTemplate> convert2Argv[convert2Argc] = { V8PerIsolate Data::from(isolate)->rawTemplate(&V8TestNode::info, currentWorldType) };
4378 v8::Handle<v8::Signature> convert2Signature = v8::Signature::New(desc, conve rt2Argc, convert2Argv); 4375 v8::Handle<v8::Signature> convert2Signature = v8::Signature::New(desc, conve rt2Argc, convert2Argv);
4379 proto->Set(v8::String::NewSymbol("convert2"), v8::FunctionTemplate::New(Test ObjV8Internal::convert2MethodCallback, v8Undefined(), convert2Signature, 1)); 4376 proto->Set(v8::String::NewSymbol("convert2"), v8::FunctionTemplate::New(Test ObjV8Internal::convert2MethodCallback, v8Undefined(), convert2Signature, 1));
4380 4377
4381 // Custom Signature 'convert4' 4378 // Custom Signature 'convert4'
4382 const int convert4Argc = 1; 4379 const int convert4Argc = 1;
4383 v8::Handle<v8::FunctionTemplate> convert4Argv[convert4Argc] = { V8PerIsolate Data::from(isolate)->rawTemplate(&V8d::info, currentWorldType) }; 4380 v8::Handle<v8::FunctionTemplate> convert4Argv[convert4Argc] = { V8PerIsolate Data::from(isolate)->rawTemplate(&V8TestNode::info, currentWorldType) };
4384 v8::Handle<v8::Signature> convert4Signature = v8::Signature::New(desc, conve rt4Argc, convert4Argv); 4381 v8::Handle<v8::Signature> convert4Signature = v8::Signature::New(desc, conve rt4Argc, convert4Argv);
4385 proto->Set(v8::String::NewSymbol("convert4"), v8::FunctionTemplate::New(Test ObjV8Internal::convert4MethodCallback, v8Undefined(), convert4Signature, 1)); 4382 proto->Set(v8::String::NewSymbol("convert4"), v8::FunctionTemplate::New(Test ObjV8Internal::convert4MethodCallback, v8Undefined(), convert4Signature, 1));
4386 4383
4387 // Custom Signature 'convert5' 4384 // Custom Signature 'convert5'
4388 const int convert5Argc = 1; 4385 const int convert5Argc = 1;
4389 v8::Handle<v8::FunctionTemplate> convert5Argv[convert5Argc] = { V8PerIsolate Data::from(isolate)->rawTemplate(&V8e::info, currentWorldType) }; 4386 v8::Handle<v8::FunctionTemplate> convert5Argv[convert5Argc] = { V8PerIsolate Data::from(isolate)->rawTemplate(&V8TestNode::info, currentWorldType) };
4390 v8::Handle<v8::Signature> convert5Signature = v8::Signature::New(desc, conve rt5Argc, convert5Argv); 4387 v8::Handle<v8::Signature> convert5Signature = v8::Signature::New(desc, conve rt5Argc, convert5Argv);
4391 proto->Set(v8::String::NewSymbol("convert5"), v8::FunctionTemplate::New(Test ObjV8Internal::convert5MethodCallback, v8Undefined(), convert5Signature, 1)); 4388 proto->Set(v8::String::NewSymbol("convert5"), v8::FunctionTemplate::New(Test ObjV8Internal::convert5MethodCallback, v8Undefined(), convert5Signature, 1));
4392 4389
4393 // Custom Signature 'variadicNodeMethod' 4390 // Custom Signature 'variadicNodeMethod'
4394 const int variadicNodeMethodArgc = 2; 4391 const int variadicNodeMethodArgc = 2;
4395 v8::Handle<v8::FunctionTemplate> variadicNodeMethodArgv[variadicNodeMethodAr gc] = { V8PerIsolateData::from(isolate)->rawTemplate(&V8Node::info, currentWorld Type), V8PerIsolateData::from(isolate)->rawTemplate(&V8Node::info, currentWorldT ype) }; 4392 v8::Handle<v8::FunctionTemplate> variadicNodeMethodArgv[variadicNodeMethodAr gc] = { V8PerIsolateData::from(isolate)->rawTemplate(&V8Node::info, currentWorld Type), V8PerIsolateData::from(isolate)->rawTemplate(&V8Node::info, currentWorldT ype) };
4396 v8::Handle<v8::Signature> variadicNodeMethodSignature = v8::Signature::New(d esc, variadicNodeMethodArgc, variadicNodeMethodArgv); 4393 v8::Handle<v8::Signature> variadicNodeMethodSignature = v8::Signature::New(d esc, variadicNodeMethodArgc, variadicNodeMethodArgv);
4397 proto->Set(v8::String::NewSymbol("variadicNodeMethod"), v8::FunctionTemplate ::New(TestObjV8Internal::variadicNodeMethodMethodCallback, v8Undefined(), variad icNodeMethodSignature, 2)); 4394 proto->Set(v8::String::NewSymbol("variadicNodeMethod"), v8::FunctionTemplate ::New(TestObjV8Internal::variadicNodeMethodMethodCallback, v8Undefined(), variad icNodeMethodSignature, 2));
4398 desc->Set(v8::String::NewSymbol("deprecatedStaticMethod"), v8::FunctionTempl ate::New(TestObjV8Internal::deprecatedStaticMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature>(), 0)); 4395 desc->Set(v8::String::NewSymbol("deprecatedStaticMethod"), v8::FunctionTempl ate::New(TestObjV8Internal::deprecatedStaticMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature>(), 0));
4399 V8DOMConfiguration::batchConfigureConstants(desc, proto, V8TestObjConsts, WT F_ARRAY_LENGTH(V8TestObjConsts), isolate); 4396 V8DOMConfiguration::batchConfigureConstants(desc, proto, V8TestObjConsts, WT F_ARRAY_LENGTH(V8TestObjConsts), isolate);
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
4480 installPerContextProperties(wrapper, impl.get(), isolate); 4477 installPerContextProperties(wrapper, impl.get(), isolate);
4481 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep endent); 4478 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep endent);
4482 return wrapper; 4479 return wrapper;
4483 } 4480 }
4484 void V8TestObj::derefObject(void* object) 4481 void V8TestObj::derefObject(void* object)
4485 { 4482 {
4486 static_cast<TestObj*>(object)->deref(); 4483 static_cast<TestObj*>(object)->deref();
4487 } 4484 }
4488 4485
4489 } // namespace WebCore 4486 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698