OLD | NEW |
---|---|
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 1407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1418 prototypeTemplate->Set(v8AtomicString(isolate, "partialVoidMethodLongArg "), v8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::pa rtialVoidMethodLongArgMethodCallback, v8Undefined(), defaultSignature, 1)); | 1418 prototypeTemplate->Set(v8AtomicString(isolate, "partialVoidMethodLongArg "), v8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::pa rtialVoidMethodLongArgMethodCallback, v8Undefined(), defaultSignature, 1)); |
1419 #endif // ENABLE(PARTIAL_CONDITION) | 1419 #endif // ENABLE(PARTIAL_CONDITION) |
1420 #if ENABLE(PARTIAL_CONDITION) | 1420 #if ENABLE(PARTIAL_CONDITION) |
1421 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) | 1421 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) |
1422 prototypeTemplate->Set(v8AtomicString(isolate, "partialCallWithExecution ContextRaisesExceptionVoidMethod"), v8::FunctionTemplate::New(isolate, TestInter faceImplementationV8Internal::partialCallWithExecutionContextRaisesExceptionVoid MethodMethodCallback, v8Undefined(), defaultSignature, 0)); | 1422 prototypeTemplate->Set(v8AtomicString(isolate, "partialCallWithExecution ContextRaisesExceptionVoidMethod"), v8::FunctionTemplate::New(isolate, TestInter faceImplementationV8Internal::partialCallWithExecutionContextRaisesExceptionVoid MethodMethodCallback, v8Undefined(), defaultSignature, 0)); |
1423 #endif // ENABLE(PARTIAL_CONDITION) | 1423 #endif // ENABLE(PARTIAL_CONDITION) |
1424 #if ENABLE(PARTIAL_CONDITION) | 1424 #if ENABLE(PARTIAL_CONDITION) |
1425 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) | 1425 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) |
1426 prototypeTemplate->Set(v8AtomicString(isolate, "partialVoidMethodPartial CallbackTypeArg"), v8::FunctionTemplate::New(isolate, TestInterfaceImplementatio nV8Internal::partialVoidMethodPartialCallbackTypeArgMethodCallback, v8Undefined( ), defaultSignature, 1)); | 1426 prototypeTemplate->Set(v8AtomicString(isolate, "partialVoidMethodPartial CallbackTypeArg"), v8::FunctionTemplate::New(isolate, TestInterfaceImplementatio nV8Internal::partialVoidMethodPartialCallbackTypeArgMethodCallback, v8Undefined( ), defaultSignature, 1)); |
1427 #endif // ENABLE(PARTIAL_CONDITION) | 1427 #endif // ENABLE(PARTIAL_CONDITION) |
1428 functionTemplate->Set(v8AtomicString(isolate, "partial2StaticVoidMethod"), v 8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::partial 2StaticVoidMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature>(), 0)); | |
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)); | 1428 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)); |
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)); | 1429 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)); |
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)); | 1430 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)); |
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)); | 1431 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)); |
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)); | 1432 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)); |
1434 #if ENABLE(PARTIAL_CONDITION) | 1433 #if ENABLE(PARTIAL_CONDITION) |
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)); | 1434 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)); |
1436 #endif // ENABLE(PARTIAL_CONDITION) | 1435 #endif // ENABLE(PARTIAL_CONDITION) |
1437 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "partial2Sta ticLongAttribute"), TestInterfaceImplementationV8Internal::partial2StaticLongAtt ributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::partial2St aticLongAttributeAttributeSetterCallback, v8::External::New(isolate, 0), static_ cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignature>(), stat ic_cast<v8::AccessControl>(v8::DEFAULT)); | 1436 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "partial2Sta ticLongAttribute"), TestInterfaceImplementationV8Internal::partial2StaticLongAtt ributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::partial2St aticLongAttributeAttributeSetterCallback, v8::External::New(isolate, 0), static_ cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignature>(), stat ic_cast<v8::AccessControl>(v8::DEFAULT)); |
1438 | 1437 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1490 } | 1489 } |
1491 | 1490 |
1492 void V8TestInterface::installPerContextEnabledMethods(v8::Handle<v8::Object> pro totypeTemplate, v8::Isolate* isolate) | 1491 void V8TestInterface::installPerContextEnabledMethods(v8::Handle<v8::Object> pro totypeTemplate, v8::Isolate* isolate) |
1493 { | 1492 { |
1494 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT emplate(isolate)); | 1493 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT emplate(isolate)); |
1495 | 1494 |
1496 ExecutionContext* context = toExecutionContext(prototypeTemplate->CreationCo ntext()); | 1495 ExecutionContext* context = toExecutionContext(prototypeTemplate->CreationCo ntext()); |
1497 if (context && context->isDocument() && ContextFeatures::partialContextNameE nabled(toDocument(context))) | 1496 if (context && context->isDocument() && ContextFeatures::partialContextNameE nabled(toDocument(context))) |
1498 prototypeTemplate->Set(v8AtomicString(isolate, "partial2VoidMethod"), v8 ::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::partial2 VoidMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunction()); | 1497 prototypeTemplate->Set(v8AtomicString(isolate, "partial2VoidMethod"), v8 ::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::partial2 VoidMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunction()); |
1499 if (context && context->isDocument() && ContextFeatures::partialContextNameE nabled(toDocument(context))) | 1498 if (context && context->isDocument() && ContextFeatures::partialContextNameE nabled(toDocument(context))) |
1500 prototypeTemplate->Set(v8AtomicString(isolate, "partial2StaticVoidMethod "), v8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::pa rtial2StaticVoidMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFu nction()); | 1499 prototypeTemplate->Set(v8AtomicString(isolate, "partial2StaticVoidMethod "), v8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::pa rtial2StaticVoidMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFu nction()); |
Jens Widell
2014/06/11 09:38:13
Note that partial2StaticVoidMethod() is still regi
Nils Barth (inactive)
2014/06/11 09:44:47
Ow, ow.
Agreed, this shows how easy this is to get
| |
1501 } | 1500 } |
1502 | 1501 |
1503 ActiveDOMObject* V8TestInterface::toActiveDOMObject(v8::Handle<v8::Object> wrapp er) | 1502 ActiveDOMObject* V8TestInterface::toActiveDOMObject(v8::Handle<v8::Object> wrapp er) |
1504 { | 1503 { |
1505 return toNative(wrapper); | 1504 return toNative(wrapper); |
1506 } | 1505 } |
1507 | 1506 |
1508 void V8TestInterface::derefObject(void* object) | 1507 void V8TestInterface::derefObject(void* object) |
1509 { | 1508 { |
1510 fromInternalPointer(object)->deref(); | 1509 fromInternalPointer(object)->deref(); |
1511 } | 1510 } |
1512 | 1511 |
1513 template<> | 1512 template<> |
1514 v8::Handle<v8::Value> toV8NoInline(TestInterfaceImplementation* impl, v8::Handle <v8::Object> creationContext, v8::Isolate* isolate) | 1513 v8::Handle<v8::Value> toV8NoInline(TestInterfaceImplementation* impl, v8::Handle <v8::Object> creationContext, v8::Isolate* isolate) |
1515 { | 1514 { |
1516 return toV8(impl, creationContext, isolate); | 1515 return toV8(impl, creationContext, isolate); |
1517 } | 1516 } |
1518 | 1517 |
1519 } // namespace WebCore | 1518 } // namespace WebCore |
1520 #endif // ENABLE(CONDITION) | 1519 #endif // ENABLE(CONDITION) |
OLD | NEW |