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 11447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11458 v8SetReturnValue(info, impl->newObjectTestInterfaceMethod()); | 11458 v8SetReturnValue(info, impl->newObjectTestInterfaceMethod()); |
11459 } | 11459 } |
11460 | 11460 |
11461 static void newObjectTestInterfaceMethodMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 11461 static void newObjectTestInterfaceMethodMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
11462 { | 11462 { |
11463 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 11463 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
11464 TestObjectV8Internal::newObjectTestInterfaceMethodMethod(info); | 11464 TestObjectV8Internal::newObjectTestInterfaceMethodMethod(info); |
11465 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 11465 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
11466 } | 11466 } |
11467 | 11467 |
| 11468 static void serializerMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
| 11469 { |
| 11470 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 11471 v8SetReturnValueString(info, impl->serializerMethod(), info.GetIsolate()); |
| 11472 } |
| 11473 |
| 11474 static void serializerMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 11475 { |
| 11476 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 11477 TestObjectV8Internal::serializerMethodMethod(info); |
| 11478 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 11479 } |
| 11480 |
11468 static void voidMethodImplementedInPrivateScriptMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 11481 static void voidMethodImplementedInPrivateScriptMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
11469 { | 11482 { |
11470 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 11483 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
11471 V8TestObject::PrivateScript::voidMethodImplementedInPrivateScriptMethod(toLo
calFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl); | 11484 V8TestObject::PrivateScript::voidMethodImplementedInPrivateScriptMethod(toLo
calFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl); |
11472 } | 11485 } |
11473 | 11486 |
11474 static void voidMethodImplementedInPrivateScriptMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 11487 static void voidMethodImplementedInPrivateScriptMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
11475 { | 11488 { |
11476 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 11489 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
11477 TestObjectV8Internal::voidMethodImplementedInPrivateScriptMethod(info); | 11490 TestObjectV8Internal::voidMethodImplementedInPrivateScriptMethod(info); |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11876 v8SetReturnValue(info, result.release()); | 11889 v8SetReturnValue(info, result.release()); |
11877 } | 11890 } |
11878 | 11891 |
11879 static void setMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | 11892 static void setMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
11880 { | 11893 { |
11881 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 11894 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
11882 TestObjectV8Internal::setMethod(info); | 11895 TestObjectV8Internal::setMethod(info); |
11883 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 11896 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
11884 } | 11897 } |
11885 | 11898 |
| 11899 static void toJSONMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 11900 { |
| 11901 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 11902 v8SetReturnValueString(info, impl->serializerMethod(), info.GetIsolate()); |
| 11903 } |
| 11904 |
| 11905 static void toJSONMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info
) |
| 11906 { |
| 11907 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 11908 TestObjectV8Internal::toJSONMethod(info); |
| 11909 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 11910 } |
| 11911 |
11886 static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 11912 static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
11887 { | 11913 { |
11888 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 11914 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
11889 v8SetReturnValueString(info, impl->toString(), info.GetIsolate()); | 11915 v8SetReturnValueString(info, impl->stringifierAttribute(), info.GetIsolate()
); |
11890 } | 11916 } |
11891 | 11917 |
11892 static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 11918 static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
11893 { | 11919 { |
11894 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 11920 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
11895 TestObjectV8Internal::toStringMethod(info); | 11921 TestObjectV8Internal::toStringMethod(info); |
11896 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 11922 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
11897 } | 11923 } |
11898 | 11924 |
11899 static void iteratorMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 11925 static void iteratorMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12482 {"typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArg", TestObjectV
8Internal::typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArgMethodCal
lback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 12508 {"typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArg", TestObjectV
8Internal::typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArgMethodCal
lback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
12483 {"useToImpl4ArgumentsCheckingIfPossibleWithOptionalArg", TestObjectV8Interna
l::useToImpl4ArgumentsCheckingIfPossibleWithOptionalArgMethodCallback, 0, 1, V8D
OMConfiguration::ExposedToAllScripts}, | 12509 {"useToImpl4ArgumentsCheckingIfPossibleWithOptionalArg", TestObjectV8Interna
l::useToImpl4ArgumentsCheckingIfPossibleWithOptionalArgMethodCallback, 0, 1, V8D
OMConfiguration::ExposedToAllScripts}, |
12484 {"useToImpl4ArgumentsCheckingIfPossibleWithNullableArg", TestObjectV8Interna
l::useToImpl4ArgumentsCheckingIfPossibleWithNullableArgMethodCallback, 0, 2, V8D
OMConfiguration::ExposedToAllScripts}, | 12510 {"useToImpl4ArgumentsCheckingIfPossibleWithNullableArg", TestObjectV8Interna
l::useToImpl4ArgumentsCheckingIfPossibleWithNullableArgMethodCallback, 0, 2, V8D
OMConfiguration::ExposedToAllScripts}, |
12485 {"useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArg", TestObjectV8Intern
al::useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArgMethodCallback, 0, 1, V
8DOMConfiguration::ExposedToAllScripts}, | 12511 {"useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArg", TestObjectV8Intern
al::useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArgMethodCallback, 0, 1, V
8DOMConfiguration::ExposedToAllScripts}, |
12486 {"typeCheckingUnrestrictedVoidMethodFloatArgDoubleArg", TestObjectV8Internal
::typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethodCallback, 0, 2, V8DOM
Configuration::ExposedToAllScripts}, | 12512 {"typeCheckingUnrestrictedVoidMethodFloatArgDoubleArg", TestObjectV8Internal
::typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethodCallback, 0, 2, V8DOM
Configuration::ExposedToAllScripts}, |
12487 {"voidMethodTestInterfaceGarbageCollectedSequenceArg", TestObjectV8Internal:
:voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback, 0, 1, V8DOMCo
nfiguration::ExposedToAllScripts}, | 12513 {"voidMethodTestInterfaceGarbageCollectedSequenceArg", TestObjectV8Internal:
:voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback, 0, 1, V8DOMCo
nfiguration::ExposedToAllScripts}, |
12488 {"voidMethodTestInterfaceGarbageCollectedArrayArg", TestObjectV8Internal::vo
idMethodTestInterfaceGarbageCollectedArrayArgMethodCallback, 0, 1, V8DOMConfigur
ation::ExposedToAllScripts}, | 12514 {"voidMethodTestInterfaceGarbageCollectedArrayArg", TestObjectV8Internal::vo
idMethodTestInterfaceGarbageCollectedArrayArgMethodCallback, 0, 1, V8DOMConfigur
ation::ExposedToAllScripts}, |
12489 {"voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg", TestObjectV8Int
ernal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallback, 0
, 1, V8DOMConfiguration::ExposedToAllScripts}, | 12515 {"voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg", TestObjectV8Int
ernal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallback, 0
, 1, V8DOMConfiguration::ExposedToAllScripts}, |
12490 {"voidMethodTestInterfaceWillBeGarbageCollectedArrayArg", TestObjectV8Intern
al::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback, 0, 1, V
8DOMConfiguration::ExposedToAllScripts}, | 12516 {"voidMethodTestInterfaceWillBeGarbageCollectedArrayArg", TestObjectV8Intern
al::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback, 0, 1, V
8DOMConfiguration::ExposedToAllScripts}, |
12491 {"newObjectTestInterfaceMethod", TestObjectV8Internal::newObjectTestInterfac
eMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 12517 {"newObjectTestInterfaceMethod", TestObjectV8Internal::newObjectTestInterfac
eMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
| 12518 {"serializerMethod", TestObjectV8Internal::serializerMethodMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts}, |
12492 {"voidMethodImplementedInPrivateScript", TestObjectV8Internal::voidMethodImp
lementedInPrivateScriptMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScr
ipts}, | 12519 {"voidMethodImplementedInPrivateScript", TestObjectV8Internal::voidMethodImp
lementedInPrivateScriptMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScr
ipts}, |
12493 {"shortMethodImplementedInPrivateScript", TestObjectV8Internal::shortMethodI
mplementedInPrivateScriptMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllS
cripts}, | 12520 {"shortMethodImplementedInPrivateScript", TestObjectV8Internal::shortMethodI
mplementedInPrivateScriptMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllS
cripts}, |
12494 {"shortMethodWithShortArgumentImplementedInPrivateScript", TestObjectV8Inter
nal::shortMethodWithShortArgumentImplementedInPrivateScriptMethodCallback, 0, 1,
V8DOMConfiguration::ExposedToAllScripts}, | 12521 {"shortMethodWithShortArgumentImplementedInPrivateScript", TestObjectV8Inter
nal::shortMethodWithShortArgumentImplementedInPrivateScriptMethodCallback, 0, 1,
V8DOMConfiguration::ExposedToAllScripts}, |
12495 {"stringMethodWithStringArgumentImplementedInPrivateScript", TestObjectV8Int
ernal::stringMethodWithStringArgumentImplementedInPrivateScriptMethodCallback, 0
, 1, V8DOMConfiguration::ExposedToAllScripts}, | 12522 {"stringMethodWithStringArgumentImplementedInPrivateScript", TestObjectV8Int
ernal::stringMethodWithStringArgumentImplementedInPrivateScriptMethodCallback, 0
, 1, V8DOMConfiguration::ExposedToAllScripts}, |
12496 {"nodeMethodWithNodeArgumentImplementedInPrivateScript", TestObjectV8Interna
l::nodeMethodWithNodeArgumentImplementedInPrivateScriptMethodCallback, 0, 1, V8D
OMConfiguration::ExposedToAllScripts}, | 12523 {"nodeMethodWithNodeArgumentImplementedInPrivateScript", TestObjectV8Interna
l::nodeMethodWithNodeArgumentImplementedInPrivateScriptMethodCallback, 0, 1, V8D
OMConfiguration::ExposedToAllScripts}, |
12497 {"nodeMethodWithVariousArgumentsImplementedInPrivateScript", TestObjectV8Int
ernal::nodeMethodWithVariousArgumentsImplementedInPrivateScriptMethodCallback, 0
, 5, V8DOMConfiguration::ExposedToAllScripts}, | 12524 {"nodeMethodWithVariousArgumentsImplementedInPrivateScript", TestObjectV8Int
ernal::nodeMethodWithVariousArgumentsImplementedInPrivateScriptMethodCallback, 0
, 5, V8DOMConfiguration::ExposedToAllScripts}, |
12498 {"methodImplementedInCPPForPrivateScriptOnly", TestObjectV8Internal::methodI
mplementedInCPPForPrivateScriptOnlyMethodCallback, 0, 2, V8DOMConfiguration::Onl
yExposedToPrivateScript}, | 12525 {"methodImplementedInCPPForPrivateScriptOnly", TestObjectV8Internal::methodI
mplementedInCPPForPrivateScriptOnlyMethodCallback, 0, 2, V8DOMConfiguration::Onl
yExposedToPrivateScript}, |
12499 {"keys", TestObjectV8Internal::keysMethodCallback, 0, 0, V8DOMConfiguration:
:ExposedToAllScripts}, | 12526 {"keys", TestObjectV8Internal::keysMethodCallback, 0, 0, V8DOMConfiguration:
:ExposedToAllScripts}, |
12500 {"values", TestObjectV8Internal::valuesMethodCallback, 0, 0, V8DOMConfigurat
ion::ExposedToAllScripts}, | 12527 {"values", TestObjectV8Internal::valuesMethodCallback, 0, 0, V8DOMConfigurat
ion::ExposedToAllScripts}, |
12501 {"entries", TestObjectV8Internal::entriesMethodCallback, 0, 0, V8DOMConfigur
ation::ExposedToAllScripts}, | 12528 {"entries", TestObjectV8Internal::entriesMethodCallback, 0, 0, V8DOMConfigur
ation::ExposedToAllScripts}, |
12502 {"forEach", TestObjectV8Internal::forEachMethodCallback, 0, 1, V8DOMConfigur
ation::ExposedToAllScripts}, | 12529 {"forEach", TestObjectV8Internal::forEachMethodCallback, 0, 1, V8DOMConfigur
ation::ExposedToAllScripts}, |
12503 {"has", TestObjectV8Internal::hasMethodCallback, 0, 1, V8DOMConfiguration::E
xposedToAllScripts}, | 12530 {"has", TestObjectV8Internal::hasMethodCallback, 0, 1, V8DOMConfiguration::E
xposedToAllScripts}, |
12504 {"get", TestObjectV8Internal::getMethodCallback, 0, 1, V8DOMConfiguration::E
xposedToAllScripts}, | 12531 {"get", TestObjectV8Internal::getMethodCallback, 0, 1, V8DOMConfiguration::E
xposedToAllScripts}, |
12505 {"clear", TestObjectV8Internal::clearMethodCallback, 0, 0, V8DOMConfiguratio
n::ExposedToAllScripts}, | 12532 {"clear", TestObjectV8Internal::clearMethodCallback, 0, 0, V8DOMConfiguratio
n::ExposedToAllScripts}, |
12506 {"delete", TestObjectV8Internal::deleteMethodCallback, 0, 1, V8DOMConfigurat
ion::ExposedToAllScripts}, | 12533 {"delete", TestObjectV8Internal::deleteMethodCallback, 0, 1, V8DOMConfigurat
ion::ExposedToAllScripts}, |
12507 {"set", TestObjectV8Internal::setMethodCallback, 0, 2, V8DOMConfiguration::E
xposedToAllScripts}, | 12534 {"set", TestObjectV8Internal::setMethodCallback, 0, 2, V8DOMConfiguration::E
xposedToAllScripts}, |
| 12535 {"toJSON", TestObjectV8Internal::toJSONMethodCallback, 0, 0, V8DOMConfigurat
ion::ExposedToAllScripts}, |
12508 {"toString", TestObjectV8Internal::toStringMethodCallback, 0, 0, V8DOMConfig
uration::ExposedToAllScripts}, | 12536 {"toString", TestObjectV8Internal::toStringMethodCallback, 0, 0, V8DOMConfig
uration::ExposedToAllScripts}, |
12509 }; | 12537 }; |
12510 | 12538 |
12511 static void installV8TestObjectTemplate(v8::Local<v8::FunctionTemplate> function
Template, v8::Isolate* isolate) | 12539 static void installV8TestObjectTemplate(v8::Local<v8::FunctionTemplate> function
Template, v8::Isolate* isolate) |
12512 { | 12540 { |
12513 functionTemplate->ReadOnlyPrototype(); | 12541 functionTemplate->ReadOnlyPrototype(); |
12514 | 12542 |
12515 v8::Local<v8::Signature> defaultSignature; | 12543 v8::Local<v8::Signature> defaultSignature; |
12516 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "TestObject", v8::Local<v8::FunctionTemplate>(), V8TestObject::int
ernalFieldCount, | 12544 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "TestObject", v8::Local<v8::FunctionTemplate>(), V8TestObject::int
ernalFieldCount, |
12517 V8TestObjectAttributes, WTF_ARRAY_LENGTH(V8TestObjectAttributes), | 12545 V8TestObjectAttributes, WTF_ARRAY_LENGTH(V8TestObjectAttributes), |
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13188 return false; | 13216 return false; |
13189 | 13217 |
13190 ScriptState::Scope scope(scriptState); | 13218 ScriptState::Scope scope(scriptState); |
13191 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 13219 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
13192 | 13220 |
13193 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 13221 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; |
13194 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); | 13222 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); |
13195 } | 13223 } |
13196 | 13224 |
13197 } // namespace blink | 13225 } // namespace blink |
OLD | NEW |