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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceGarbageCollected.cpp

Issue 2571063002: Remove Blink-in-JS (Closed)
Patch Set: Created 4 years 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. 5 // This file has been auto-generated by code_generator_v8.py.
6 // DO NOT MODIFY! 6 // DO NOT MODIFY!
7 7
8 // clang-format off 8 // clang-format off
9 #include "V8TestInterfaceGarbageCollected.h" 9 #include "V8TestInterfaceGarbageCollected.h"
10 10
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 332
333 TestInterfaceGarbageCollected* impl = TestInterfaceGarbageCollected::create(st r); 333 TestInterfaceGarbageCollected* impl = TestInterfaceGarbageCollected::create(st r);
334 v8::Local<v8::Object> wrapper = info.Holder(); 334 v8::Local<v8::Object> wrapper = info.Holder();
335 wrapper = impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceGarbag eCollected::wrapperTypeInfo, wrapper); 335 wrapper = impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceGarbag eCollected::wrapperTypeInfo, wrapper);
336 v8SetReturnValue(info, wrapper); 336 v8SetReturnValue(info, wrapper);
337 } 337 }
338 338
339 } // namespace TestInterfaceGarbageCollectedV8Internal 339 } // namespace TestInterfaceGarbageCollectedV8Internal
340 340
341 const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceGarbageCollectedA ccessors[] = { 341 const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceGarbageCollectedA ccessors[] = {
342 {"attr1", TestInterfaceGarbageCollectedV8Internal::attr1AttributeGetterCallb ack, TestInterfaceGarbageCollectedV8Internal::attr1AttributeSetterCallback, 0, 0 , nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMCo nfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfigur ation::CheckHolder}, 342 {"attr1", TestInterfaceGarbageCollectedV8Internal::attr1AttributeGetterCallb ack, TestInterfaceGarbageCollectedV8Internal::attr1AttributeSetterCallback, 0, 0 , nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMCo nfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
343 }; 343 };
344 344
345 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceGarbageCollectedMet hods[] = { 345 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceGarbageCollectedMet hods[] = {
346 {"func", TestInterfaceGarbageCollectedV8Internal::funcMethodCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototy pe, V8DOMConfiguration::CheckHolder}, 346 {"func", TestInterfaceGarbageCollectedV8Internal::funcMethodCallback, 0, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
347 {"keys", TestInterfaceGarbageCollectedV8Internal::keysMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototy pe, V8DOMConfiguration::CheckHolder}, 347 {"keys", TestInterfaceGarbageCollectedV8Internal::keysMethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
348 {"values", TestInterfaceGarbageCollectedV8Internal::valuesMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPro totype, V8DOMConfiguration::CheckHolder}, 348 {"values", TestInterfaceGarbageCollectedV8Internal::valuesMethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
349 {"entries", TestInterfaceGarbageCollectedV8Internal::entriesMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnP rototype, V8DOMConfiguration::CheckHolder}, 349 {"entries", TestInterfaceGarbageCollectedV8Internal::entriesMethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder },
350 {"forEach", TestInterfaceGarbageCollectedV8Internal::forEachMethodCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnP rototype, V8DOMConfiguration::CheckHolder}, 350 {"forEach", TestInterfaceGarbageCollectedV8Internal::forEachMethodCallback, 0, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder },
351 {"has", TestInterfaceGarbageCollectedV8Internal::hasMethodCallback, 0, 1, v8 ::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype , V8DOMConfiguration::CheckHolder}, 351 {"has", TestInterfaceGarbageCollectedV8Internal::hasMethodCallback, 0, 1, v8 ::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
352 {"add", TestInterfaceGarbageCollectedV8Internal::addMethodCallback, 0, 1, v8 ::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype , V8DOMConfiguration::CheckHolder}, 352 {"add", TestInterfaceGarbageCollectedV8Internal::addMethodCallback, 0, 1, v8 ::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
353 {"clear", TestInterfaceGarbageCollectedV8Internal::clearMethodCallback, 0, 0 , v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnProto type, V8DOMConfiguration::CheckHolder}, 353 {"clear", TestInterfaceGarbageCollectedV8Internal::clearMethodCallback, 0, 0 , v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
354 {"delete", TestInterfaceGarbageCollectedV8Internal::deleteMethodCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPro totype, V8DOMConfiguration::CheckHolder}, 354 {"delete", TestInterfaceGarbageCollectedV8Internal::deleteMethodCallback, 0, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
355 }; 355 };
356 356
357 void V8TestInterfaceGarbageCollected::constructorCallback(const v8::FunctionCall backInfo<v8::Value>& info) { 357 void V8TestInterfaceGarbageCollected::constructorCallback(const v8::FunctionCall backInfo<v8::Value>& info) {
358 if (!info.IsConstructCall()) { 358 if (!info.IsConstructCall()) {
359 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::const ructorNotCallableAsFunction("TestInterfaceGarbageCollected")); 359 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::const ructorNotCallableAsFunction("TestInterfaceGarbageCollected"));
360 return; 360 return;
361 } 361 }
362 362
363 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExisti ngObject) { 363 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExisti ngObject) {
364 v8SetReturnValue(info, info.Holder()); 364 v8SetReturnValue(info, info.Holder());
(...skipping 13 matching lines...) Expand all
378 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe mplate(); 378 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe mplate();
379 ALLOW_UNUSED_LOCAL(instanceTemplate); 379 ALLOW_UNUSED_LOCAL(instanceTemplate);
380 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype Template(); 380 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype Template();
381 ALLOW_UNUSED_LOCAL(prototypeTemplate); 381 ALLOW_UNUSED_LOCAL(prototypeTemplate);
382 382
383 // Register DOM constants, attributes and operations. 383 // Register DOM constants, attributes and operations.
384 V8DOMConfiguration::installAccessors(isolate, world, instanceTemplate, prototy peTemplate, interfaceTemplate, signature, V8TestInterfaceGarbageCollectedAccesso rs, WTF_ARRAY_LENGTH(V8TestInterfaceGarbageCollectedAccessors)); 384 V8DOMConfiguration::installAccessors(isolate, world, instanceTemplate, prototy peTemplate, interfaceTemplate, signature, V8TestInterfaceGarbageCollectedAccesso rs, WTF_ARRAY_LENGTH(V8TestInterfaceGarbageCollectedAccessors));
385 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, prototype Template, interfaceTemplate, signature, V8TestInterfaceGarbageCollectedMethods, WTF_ARRAY_LENGTH(V8TestInterfaceGarbageCollectedMethods)); 385 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, prototype Template, interfaceTemplate, signature, V8TestInterfaceGarbageCollectedMethods, WTF_ARRAY_LENGTH(V8TestInterfaceGarbageCollectedMethods));
386 386
387 // Iterator (@@iterator) 387 // Iterator (@@iterator)
388 const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedIteratorCo nfiguration = { v8::Symbol::GetIterator, TestInterfaceGarbageCollectedV8Internal ::iteratorMethodCallback, 0, v8::DontEnum, V8DOMConfiguration::ExposedToAllScrip ts, V8DOMConfiguration::OnPrototype }; 388 const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedIteratorCo nfiguration = { v8::Symbol::GetIterator, TestInterfaceGarbageCollectedV8Internal ::iteratorMethodCallback, 0, v8::DontEnum, V8DOMConfiguration::OnPrototype };
389 V8DOMConfiguration::installMethod(isolate, world, prototypeTemplate, signature , symbolKeyedIteratorConfiguration); 389 V8DOMConfiguration::installMethod(isolate, world, prototypeTemplate, signature , symbolKeyedIteratorConfiguration);
390 } 390 }
391 391
392 v8::Local<v8::FunctionTemplate> V8TestInterfaceGarbageCollected::domTemplate(v8: :Isolate* isolate, const DOMWrapperWorld& world) { 392 v8::Local<v8::FunctionTemplate> V8TestInterfaceGarbageCollected::domTemplate(v8: :Isolate* isolate, const DOMWrapperWorld& world) {
393 return V8DOMConfiguration::domClassTemplate(isolate, world, const_cast<Wrapper TypeInfo*>(&wrapperTypeInfo), installV8TestInterfaceGarbageCollectedTemplate); 393 return V8DOMConfiguration::domClassTemplate(isolate, world, const_cast<Wrapper TypeInfo*>(&wrapperTypeInfo), installV8TestInterfaceGarbageCollectedTemplate);
394 } 394 }
395 395
396 bool V8TestInterfaceGarbageCollected::hasInstance(v8::Local<v8::Value> v8Value, v8::Isolate* isolate) { 396 bool V8TestInterfaceGarbageCollected::hasInstance(v8::Local<v8::Value> v8Value, v8::Isolate* isolate) {
397 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Value) ; 397 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Value) ;
398 } 398 }
399 399
400 v8::Local<v8::Object> V8TestInterfaceGarbageCollected::findInstanceInPrototypeCh ain(v8::Local<v8::Value> v8Value, v8::Isolate* isolate) { 400 v8::Local<v8::Object> V8TestInterfaceGarbageCollected::findInstanceInPrototypeCh ain(v8::Local<v8::Value> v8Value, v8::Isolate* isolate) {
401 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT ypeInfo, v8Value); 401 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT ypeInfo, v8Value);
402 } 402 }
403 403
404 TestInterfaceGarbageCollected* V8TestInterfaceGarbageCollected::toImplWithTypeCh eck(v8::Isolate* isolate, v8::Local<v8::Value> value) { 404 TestInterfaceGarbageCollected* V8TestInterfaceGarbageCollected::toImplWithTypeCh eck(v8::Isolate* isolate, v8::Local<v8::Value> value) {
405 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value) ) : nullptr; 405 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value) ) : nullptr;
406 } 406 }
407 407
408 } // namespace blink 408 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698