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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceNode.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 "V8TestInterfaceNode.h" 9 #include "V8TestInterfaceNode.h"
10 10
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 v8SetReturnValueForMainWorld(info, impl->perWorldBindingsTestInterfaceEmptyMet hodOptionalBooleanArg(optionalBooleanArgument)); 323 v8SetReturnValueForMainWorld(info, impl->perWorldBindingsTestInterfaceEmptyMet hodOptionalBooleanArg(optionalBooleanArgument));
324 } 324 }
325 325
326 void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCallbackFor MainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) { 326 void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCallbackFor MainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) {
327 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptionalB ooleanArgMethodForMainWorld(info); 327 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptionalB ooleanArgMethodForMainWorld(info);
328 } 328 }
329 329
330 } // namespace TestInterfaceNodeV8Internal 330 } // namespace TestInterfaceNodeV8Internal
331 331
332 const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceNodeAccessors[] = { 332 const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceNodeAccessors[] = {
333 {"nodeName", TestInterfaceNodeV8Internal::nodeNameAttributeGetterCallback, T estInterfaceNodeV8Internal::nodeNameAttributeSetterCallback, 0, 0, nullptr, 0, v 8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Ex posedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHol der}, 333 {"nodeName", TestInterfaceNodeV8Internal::nodeNameAttributeGetterCallback, T estInterfaceNodeV8Internal::nodeNameAttributeSetterCallback, 0, 0, nullptr, 0, v 8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::On Prototype, V8DOMConfiguration::CheckHolder},
334 {"stringAttribute", TestInterfaceNodeV8Internal::stringAttributeAttributeGet terCallback, TestInterfaceNodeV8Internal::stringAttributeAttributeSetterCallback , 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V 8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMCo nfiguration::CheckHolder}, 334 {"stringAttribute", TestInterfaceNodeV8Internal::stringAttributeAttributeGet terCallback, TestInterfaceNodeV8Internal::stringAttributeAttributeSetterCallback , 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V 8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
335 {"readonlyTestInterfaceEmptyAttribute", TestInterfaceNodeV8Internal::readonl yTestInterfaceEmptyAttributeAttributeGetterCallback, 0, 0, 0, nullptr, 0, v8::DE FAULT, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::Exp osedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHold er}, 335 {"readonlyTestInterfaceEmptyAttribute", TestInterfaceNodeV8Internal::readonl yTestInterfaceEmptyAttributeAttributeGetterCallback, 0, 0, 0, nullptr, 0, v8::DE FAULT, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::OnP rototype, V8DOMConfiguration::CheckHolder},
336 {"eventHandlerAttribute", TestInterfaceNodeV8Internal::eventHandlerAttribute AttributeGetterCallback, TestInterfaceNodeV8Internal::eventHandlerAttributeAttri buteSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttri bute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::On Prototype, V8DOMConfiguration::CheckHolder}, 336 {"eventHandlerAttribute", TestInterfaceNodeV8Internal::eventHandlerAttribute AttributeGetterCallback, TestInterfaceNodeV8Internal::eventHandlerAttributeAttri buteSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttri bute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolde r},
337 {"perWorldBindingsReadonlyTestInterfaceEmptyAttribute", TestInterfaceNodeV8I nternal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCallb ack, 0, TestInterfaceNodeV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyA ttributeAttributeGetterCallbackForMainWorld, 0, nullptr, 0, v8::DEFAULT, static_ cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::ExposedToAllScrip ts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 337 {"perWorldBindingsReadonlyTestInterfaceEmptyAttribute", TestInterfaceNodeV8I nternal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCallb ack, 0, TestInterfaceNodeV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyA ttributeAttributeGetterCallbackForMainWorld, 0, nullptr, 0, v8::DEFAULT, static_ cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::OnPrototype, V8DO MConfiguration::CheckHolder},
338 {"reflectStringAttribute", TestInterfaceNodeV8Internal::reflectStringAttribu teAttributeGetterCallback, TestInterfaceNodeV8Internal::reflectStringAttributeAt tributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration: :OnPrototype, V8DOMConfiguration::CheckHolder}, 338 {"reflectStringAttribute", TestInterfaceNodeV8Internal::reflectStringAttribu teAttributeGetterCallback, TestInterfaceNodeV8Internal::reflectStringAttributeAt tributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHo lder},
339 {"reflectUrlStringAttribute", TestInterfaceNodeV8Internal::reflectUrlStringA ttributeAttributeGetterCallback, TestInterfaceNodeV8Internal::reflectUrlStringAt tributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::P ropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfi guration::OnPrototype, V8DOMConfiguration::CheckHolder}, 339 {"reflectUrlStringAttribute", TestInterfaceNodeV8Internal::reflectUrlStringA ttributeAttributeGetterCallback, TestInterfaceNodeV8Internal::reflectUrlStringAt tributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::P ropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration ::CheckHolder},
340 }; 340 };
341 341
342 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceNodeMethods[] = { 342 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceNodeMethods[] = {
343 {"testInterfaceEmptyMethod", TestInterfaceNodeV8Internal::testInterfaceEmpty MethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V 8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 343 {"testInterfaceEmptyMethod", TestInterfaceNodeV8Internal::testInterfaceEmpty MethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConf iguration::CheckHolder},
344 {"perWorldBindingsTestInterfaceEmptyMethod", TestInterfaceNodeV8Internal::pe rWorldBindingsTestInterfaceEmptyMethodMethodCallback, TestInterfaceNodeV8Interna l::perWorldBindingsTestInterfaceEmptyMethodMethodCallbackForMainWorld, 0, v8::No ne, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8 DOMConfiguration::CheckHolder}, 344 {"perWorldBindingsTestInterfaceEmptyMethod", TestInterfaceNodeV8Internal::pe rWorldBindingsTestInterfaceEmptyMethodMethodCallback, TestInterfaceNodeV8Interna l::perWorldBindingsTestInterfaceEmptyMethodMethodCallbackForMainWorld, 0, v8::No ne, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
345 {"perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArg", TestInterface NodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethod Callback, TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodO ptionalBooleanArgMethodCallbackForMainWorld, 0, v8::None, V8DOMConfiguration::Ex posedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHol der}, 345 {"perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArg", TestInterface NodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethod Callback, TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodO ptionalBooleanArgMethodCallbackForMainWorld, 0, v8::None, V8DOMConfiguration::On Prototype, V8DOMConfiguration::CheckHolder},
346 }; 346 };
347 347
348 static void installV8TestInterfaceNodeTemplate(v8::Isolate* isolate, const DOMWr apperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) { 348 static void installV8TestInterfaceNodeTemplate(v8::Isolate* isolate, const DOMWr apperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) {
349 // Initialize the interface object's template. 349 // Initialize the interface object's template.
350 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate, V8TestInterfaceNode::wrapperTypeInfo.interfaceName, V8Node::domTemplate(isolate , world), V8TestInterfaceNode::internalFieldCount); 350 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate, V8TestInterfaceNode::wrapperTypeInfo.interfaceName, V8Node::domTemplate(isolate , world), V8TestInterfaceNode::internalFieldCount);
351 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late); 351 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late);
352 ALLOW_UNUSED_LOCAL(signature); 352 ALLOW_UNUSED_LOCAL(signature);
353 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe mplate(); 353 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe mplate();
354 ALLOW_UNUSED_LOCAL(instanceTemplate); 354 ALLOW_UNUSED_LOCAL(instanceTemplate);
355 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype Template(); 355 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype Template();
(...skipping 14 matching lines...) Expand all
370 370
371 v8::Local<v8::Object> V8TestInterfaceNode::findInstanceInPrototypeChain(v8::Loca l<v8::Value> v8Value, v8::Isolate* isolate) { 371 v8::Local<v8::Object> V8TestInterfaceNode::findInstanceInPrototypeChain(v8::Loca l<v8::Value> v8Value, v8::Isolate* isolate) {
372 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT ypeInfo, v8Value); 372 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT ypeInfo, v8Value);
373 } 373 }
374 374
375 TestInterfaceNode* V8TestInterfaceNode::toImplWithTypeCheck(v8::Isolate* isolate , v8::Local<v8::Value> value) { 375 TestInterfaceNode* V8TestInterfaceNode::toImplWithTypeCheck(v8::Isolate* isolate , v8::Local<v8::Value> value) {
376 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value) ) : nullptr; 376 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value) ) : nullptr;
377 } 377 }
378 378
379 } // namespace blink 379 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698