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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestTypedefs.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 "V8TestTypedefs.h" 9 #include "V8TestTypedefs.h"
10 10
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 309
310 } // namespace TestTypedefsV8Internal 310 } // namespace TestTypedefsV8Internal
311 311
312 // Suppress warning: global constructors, because AttributeConfiguration is triv ial 312 // Suppress warning: global constructors, because AttributeConfiguration is triv ial
313 // and does not depend on another global objects. 313 // and does not depend on another global objects.
314 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) 314 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
315 #pragma clang diagnostic push 315 #pragma clang diagnostic push
316 #pragma clang diagnostic ignored "-Wglobal-constructors" 316 #pragma clang diagnostic ignored "-Wglobal-constructors"
317 #endif 317 #endif
318 const V8DOMConfiguration::AttributeConfiguration V8TestTypedefsLazyDataAttribute s[] = { 318 const V8DOMConfiguration::AttributeConfiguration V8TestTypedefsLazyDataAttribute s[] = {
319 {"tAttribute", v8ConstructorAttributeGetter, 0, 0, 0, nullptr, const_cast<Wr apperTypeInfo*>(&V8TestInterface::wrapperTypeInfo), static_cast<v8::AccessContro l>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfigur ation::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOMConfiguration:: CheckHolder}, 319 {"tAttribute", v8ConstructorAttributeGetter, 0, 0, 0, nullptr, const_cast<Wr apperTypeInfo*>(&V8TestInterface::wrapperTypeInfo), static_cast<v8::AccessContro l>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfigur ation::OnInstance, V8DOMConfiguration::CheckHolder},
320 }; 320 };
321 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) 321 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
322 #pragma clang diagnostic pop 322 #pragma clang diagnostic pop
323 #endif 323 #endif
324 324
325 const V8DOMConfiguration::AccessorConfiguration V8TestTypedefsAccessors[] = { 325 const V8DOMConfiguration::AccessorConfiguration V8TestTypedefsAccessors[] = {
326 {"uLongLongAttribute", TestTypedefsV8Internal::uLongLongAttributeAttributeGe tterCallback, TestTypedefsV8Internal::uLongLongAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8 DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMCon figuration::CheckHolder}, 326 {"uLongLongAttribute", TestTypedefsV8Internal::uLongLongAttributeAttributeGe tterCallback, TestTypedefsV8Internal::uLongLongAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8 DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
327 {"domStringOrDoubleOrNullAttribute", TestTypedefsV8Internal::domStringOrDoub leOrNullAttributeAttributeGetterCallback, TestTypedefsV8Internal::domStringOrDou bleOrNullAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static _cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 327 {"domStringOrDoubleOrNullAttribute", TestTypedefsV8Internal::domStringOrDoub leOrNullAttributeAttributeGetterCallback, TestTypedefsV8Internal::domStringOrDou bleOrNullAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static _cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMCo nfiguration::CheckHolder},
328 }; 328 };
329 329
330 const V8DOMConfiguration::MethodConfiguration V8TestTypedefsMethods[] = { 330 const V8DOMConfiguration::MethodConfiguration V8TestTypedefsMethods[] = {
331 {"voidMethodArrayOfLongsArg", TestTypedefsV8Internal::voidMethodArrayOfLongs ArgMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DO MConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 331 {"voidMethodArrayOfLongsArg", TestTypedefsV8Internal::voidMethodArrayOfLongs ArgMethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfigu ration::CheckHolder},
332 {"voidMethodFloatArgStringArg", TestTypedefsV8Internal::voidMethodFloatArgSt ringArgMethodCallback, 0, 2, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 332 {"voidMethodFloatArgStringArg", TestTypedefsV8Internal::voidMethodFloatArgSt ringArgMethodCallback, 0, 2, v8::None, V8DOMConfiguration::OnPrototype, V8DOMCon figuration::CheckHolder},
333 {"voidMethodTestCallbackInterfaceTypeArg", TestTypedefsV8Internal::voidMetho dTestCallbackInterfaceTypeArgMethodCallback, 0, 1, v8::None, V8DOMConfiguration: :ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Check Holder}, 333 {"voidMethodTestCallbackInterfaceTypeArg", TestTypedefsV8Internal::voidMetho dTestCallbackInterfaceTypeArgMethodCallback, 0, 1, v8::None, V8DOMConfiguration: :OnPrototype, V8DOMConfiguration::CheckHolder},
334 {"uLongLongMethodTestInterfaceEmptyTypeSequenceArg", TestTypedefsV8Internal: :uLongLongMethodTestInterfaceEmptyTypeSequenceArgMethodCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOM Configuration::CheckHolder}, 334 {"uLongLongMethodTestInterfaceEmptyTypeSequenceArg", TestTypedefsV8Internal: :uLongLongMethodTestInterfaceEmptyTypeSequenceArgMethodCallback, 0, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
335 {"testInterfaceOrTestInterfaceEmptyMethod", TestTypedefsV8Internal::testInte rfaceOrTestInterfaceEmptyMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguratio n::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Che ckHolder}, 335 {"testInterfaceOrTestInterfaceEmptyMethod", TestTypedefsV8Internal::testInte rfaceOrTestInterfaceEmptyMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguratio n::OnPrototype, V8DOMConfiguration::CheckHolder},
336 {"domStringOrDoubleMethod", TestTypedefsV8Internal::domStringOrDoubleMethodM ethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMCon figuration::OnPrototype, V8DOMConfiguration::CheckHolder}, 336 {"domStringOrDoubleMethod", TestTypedefsV8Internal::domStringOrDoubleMethodM ethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfigurati on::CheckHolder},
337 {"arrayOfStringsMethodArrayOfStringsArg", TestTypedefsV8Internal::arrayOfStr ingsMethodArrayOfStringsArgMethodCallback, 0, 1, v8::None, V8DOMConfiguration::E xposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHo lder}, 337 {"arrayOfStringsMethodArrayOfStringsArg", TestTypedefsV8Internal::arrayOfStr ingsMethodArrayOfStringsArgMethodCallback, 0, 1, v8::None, V8DOMConfiguration::O nPrototype, V8DOMConfiguration::CheckHolder},
338 {"stringArrayMethodStringArrayArg", TestTypedefsV8Internal::stringArrayMetho dStringArrayArgMethodCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAllS cripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 338 {"stringArrayMethodStringArrayArg", TestTypedefsV8Internal::stringArrayMetho dStringArrayArgMethodCallback, 0, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
339 }; 339 };
340 340
341 void V8TestTypedefs::constructorCallback(const v8::FunctionCallbackInfo<v8::Valu e>& info) { 341 void V8TestTypedefs::constructorCallback(const v8::FunctionCallbackInfo<v8::Valu e>& info) {
342 if (!info.IsConstructCall()) { 342 if (!info.IsConstructCall()) {
343 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::const ructorNotCallableAsFunction("TestTypedefs")); 343 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::const ructorNotCallableAsFunction("TestTypedefs"));
344 return; 344 return;
345 } 345 }
346 346
347 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExisti ngObject) { 347 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExisti ngObject) {
348 v8SetReturnValue(info, info.Holder()); 348 v8SetReturnValue(info, info.Holder());
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 380
381 v8::Local<v8::Object> V8TestTypedefs::findInstanceInPrototypeChain(v8::Local<v8: :Value> v8Value, v8::Isolate* isolate) { 381 v8::Local<v8::Object> V8TestTypedefs::findInstanceInPrototypeChain(v8::Local<v8: :Value> v8Value, v8::Isolate* isolate) {
382 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT ypeInfo, v8Value); 382 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT ypeInfo, v8Value);
383 } 383 }
384 384
385 TestTypedefs* V8TestTypedefs::toImplWithTypeCheck(v8::Isolate* isolate, v8::Loca l<v8::Value> value) { 385 TestTypedefs* V8TestTypedefs::toImplWithTypeCheck(v8::Isolate* isolate, v8::Loca l<v8::Value> value) {
386 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value) ) : nullptr; 386 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value) ) : nullptr;
387 } 387 }
388 388
389 } // namespace blink 389 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698