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 10880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10891 {"nodeMethodWithVariousArgumentsImplementedInPrivateScript", TestObjectV8Int
ernal::nodeMethodWithVariousArgumentsImplementedInPrivateScriptMethodCallback, 0
, 5, V8DOMConfiguration::ExposedToAllScripts}, | 10891 {"nodeMethodWithVariousArgumentsImplementedInPrivateScript", TestObjectV8Int
ernal::nodeMethodWithVariousArgumentsImplementedInPrivateScriptMethodCallback, 0
, 5, V8DOMConfiguration::ExposedToAllScripts}, |
10892 {"methodImplementedInCPPForPrivateScriptOnly", TestObjectV8Internal::methodI
mplementedInCPPForPrivateScriptOnlyMethodCallback, 0, 2, V8DOMConfiguration::Onl
yExposedToPrivateScript}, | 10892 {"methodImplementedInCPPForPrivateScriptOnly", TestObjectV8Internal::methodI
mplementedInCPPForPrivateScriptOnlyMethodCallback, 0, 2, V8DOMConfiguration::Onl
yExposedToPrivateScript}, |
10893 {"toString", TestObjectV8Internal::toStringMethodCallback, 0, 0, V8DOMConfig
uration::ExposedToAllScripts}, | 10893 {"toString", TestObjectV8Internal::toStringMethodCallback, 0, 0, V8DOMConfig
uration::ExposedToAllScripts}, |
10894 }; | 10894 }; |
10895 | 10895 |
10896 static void installV8TestObjectTemplate(v8::Handle<v8::FunctionTemplate> functio
nTemplate, v8::Isolate* isolate) | 10896 static void installV8TestObjectTemplate(v8::Handle<v8::FunctionTemplate> functio
nTemplate, v8::Isolate* isolate) |
10897 { | 10897 { |
10898 functionTemplate->ReadOnlyPrototype(); | 10898 functionTemplate->ReadOnlyPrototype(); |
10899 | 10899 |
10900 v8::Local<v8::Signature> defaultSignature; | 10900 v8::Local<v8::Signature> defaultSignature; |
10901 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl
ate, "TestObject", v8::Local<v8::FunctionTemplate>(), V8TestObject::internalFiel
dCount, | 10901 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "TestObject", v8::Local<v8::FunctionTemplate>(), V8TestObject::int
ernalFieldCount, |
10902 V8TestObjectAttributes, WTF_ARRAY_LENGTH(V8TestObjectAttributes), | 10902 V8TestObjectAttributes, WTF_ARRAY_LENGTH(V8TestObjectAttributes), |
10903 V8TestObjectAccessors, WTF_ARRAY_LENGTH(V8TestObjectAccessors), | 10903 V8TestObjectAccessors, WTF_ARRAY_LENGTH(V8TestObjectAccessors), |
10904 V8TestObjectMethods, WTF_ARRAY_LENGTH(V8TestObjectMethods), | 10904 V8TestObjectMethods, WTF_ARRAY_LENGTH(V8TestObjectMethods)); |
10905 isolate); | |
10906 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); | 10905 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); |
10907 ALLOW_UNUSED_LOCAL(instanceTemplate); | 10906 ALLOW_UNUSED_LOCAL(instanceTemplate); |
10908 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); | 10907 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); |
10909 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 10908 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
10910 if (RuntimeEnabledFeatures::featureNameEnabled()) { | 10909 if (RuntimeEnabledFeatures::featureNameEnabled()) { |
10911 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration =\ | 10910 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration =\ |
10912 {"runtimeEnabledLongAttribute", TestObjectV8Internal::runtimeEnabledLong
AttributeAttributeGetterCallback, TestObjectV8Internal::runtimeEnabledLongAttrib
uteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT)
, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAll
Scripts, V8DOMConfiguration::OnInstance}; | 10911 {"runtimeEnabledLongAttribute", TestObjectV8Internal::runtimeEnabledLong
AttributeAttributeGetterCallback, TestObjectV8Internal::runtimeEnabledLongAttrib
uteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT)
, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAll
Scripts, V8DOMConfiguration::OnInstance}; |
10913 V8DOMConfiguration::installAttribute(instanceTemplate, prototypeTemplate
, attributeConfiguration, isolate); | 10912 V8DOMConfiguration::installAttribute(instanceTemplate, prototypeTemplate
, attributeConfiguration, isolate); |
10914 } | 10913 } |
10915 #if ENABLE(CONDITION) | 10914 #if ENABLE(CONDITION) |
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11550 return false; | 11549 return false; |
11551 | 11550 |
11552 ScriptState::Scope scope(scriptState); | 11551 ScriptState::Scope scope(scriptState); |
11553 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob
al(), scriptState->isolate()); | 11552 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob
al(), scriptState->isolate()); |
11554 | 11553 |
11555 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 11554 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; |
11556 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); | 11555 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); |
11557 } | 11556 } |
11558 | 11557 |
11559 } // namespace blink | 11558 } // namespace blink |
OLD | NEW |