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 12889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12900 | 12900 |
12901 v8::Local<v8::Signature> defaultSignature; | 12901 v8::Local<v8::Signature> defaultSignature; |
12902 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "TestObject", v8::Local<v8::FunctionTemplate>(), V8TestObject::int
ernalFieldCount, | 12902 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "TestObject", v8::Local<v8::FunctionTemplate>(), V8TestObject::int
ernalFieldCount, |
12903 V8TestObjectAttributes, WTF_ARRAY_LENGTH(V8TestObjectAttributes), | 12903 V8TestObjectAttributes, WTF_ARRAY_LENGTH(V8TestObjectAttributes), |
12904 V8TestObjectAccessors, WTF_ARRAY_LENGTH(V8TestObjectAccessors), | 12904 V8TestObjectAccessors, WTF_ARRAY_LENGTH(V8TestObjectAccessors), |
12905 V8TestObjectMethods, WTF_ARRAY_LENGTH(V8TestObjectMethods)); | 12905 V8TestObjectMethods, WTF_ARRAY_LENGTH(V8TestObjectMethods)); |
12906 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); | 12906 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); |
12907 ALLOW_UNUSED_LOCAL(instanceTemplate); | 12907 ALLOW_UNUSED_LOCAL(instanceTemplate); |
12908 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); | 12908 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); |
12909 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 12909 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
| 12910 ExecutionContext* context = currentExecutionContext(isolate); |
| 12911 ALLOW_UNUSED_LOCAL(context); |
12910 if (RuntimeEnabledFeatures::featureNameEnabled()) { | 12912 if (RuntimeEnabledFeatures::featureNameEnabled()) { |
12911 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion = \ | 12913 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion = \ |
12912 {"runtimeEnabledLongAttribute", TestObjectV8Internal::runtimeEnabledLong
AttributeAttributeGetterCallback, TestObjectV8Internal::runtimeEnabledLongAttrib
uteAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttrib
ute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnP
rototype, V8DOMConfiguration::CheckHolder}; | 12914 {"runtimeEnabledLongAttribute", TestObjectV8Internal::runtimeEnabledLong
AttributeAttributeGetterCallback, TestObjectV8Internal::runtimeEnabledLongAttrib
uteAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttrib
ute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnP
rototype, V8DOMConfiguration::CheckHolder}; |
12913 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); | 12915 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); |
12914 } | 12916 } |
12915 #if ENABLE(CONDITION) | 12917 #if ENABLE(CONDITION) |
12916 if (RuntimeEnabledFeatures::featureNameEnabled()) { | 12918 if (RuntimeEnabledFeatures::featureNameEnabled()) { |
12917 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion = \ | 12919 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion = \ |
12918 {"conditionalRuntimeEnabledLongAttribute", TestObjectV8Internal::conditi
onalRuntimeEnabledLongAttributeAttributeGetterCallback, TestObjectV8Internal::co
nditionalRuntimeEnabledLongAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAUL
T, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAl
lScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; | 12920 {"conditionalRuntimeEnabledLongAttribute", TestObjectV8Internal::conditi
onalRuntimeEnabledLongAttributeAttributeGetterCallback, TestObjectV8Internal::co
nditionalRuntimeEnabledLongAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAUL
T, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAl
lScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
12919 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); | 12921 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); |
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13596 ScriptState::Scope scope(scriptState); | 13598 ScriptState::Scope scope(scriptState); |
13597 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 13599 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
13598 if (holder.IsEmpty()) | 13600 if (holder.IsEmpty()) |
13599 return false; | 13601 return false; |
13600 | 13602 |
13601 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 13603 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; |
13602 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); | 13604 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); |
13603 } | 13605 } |
13604 | 13606 |
13605 } // namespace blink | 13607 } // namespace blink |
OLD | NEW |