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 10972 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10983 {"voidMethodImplementedInPrivateScript", TestObjectV8Internal::voidMethodImp
lementedInPrivateScriptMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScr
ipts}, | 10983 {"voidMethodImplementedInPrivateScript", TestObjectV8Internal::voidMethodImp
lementedInPrivateScriptMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScr
ipts}, |
10984 {"shortMethodImplementedInPrivateScript", TestObjectV8Internal::shortMethodI
mplementedInPrivateScriptMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllS
cripts}, | 10984 {"shortMethodImplementedInPrivateScript", TestObjectV8Internal::shortMethodI
mplementedInPrivateScriptMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllS
cripts}, |
10985 {"shortMethodWithShortArgumentImplementedInPrivateScript", TestObjectV8Inter
nal::shortMethodWithShortArgumentImplementedInPrivateScriptMethodCallback, 0, 1,
V8DOMConfiguration::ExposedToAllScripts}, | 10985 {"shortMethodWithShortArgumentImplementedInPrivateScript", TestObjectV8Inter
nal::shortMethodWithShortArgumentImplementedInPrivateScriptMethodCallback, 0, 1,
V8DOMConfiguration::ExposedToAllScripts}, |
10986 {"stringMethodWithStringArgumentImplementedInPrivateScript", TestObjectV8Int
ernal::stringMethodWithStringArgumentImplementedInPrivateScriptMethodCallback, 0
, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10986 {"stringMethodWithStringArgumentImplementedInPrivateScript", TestObjectV8Int
ernal::stringMethodWithStringArgumentImplementedInPrivateScriptMethodCallback, 0
, 1, V8DOMConfiguration::ExposedToAllScripts}, |
10987 {"nodeMethodWithNodeArgumentImplementedInPrivateScript", TestObjectV8Interna
l::nodeMethodWithNodeArgumentImplementedInPrivateScriptMethodCallback, 0, 1, V8D
OMConfiguration::ExposedToAllScripts}, | 10987 {"nodeMethodWithNodeArgumentImplementedInPrivateScript", TestObjectV8Interna
l::nodeMethodWithNodeArgumentImplementedInPrivateScriptMethodCallback, 0, 1, V8D
OMConfiguration::ExposedToAllScripts}, |
10988 {"nodeMethodWithVariousArgumentsImplementedInPrivateScript", TestObjectV8Int
ernal::nodeMethodWithVariousArgumentsImplementedInPrivateScriptMethodCallback, 0
, 5, V8DOMConfiguration::ExposedToAllScripts}, | 10988 {"nodeMethodWithVariousArgumentsImplementedInPrivateScript", TestObjectV8Int
ernal::nodeMethodWithVariousArgumentsImplementedInPrivateScriptMethodCallback, 0
, 5, V8DOMConfiguration::ExposedToAllScripts}, |
10989 {"methodImplementedInCPPForPrivateScriptOnly", TestObjectV8Internal::methodI
mplementedInCPPForPrivateScriptOnlyMethodCallback, 0, 2, V8DOMConfiguration::Onl
yExposedToPrivateScript}, | 10989 {"methodImplementedInCPPForPrivateScriptOnly", TestObjectV8Internal::methodI
mplementedInCPPForPrivateScriptOnlyMethodCallback, 0, 2, V8DOMConfiguration::Onl
yExposedToPrivateScript}, |
10990 {"toString", TestObjectV8Internal::toStringMethodCallback, 0, 0, V8DOMConfig
uration::ExposedToAllScripts}, | 10990 {"toString", TestObjectV8Internal::toStringMethodCallback, 0, 0, V8DOMConfig
uration::ExposedToAllScripts}, |
10991 }; | 10991 }; |
10992 | 10992 |
10993 static void installV8TestObjectTemplate(v8::Handle<v8::FunctionTemplate> functio
nTemplate, v8::Isolate* isolate) | 10993 static void installV8TestObjectTemplate(v8::Local<v8::FunctionTemplate> function
Template, v8::Isolate* isolate) |
10994 { | 10994 { |
10995 functionTemplate->ReadOnlyPrototype(); | 10995 functionTemplate->ReadOnlyPrototype(); |
10996 | 10996 |
10997 v8::Local<v8::Signature> defaultSignature; | 10997 v8::Local<v8::Signature> defaultSignature; |
10998 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "TestObject", v8::Local<v8::FunctionTemplate>(), V8TestObject::int
ernalFieldCount, | 10998 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "TestObject", v8::Local<v8::FunctionTemplate>(), V8TestObject::int
ernalFieldCount, |
10999 V8TestObjectAttributes, WTF_ARRAY_LENGTH(V8TestObjectAttributes), | 10999 V8TestObjectAttributes, WTF_ARRAY_LENGTH(V8TestObjectAttributes), |
11000 V8TestObjectAccessors, WTF_ARRAY_LENGTH(V8TestObjectAccessors), | 11000 V8TestObjectAccessors, WTF_ARRAY_LENGTH(V8TestObjectAccessors), |
11001 V8TestObjectMethods, WTF_ARRAY_LENGTH(V8TestObjectMethods)); | 11001 V8TestObjectMethods, WTF_ARRAY_LENGTH(V8TestObjectMethods)); |
11002 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); | 11002 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); |
11003 ALLOW_UNUSED_LOCAL(instanceTemplate); | 11003 ALLOW_UNUSED_LOCAL(instanceTemplate); |
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11644 return false; | 11644 return false; |
11645 | 11645 |
11646 ScriptState::Scope scope(scriptState); | 11646 ScriptState::Scope scope(scriptState); |
11647 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 11647 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
11648 | 11648 |
11649 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 11649 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; |
11650 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); | 11650 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); |
11651 } | 11651 } |
11652 | 11652 |
11653 } // namespace blink | 11653 } // namespace blink |
OLD | NEW |