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

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

Issue 299203002: Support per-overload [RuntimeEnabled] extended attribute (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 months 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. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 #if ENABLE(CONDITION) 8 #if ENABLE(CONDITION)
9 #include "V8TestInterface.h" 9 #include "V8TestInterface.h"
10 10
(...skipping 1378 matching lines...) Expand 10 before | Expand all | Expand 10 after
1389 }; 1389 };
1390 V8DOMConfiguration::installConstants(functionTemplate, prototypeTemplate, V8 TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants), isolate); 1390 V8DOMConfiguration::installConstants(functionTemplate, prototypeTemplate, V8 TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants), isolate);
1391 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { 1391 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) {
1392 static const V8DOMConfiguration::ConstantConfiguration constantConfigura tion = {"PARTIAL_UNSIGNED_SHORT", static_cast<signed int>(0)}; 1392 static const V8DOMConfiguration::ConstantConfiguration constantConfigura tion = {"PARTIAL_UNSIGNED_SHORT", static_cast<signed int>(0)};
1393 V8DOMConfiguration::installConstants(functionTemplate, prototypeTemplate , &constantConfiguration, 1, isolate); 1393 V8DOMConfiguration::installConstants(functionTemplate, prototypeTemplate , &constantConfiguration, 1, isolate);
1394 } 1394 }
1395 functionTemplate->InstanceTemplate()->SetIndexedPropertyHandler(TestInterfac eImplementationV8Internal::indexedPropertyGetterCallback, TestInterfaceImplement ationV8Internal::indexedPropertySetterCallback, 0, TestInterfaceImplementationV8 Internal::indexedPropertyDeleterCallback, indexedPropertyEnumerator<TestInterfac eImplementation>); 1395 functionTemplate->InstanceTemplate()->SetIndexedPropertyHandler(TestInterfac eImplementationV8Internal::indexedPropertyGetterCallback, TestInterfaceImplement ationV8Internal::indexedPropertySetterCallback, 0, TestInterfaceImplementationV8 Internal::indexedPropertyDeleterCallback, indexedPropertyEnumerator<TestInterfac eImplementation>);
1396 functionTemplate->InstanceTemplate()->SetNamedPropertyHandler(TestInterfaceI mplementationV8Internal::namedPropertyGetterCallback, TestInterfaceImplementatio nV8Internal::namedPropertySetterCallback, TestInterfaceImplementationV8Internal: :namedPropertyQueryCallback, TestInterfaceImplementationV8Internal::namedPropert yDeleterCallback, TestInterfaceImplementationV8Internal::namedPropertyEnumerator Callback); 1396 functionTemplate->InstanceTemplate()->SetNamedPropertyHandler(TestInterfaceI mplementationV8Internal::namedPropertyGetterCallback, TestInterfaceImplementatio nV8Internal::namedPropertySetterCallback, TestInterfaceImplementationV8Internal: :namedPropertyQueryCallback, TestInterfaceImplementationV8Internal::namedPropert yDeleterCallback, TestInterfaceImplementationV8Internal::namedPropertyEnumerator Callback);
1397 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler(V8TestInterfa ce::legacyCallCustom); 1397 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler(V8TestInterfa ce::legacyCallCustom);
1398 functionTemplate->Set(v8AtomicString(isolate, "implementsStaticVoidMethod"), v8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::imple mentsStaticVoidMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature>(), 0)); 1398 functionTemplate->Set(v8AtomicString(isolate, "implementsStaticVoidMethod"), v8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::imple mentsStaticVoidMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature>(), 0));
1399 if (RuntimeEnabledFeatures::implements2FeatureNameEnabled()) 1399 if (RuntimeEnabledFeatures::implements2FeatureNameEnabled()) {
1400 prototypeTemplate->Set(v8AtomicString(isolate, "implements2VoidMethod"), v8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::imple ments2VoidMethodMethodCallback, v8Undefined(), defaultSignature, 0)); 1400 prototypeTemplate->Set(v8AtomicString(isolate, "implements2VoidMethod"), v8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::imple ments2VoidMethodMethodCallback, v8Undefined(), defaultSignature, 0));
1401 }
1401 functionTemplate->Set(v8AtomicString(isolate, "implements3StaticVoidMethod") , v8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::impl ements3StaticVoidMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature>() , 0)); 1402 functionTemplate->Set(v8AtomicString(isolate, "implements3StaticVoidMethod") , v8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::impl ements3StaticVoidMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature>() , 0));
1402 #if ENABLE(PARTIAL_CONDITION) 1403 #if ENABLE(PARTIAL_CONDITION)
1403 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) 1404 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) {
1404 prototypeTemplate->Set(v8AtomicString(isolate, "partialVoidMethod"), v8: :FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::partialVo idMethodMethodCallback, v8Undefined(), defaultSignature, 0)); 1405 prototypeTemplate->Set(v8AtomicString(isolate, "partialVoidMethod"), v8: :FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::partialVo idMethodMethodCallback, v8Undefined(), defaultSignature, 0));
1406 }
1405 #endif // ENABLE(PARTIAL_CONDITION) 1407 #endif // ENABLE(PARTIAL_CONDITION)
1406 #if ENABLE(PARTIAL_CONDITION) 1408 #if ENABLE(PARTIAL_CONDITION)
1407 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) 1409 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) {
1408 functionTemplate->Set(v8AtomicString(isolate, "partialStaticVoidMethod") , v8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::part ialStaticVoidMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature>(), 0) ); 1410 functionTemplate->Set(v8AtomicString(isolate, "partialStaticVoidMethod") , v8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::part ialStaticVoidMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature>(), 0) );
1411 }
1409 #endif // ENABLE(PARTIAL_CONDITION) 1412 #endif // ENABLE(PARTIAL_CONDITION)
1410 #if ENABLE(PARTIAL_CONDITION) 1413 #if ENABLE(PARTIAL_CONDITION)
1411 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) 1414 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) {
1412 prototypeTemplate->Set(v8AtomicString(isolate, "partialVoidMethodLongArg "), v8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::pa rtialVoidMethodLongArgMethodCallback, v8Undefined(), defaultSignature, 1)); 1415 prototypeTemplate->Set(v8AtomicString(isolate, "partialVoidMethodLongArg "), v8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::pa rtialVoidMethodLongArgMethodCallback, v8Undefined(), defaultSignature, 1));
1416 }
1413 #endif // ENABLE(PARTIAL_CONDITION) 1417 #endif // ENABLE(PARTIAL_CONDITION)
1414 #if ENABLE(PARTIAL_CONDITION) 1418 #if ENABLE(PARTIAL_CONDITION)
1415 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) 1419 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) {
1416 prototypeTemplate->Set(v8AtomicString(isolate, "partialCallWithExecution ContextRaisesExceptionVoidMethod"), v8::FunctionTemplate::New(isolate, TestInter faceImplementationV8Internal::partialCallWithExecutionContextRaisesExceptionVoid MethodMethodCallback, v8Undefined(), defaultSignature, 0)); 1420 prototypeTemplate->Set(v8AtomicString(isolate, "partialCallWithExecution ContextRaisesExceptionVoidMethod"), v8::FunctionTemplate::New(isolate, TestInter faceImplementationV8Internal::partialCallWithExecutionContextRaisesExceptionVoid MethodMethodCallback, v8Undefined(), defaultSignature, 0));
1421 }
1417 #endif // ENABLE(PARTIAL_CONDITION) 1422 #endif // ENABLE(PARTIAL_CONDITION)
1418 #if ENABLE(PARTIAL_CONDITION) 1423 #if ENABLE(PARTIAL_CONDITION)
1419 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) 1424 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) {
1420 prototypeTemplate->Set(v8AtomicString(isolate, "partialVoidMethodPartial CallbackTypeArg"), v8::FunctionTemplate::New(isolate, TestInterfaceImplementatio nV8Internal::partialVoidMethodPartialCallbackTypeArgMethodCallback, v8Undefined( ), defaultSignature, 1)); 1425 prototypeTemplate->Set(v8AtomicString(isolate, "partialVoidMethodPartial CallbackTypeArg"), v8::FunctionTemplate::New(isolate, TestInterfaceImplementatio nV8Internal::partialVoidMethodPartialCallbackTypeArgMethodCallback, v8Undefined( ), defaultSignature, 1));
1426 }
1421 #endif // ENABLE(PARTIAL_CONDITION) 1427 #endif // ENABLE(PARTIAL_CONDITION)
1422 functionTemplate->Set(v8AtomicString(isolate, "partial2StaticVoidMethod"), v 8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::partial 2StaticVoidMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature>(), 0)); 1428 functionTemplate->Set(v8AtomicString(isolate, "partial2StaticVoidMethod"), v 8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::partial 2StaticVoidMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature>(), 0));
1423 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticStrin gAttribute"), TestInterfaceImplementationV8Internal::staticStringAttributeAttrib uteGetterCallback, TestInterfaceImplementationV8Internal::staticStringAttributeA ttributeSetterCallback, v8::External::New(isolate, 0), static_cast<v8::PropertyA ttribute>(v8::None), v8::Handle<v8::AccessorSignature>(), static_cast<v8::Access Control>(v8::DEFAULT)); 1429 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticStrin gAttribute"), TestInterfaceImplementationV8Internal::staticStringAttributeAttrib uteGetterCallback, TestInterfaceImplementationV8Internal::staticStringAttributeA ttributeSetterCallback, v8::External::New(isolate, 0), static_cast<v8::PropertyA ttribute>(v8::None), v8::Handle<v8::AccessorSignature>(), static_cast<v8::Access Control>(v8::DEFAULT));
1424 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implementsS taticReadOnlyLongAttribute"), TestInterfaceImplementationV8Internal::implementsS taticReadOnlyLongAttributeAttributeGetterCallback, 0, v8::External::New(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignat ure>(), static_cast<v8::AccessControl>(v8::DEFAULT)); 1430 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implementsS taticReadOnlyLongAttribute"), TestInterfaceImplementationV8Internal::implementsS taticReadOnlyLongAttributeAttributeGetterCallback, 0, v8::External::New(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignat ure>(), static_cast<v8::AccessControl>(v8::DEFAULT));
1425 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implementsS taticStringAttribute"), TestInterfaceImplementationV8Internal::implementsStaticS tringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::im plementsStaticStringAttributeAttributeSetterCallback, v8::External::New(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignat ure>(), static_cast<v8::AccessControl>(v8::DEFAULT)); 1431 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implementsS taticStringAttribute"), TestInterfaceImplementationV8Internal::implementsStaticS tringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::im plementsStaticStringAttributeAttributeSetterCallback, v8::External::New(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignat ure>(), static_cast<v8::AccessControl>(v8::DEFAULT));
1426 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implements2 StaticStringAttribute"), TestInterfaceImplementationV8Internal::implements2Stati cStringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal:: implements2StaticStringAttributeAttributeSetterCallback, v8::External::New(isola te, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSig nature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); 1432 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implements2 StaticStringAttribute"), TestInterfaceImplementationV8Internal::implements2Stati cStringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal:: implements2StaticStringAttributeAttributeSetterCallback, v8::External::New(isola te, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSig nature>(), static_cast<v8::AccessControl>(v8::DEFAULT));
1427 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implements3 StaticStringAttribute"), TestInterfaceImplementationV8Internal::implements3Stati cStringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal:: implements3StaticStringAttributeAttributeSetterCallback, v8::External::New(isola te, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSig nature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); 1433 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implements3 StaticStringAttribute"), TestInterfaceImplementationV8Internal::implements3Stati cStringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal:: implements3StaticStringAttributeAttributeSetterCallback, v8::External::New(isola te, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSig nature>(), static_cast<v8::AccessControl>(v8::DEFAULT));
1428 #if ENABLE(PARTIAL_CONDITION) 1434 #if ENABLE(PARTIAL_CONDITION)
1429 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "partialStat icLongAttribute"), TestInterfaceImplementationV8Internal::partialStaticLongAttri buteAttributeGetterCallback, TestInterfaceImplementationV8Internal::partialStati cLongAttributeAttributeSetterCallback, v8::External::New(isolate, 0), static_cas t<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignature>(), static_ cast<v8::AccessControl>(v8::DEFAULT)); 1435 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "partialStat icLongAttribute"), TestInterfaceImplementationV8Internal::partialStaticLongAttri buteAttributeGetterCallback, TestInterfaceImplementationV8Internal::partialStati cLongAttributeAttributeSetterCallback, v8::External::New(isolate, 0), static_cas t<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignature>(), static_ cast<v8::AccessControl>(v8::DEFAULT));
1430 #endif // ENABLE(PARTIAL_CONDITION) 1436 #endif // ENABLE(PARTIAL_CONDITION)
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
1505 } 1511 }
1506 1512
1507 template<> 1513 template<>
1508 v8::Handle<v8::Value> toV8NoInline(TestInterfaceImplementation* impl, v8::Handle <v8::Object> creationContext, v8::Isolate* isolate) 1514 v8::Handle<v8::Value> toV8NoInline(TestInterfaceImplementation* impl, v8::Handle <v8::Object> creationContext, v8::Isolate* isolate)
1509 { 1515 {
1510 return toV8(impl, creationContext, isolate); 1516 return toV8(impl, creationContext, isolate);
1511 } 1517 }
1512 1518
1513 } // namespace WebCore 1519 } // namespace WebCore
1514 #endif // ENABLE(CONDITION) 1520 #endif // ENABLE(CONDITION)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698