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

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

Issue 75163003: Remove deprecated v8::External::New calls (blink side) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 // Custom Signature 'supplementalMethod2' 432 // Custom Signature 'supplementalMethod2'
433 const int supplementalMethod2Argc = 2; 433 const int supplementalMethod2Argc = 2;
434 v8::Handle<v8::FunctionTemplate> supplementalMethod2Argv[supplementalMethod2 Argc] = { v8::Handle<v8::FunctionTemplate>(), V8PerIsolateData::from(isolate)->r awTemplate(&V8TestObject::wrapperTypeInfo, currentWorldType) }; 434 v8::Handle<v8::FunctionTemplate> supplementalMethod2Argv[supplementalMethod2 Argc] = { v8::Handle<v8::FunctionTemplate>(), V8PerIsolateData::from(isolate)->r awTemplate(&V8TestObject::wrapperTypeInfo, currentWorldType) };
435 v8::Handle<v8::Signature> supplementalMethod2Signature = v8::Signature::New( functionTemplate, supplementalMethod2Argc, supplementalMethod2Argv); 435 v8::Handle<v8::Signature> supplementalMethod2Signature = v8::Signature::New( functionTemplate, supplementalMethod2Argc, supplementalMethod2Argv);
436 prototypeTemplate->Set(v8::String::NewSymbol("supplementalMethod2"), v8::Fun ctionTemplate::New(SupportTestInterfaceV8Internal::supplementalMethod2MethodCall back, v8Undefined(), supplementalMethod2Signature, 2)); 436 prototypeTemplate->Set(v8::String::NewSymbol("supplementalMethod2"), v8::Fun ctionTemplate::New(SupportTestInterfaceV8Internal::supplementalMethod2MethodCall back, v8Undefined(), supplementalMethod2Signature, 2));
437 #endif // ENABLE(Condition11) || ENABLE(Condition12) 437 #endif // ENABLE(Condition11) || ENABLE(Condition12)
438 #if ENABLE(Condition11) || ENABLE(Condition12) 438 #if ENABLE(Condition11) || ENABLE(Condition12)
439 functionTemplate->Set(v8::String::NewSymbol("supplementalMethod4"), v8::Func tionTemplate::New(SupportTestInterfaceV8Internal::supplementalMethod4MethodCallb ack, v8Undefined(), v8::Local<v8::Signature>(), 0)); 439 functionTemplate->Set(v8::String::NewSymbol("supplementalMethod4"), v8::Func tionTemplate::New(SupportTestInterfaceV8Internal::supplementalMethod4MethodCallb ack, v8Undefined(), v8::Local<v8::Signature>(), 0));
440 #endif // ENABLE(Condition11) || ENABLE(Condition12) 440 #endif // ENABLE(Condition11) || ENABLE(Condition12)
441 #if ENABLE(Condition11) || ENABLE(Condition12) 441 #if ENABLE(Condition11) || ENABLE(Condition12)
442 functionTemplate->SetNativeDataProperty(v8::String::NewSymbol("supplementalS taticReadOnlyAttr"), SupportTestInterfaceV8Internal::supplementalStaticReadOnlyA ttrAttributeGetterCallback, 0, v8::External::New(0), static_cast<v8::PropertyAtt ribute>(v8::None), v8::Handle<v8::AccessorSignature>(), static_cast<v8::AccessCo ntrol>(v8::DEFAULT)); 442 functionTemplate->SetNativeDataProperty(v8::String::NewSymbol("supplementalS taticReadOnlyAttr"), SupportTestInterfaceV8Internal::supplementalStaticReadOnlyA ttrAttributeGetterCallback, 0, v8::External::New(isolate, 0), static_cast<v8::Pr opertyAttribute>(v8::None), v8::Handle<v8::AccessorSignature>(), static_cast<v8: :AccessControl>(v8::DEFAULT));
443 #endif // ENABLE(Condition11) || ENABLE(Condition12) 443 #endif // ENABLE(Condition11) || ENABLE(Condition12)
444 #if ENABLE(Condition11) || ENABLE(Condition12) 444 #if ENABLE(Condition11) || ENABLE(Condition12)
445 functionTemplate->SetNativeDataProperty(v8::String::NewSymbol("supplementalS taticAttr"), SupportTestInterfaceV8Internal::supplementalStaticAttrAttributeGett erCallback, SupportTestInterfaceV8Internal::supplementalStaticAttrAttributeSette rCallback, v8::External::New(0), static_cast<v8::PropertyAttribute>(v8::None), v 8::Handle<v8::AccessorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT)) ; 445 functionTemplate->SetNativeDataProperty(v8::String::NewSymbol("supplementalS taticAttr"), SupportTestInterfaceV8Internal::supplementalStaticAttrAttributeGett erCallback, SupportTestInterfaceV8Internal::supplementalStaticAttrAttributeSette rCallback, v8::External::New(isolate, 0), static_cast<v8::PropertyAttribute>(v8: :None), v8::Handle<v8::AccessorSignature>(), static_cast<v8::AccessControl>(v8:: DEFAULT));
446 #endif // ENABLE(Condition11) || ENABLE(Condition12) 446 #endif // ENABLE(Condition11) || ENABLE(Condition12)
447 447
448 // Custom toString template 448 // Custom toString template
449 functionTemplate->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::c urrent()->toStringTemplate()); 449 functionTemplate->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::c urrent()->toStringTemplate());
450 return functionTemplate; 450 return functionTemplate;
451 } 451 }
452 452
453 v8::Handle<v8::FunctionTemplate> V8SupportTestInterface::GetTemplate(v8::Isolate * isolate, WrapperWorldType currentWorldType) 453 v8::Handle<v8::FunctionTemplate> V8SupportTestInterface::GetTemplate(v8::Isolate * isolate, WrapperWorldType currentWorldType)
454 { 454 {
455 V8PerIsolateData* data = V8PerIsolateData::from(isolate); 455 V8PerIsolateData* data = V8PerIsolateData::from(isolate);
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 V8DOMWrapper::associateObjectWithWrapper<V8SupportTestInterface>(impl, &wrap perTypeInfo, wrapper, isolate, WrapperConfiguration::Independent); 506 V8DOMWrapper::associateObjectWithWrapper<V8SupportTestInterface>(impl, &wrap perTypeInfo, wrapper, isolate, WrapperConfiguration::Independent);
507 return wrapper; 507 return wrapper;
508 } 508 }
509 509
510 void V8SupportTestInterface::derefObject(void* object) 510 void V8SupportTestInterface::derefObject(void* object)
511 { 511 {
512 fromInternalPointer(object)->deref(); 512 fromInternalPointer(object)->deref();
513 } 513 }
514 514
515 } // namespace WebCore 515 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698