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

Side by Side Diff: Source/bindings/tests/results/V8TestActiveDOMObject.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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl ate, "TestActiveDOMObject", v8::Local<v8::FunctionTemplate>(), V8TestActiveDOMOb ject::internalFieldCount, 329 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl ate, "TestActiveDOMObject", v8::Local<v8::FunctionTemplate>(), V8TestActiveDOMOb ject::internalFieldCount,
330 V8TestActiveDOMObjectAttributes, WTF_ARRAY_LENGTH(V8TestActiveDOMObjectA ttributes), 330 V8TestActiveDOMObjectAttributes, WTF_ARRAY_LENGTH(V8TestActiveDOMObjectA ttributes),
331 0, 0, 331 0, 0,
332 0, 0, 332 0, 0,
333 isolate, currentWorldType); 333 isolate, currentWorldType);
334 UNUSED_PARAM(defaultSignature); 334 UNUSED_PARAM(defaultSignature);
335 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT emplate(); 335 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT emplate();
336 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp eTemplate(); 336 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp eTemplate();
337 UNUSED_PARAM(instanceTemplate); 337 UNUSED_PARAM(instanceTemplate);
338 UNUSED_PARAM(prototypeTemplate); 338 UNUSED_PARAM(prototypeTemplate);
339 instanceTemplate->SetAccessCheckCallbacks(TestActiveDOMObjectV8Internal::nam edSecurityCheck, TestActiveDOMObjectV8Internal::indexedSecurityCheck, v8::Extern al::New(const_cast<WrapperTypeInfo*>(&V8TestActiveDOMObject::wrapperTypeInfo))); 339 instanceTemplate->SetAccessCheckCallbacks(TestActiveDOMObjectV8Internal::nam edSecurityCheck, TestActiveDOMObjectV8Internal::indexedSecurityCheck, v8::Extern al::New(isolate, const_cast<WrapperTypeInfo*>(&V8TestActiveDOMObject::wrapperTyp eInfo)));
340 340
341 // Custom Signature 'excitingFunction' 341 // Custom Signature 'excitingFunction'
342 const int excitingFunctionArgc = 1; 342 const int excitingFunctionArgc = 1;
343 v8::Handle<v8::FunctionTemplate> excitingFunctionArgv[excitingFunctionArgc] = { V8PerIsolateData::from(isolate)->rawTemplate(&V8Node::wrapperTypeInfo, curre ntWorldType) }; 343 v8::Handle<v8::FunctionTemplate> excitingFunctionArgv[excitingFunctionArgc] = { V8PerIsolateData::from(isolate)->rawTemplate(&V8Node::wrapperTypeInfo, curre ntWorldType) };
344 v8::Handle<v8::Signature> excitingFunctionSignature = v8::Signature::New(fun ctionTemplate, excitingFunctionArgc, excitingFunctionArgv); 344 v8::Handle<v8::Signature> excitingFunctionSignature = v8::Signature::New(fun ctionTemplate, excitingFunctionArgc, excitingFunctionArgv);
345 prototypeTemplate->Set(v8::String::NewSymbol("excitingFunction"), v8::Functi onTemplate::New(TestActiveDOMObjectV8Internal::excitingFunctionMethodCallback, v 8Undefined(), excitingFunctionSignature, 1)); 345 prototypeTemplate->Set(v8::String::NewSymbol("excitingFunction"), v8::Functi onTemplate::New(TestActiveDOMObjectV8Internal::excitingFunctionMethodCallback, v 8Undefined(), excitingFunctionSignature, 1));
346 346
347 // Function 'postMessage' (Extended Attributes: 'DoNotCheckSecurity') 347 // Function 'postMessage' (Extended Attributes: 'DoNotCheckSecurity')
348 prototypeTemplate->SetAccessor(v8::String::NewSymbol("postMessage"), TestAct iveDOMObjectV8Internal::postMessageAttributeGetterCallback, TestActiveDOMObjectV 8Internal::TestActiveDOMObjectDomainSafeFunctionSetter, v8Undefined(), v8::ALL_C AN_READ, static_cast<v8::PropertyAttribute>(v8::DontDelete)); 348 prototypeTemplate->SetAccessor(v8::String::NewSymbol("postMessage"), TestAct iveDOMObjectV8Internal::postMessageAttributeGetterCallback, TestActiveDOMObjectV 8Internal::TestActiveDOMObjectDomainSafeFunctionSetter, v8Undefined(), v8::ALL_C AN_READ, static_cast<v8::PropertyAttribute>(v8::DontDelete));
349 349
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 V8DOMWrapper::associateObjectWithWrapper<V8TestActiveDOMObject>(impl, &wrapp erTypeInfo, wrapper, isolate, WrapperConfiguration::Independent); 405 V8DOMWrapper::associateObjectWithWrapper<V8TestActiveDOMObject>(impl, &wrapp erTypeInfo, wrapper, isolate, WrapperConfiguration::Independent);
406 return wrapper; 406 return wrapper;
407 } 407 }
408 408
409 void V8TestActiveDOMObject::derefObject(void* object) 409 void V8TestActiveDOMObject::derefObject(void* object)
410 { 410 {
411 fromInternalPointer(object)->deref(); 411 fromInternalPointer(object)->deref();
412 } 412 }
413 413
414 } // namespace WebCore 414 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698