| 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 #include "V8TestObject.h" | 8 #include "V8TestObject.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/BindingSecurity.h" | 10 #include "bindings/core/v8/BindingSecurity.h" |
| (...skipping 13001 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13012 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTempla
te, functionTemplate, defaultSignature, v8::None, staticVoidMethodMethodConfigur
ation); | 13012 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTempla
te, functionTemplate, defaultSignature, v8::None, staticVoidMethodMethodConfigur
ation); |
| 13013 const V8DOMConfiguration::MethodConfiguration overloadedStaticMethodMethodCo
nfiguration = {"overloadedStaticMethod", TestObjectV8Internal::overloadedStaticM
ethodMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigu
ration::OnInterface}; | 13013 const V8DOMConfiguration::MethodConfiguration overloadedStaticMethodMethodCo
nfiguration = {"overloadedStaticMethod", TestObjectV8Internal::overloadedStaticM
ethodMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigu
ration::OnInterface}; |
| 13014 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTempla
te, functionTemplate, defaultSignature, v8::None, overloadedStaticMethodMethodCo
nfiguration); | 13014 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTempla
te, functionTemplate, defaultSignature, v8::None, overloadedStaticMethodMethodCo
nfiguration); |
| 13015 #if ENABLE(CONDITION) | 13015 #if ENABLE(CONDITION) |
| 13016 const V8DOMConfiguration::MethodConfiguration conditionalConditionStaticVoid
MethodMethodConfiguration = {"conditionalConditionStaticVoidMethod", TestObjectV
8Internal::conditionalConditionStaticVoidMethodMethodCallback, 0, 0, V8DOMConfig
uration::ExposedToAllScripts, V8DOMConfiguration::OnInterface}; | 13016 const V8DOMConfiguration::MethodConfiguration conditionalConditionStaticVoid
MethodMethodConfiguration = {"conditionalConditionStaticVoidMethod", TestObjectV
8Internal::conditionalConditionStaticVoidMethodMethodCallback, 0, 0, V8DOMConfig
uration::ExposedToAllScripts, V8DOMConfiguration::OnInterface}; |
| 13017 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTempla
te, functionTemplate, defaultSignature, v8::None, conditionalConditionStaticVoid
MethodMethodConfiguration); | 13017 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTempla
te, functionTemplate, defaultSignature, v8::None, conditionalConditionStaticVoid
MethodMethodConfiguration); |
| 13018 #endif // ENABLE(CONDITION) | 13018 #endif // ENABLE(CONDITION) |
| 13019 const V8DOMConfiguration::MethodConfiguration doNotCheckSignatureVoidMethodM
ethodConfiguration = {"doNotCheckSignatureVoidMethod", TestObjectV8Internal::doN
otCheckSignatureVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAll
Scripts, V8DOMConfiguration::OnPrototype}; | 13019 const V8DOMConfiguration::MethodConfiguration doNotCheckSignatureVoidMethodM
ethodConfiguration = {"doNotCheckSignatureVoidMethod", TestObjectV8Internal::doN
otCheckSignatureVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAll
Scripts, V8DOMConfiguration::OnPrototype}; |
| 13020 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTempla
te, functionTemplate, v8::Local<v8::Signature>(), v8::None, doNotCheckSignatureV
oidMethodMethodConfiguration); | 13020 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTempla
te, functionTemplate, v8::Local<v8::Signature>(), v8::None, doNotCheckSignatureV
oidMethodMethodConfiguration); |
| 13021 const V8DOMConfiguration::MethodConfiguration notEnumerableVoidMethodMethodC
onfiguration = {"notEnumerableVoidMethod", TestObjectV8Internal::notEnumerableVo
idMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts, V8DOMConf
iguration::OnPrototype}; | 13021 const V8DOMConfiguration::MethodConfiguration notEnumerableVoidMethodMethodC
onfiguration = {"notEnumerableVoidMethod", TestObjectV8Internal::notEnumerableVo
idMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts, V8DOMConf
iguration::OnPrototype}; |
| 13022 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTempla
te, functionTemplate, defaultSignature, static_cast<v8::PropertyAttribute>(v8::D
ontDelete | v8::DontEnum), notEnumerableVoidMethodMethodConfiguration); | 13022 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTempla
te, functionTemplate, defaultSignature, static_cast<v8::PropertyAttribute>(v8::D
ontEnum), notEnumerableVoidMethodMethodConfiguration); |
| 13023 if (RuntimeEnabledFeatures::featureNameEnabled()) { | 13023 if (RuntimeEnabledFeatures::featureNameEnabled()) { |
| 13024 const V8DOMConfiguration::MethodConfiguration runtimeEnabledVoidMethodMe
thodConfiguration = {"runtimeEnabledVoidMethod", TestObjectV8Internal::runtimeEn
abledVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts, V8
DOMConfiguration::OnPrototype}; | 13024 const V8DOMConfiguration::MethodConfiguration runtimeEnabledVoidMethodMe
thodConfiguration = {"runtimeEnabledVoidMethod", TestObjectV8Internal::runtimeEn
abledVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts, V8
DOMConfiguration::OnPrototype}; |
| 13025 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTe
mplate, functionTemplate, defaultSignature, v8::None, runtimeEnabledVoidMethodMe
thodConfiguration); | 13025 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTe
mplate, functionTemplate, defaultSignature, v8::None, runtimeEnabledVoidMethodMe
thodConfiguration); |
| 13026 } | 13026 } |
| 13027 if (RuntimeEnabledFeatures::featureNameEnabled()) { | 13027 if (RuntimeEnabledFeatures::featureNameEnabled()) { |
| 13028 const V8DOMConfiguration::MethodConfiguration perWorldBindingsRuntimeEna
bledVoidMethodMethodConfiguration = {"perWorldBindingsRuntimeEnabledVoidMethod",
TestObjectV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethodCallback, T
estObjectV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethodCallbackForMa
inWorld, 0, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnProto
type}; | 13028 const V8DOMConfiguration::MethodConfiguration perWorldBindingsRuntimeEna
bledVoidMethodMethodConfiguration = {"perWorldBindingsRuntimeEnabledVoidMethod",
TestObjectV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethodCallback, T
estObjectV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethodCallbackForMa
inWorld, 0, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnProto
type}; |
| 13029 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTe
mplate, functionTemplate, defaultSignature, v8::None, perWorldBindingsRuntimeEna
bledVoidMethodMethodConfiguration); | 13029 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTe
mplate, functionTemplate, defaultSignature, v8::None, perWorldBindingsRuntimeEna
bledVoidMethodMethodConfiguration); |
| 13030 } | 13030 } |
| 13031 if (RuntimeEnabledFeatures::featureNameEnabled()) { | 13031 if (RuntimeEnabledFeatures::featureNameEnabled()) { |
| 13032 const V8DOMConfiguration::MethodConfiguration runtimeEnabledOverloadedVo
idMethodMethodConfiguration = {"runtimeEnabledOverloadedVoidMethod", TestObjectV
8Internal::runtimeEnabledOverloadedVoidMethodMethodCallback, 0, 1, V8DOMConfigur
ation::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}; | 13032 const V8DOMConfiguration::MethodConfiguration runtimeEnabledOverloadedVo
idMethodMethodConfiguration = {"runtimeEnabledOverloadedVoidMethod", TestObjectV
8Internal::runtimeEnabledOverloadedVoidMethodMethodCallback, 0, 1, V8DOMConfigur
ation::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}; |
| 13033 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTe
mplate, functionTemplate, defaultSignature, v8::None, runtimeEnabledOverloadedVo
idMethodMethodConfiguration); | 13033 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTe
mplate, functionTemplate, defaultSignature, v8::None, runtimeEnabledOverloadedVo
idMethodMethodConfiguration); |
| 13034 } | 13034 } |
| 13035 const V8DOMConfiguration::MethodConfiguration partiallyRuntimeEnabledOverloa
dedVoidMethodMethodConfiguration = {"partiallyRuntimeEnabledOverloadedVoidMethod
", TestObjectV8Internal::partiallyRuntimeEnabledOverloadedVoidMethodMethodCallba
ck, 0, TestObjectV8Internal::partiallyRuntimeEnabledOverloadedVoidMethodMethodLe
ngth(), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype
}; | 13035 const V8DOMConfiguration::MethodConfiguration partiallyRuntimeEnabledOverloa
dedVoidMethodMethodConfiguration = {"partiallyRuntimeEnabledOverloadedVoidMethod
", TestObjectV8Internal::partiallyRuntimeEnabledOverloadedVoidMethodMethodCallba
ck, 0, TestObjectV8Internal::partiallyRuntimeEnabledOverloadedVoidMethodMethodLe
ngth(), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype
}; |
| 13036 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTempla
te, functionTemplate, defaultSignature, v8::None, partiallyRuntimeEnabledOverloa
dedVoidMethodMethodConfiguration); | 13036 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTempla
te, functionTemplate, defaultSignature, v8::None, partiallyRuntimeEnabledOverloa
dedVoidMethodMethodConfiguration); |
| 13037 const V8DOMConfiguration::MethodConfiguration unforgeableVoidMethodMethodCon
figuration = {"unforgeableVoidMethod", TestObjectV8Internal::unforgeableVoidMeth
odMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurat
ion::OnInstance}; | 13037 const V8DOMConfiguration::MethodConfiguration unforgeableVoidMethodMethodCon
figuration = {"unforgeableVoidMethod", TestObjectV8Internal::unforgeableVoidMeth
odMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurat
ion::OnInstance}; |
| 13038 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTempla
te, functionTemplate, defaultSignature, static_cast<v8::PropertyAttribute>(v8::D
ontDelete | v8::ReadOnly), unforgeableVoidMethodMethodConfiguration); | 13038 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTempla
te, functionTemplate, defaultSignature, static_cast<v8::PropertyAttribute>(v8::R
eadOnly | v8::DontDelete), unforgeableVoidMethodMethodConfiguration); |
| 13039 | 13039 |
| 13040 // Custom toString template | 13040 // Custom toString template |
| 13041 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 13041 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
| 13042 } | 13042 } |
| 13043 | 13043 |
| 13044 v8::Local<v8::FunctionTemplate> V8TestObject::domTemplate(v8::Isolate* isolate) | 13044 v8::Local<v8::FunctionTemplate> V8TestObject::domTemplate(v8::Isolate* isolate) |
| 13045 { | 13045 { |
| 13046 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestObjectTemplate); | 13046 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestObjectTemplate); |
| 13047 } | 13047 } |
| 13048 | 13048 |
| (...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13592 ScriptState::Scope scope(scriptState); | 13592 ScriptState::Scope scope(scriptState); |
| 13593 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 13593 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
| 13594 if (holder.IsEmpty()) | 13594 if (holder.IsEmpty()) |
| 13595 return false; | 13595 return false; |
| 13596 | 13596 |
| 13597 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 13597 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; |
| 13598 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); | 13598 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); |
| 13599 } | 13599 } |
| 13600 | 13600 |
| 13601 } // namespace blink | 13601 } // namespace blink |
| OLD | NEW |