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 9981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9992 impl->checkSecurityForNodeVoidMethod(); | 9992 impl->checkSecurityForNodeVoidMethod(); |
9993 } | 9993 } |
9994 | 9994 |
9995 static void checkSecurityForNodeVoidMethodMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 9995 static void checkSecurityForNodeVoidMethodMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
9996 { | 9996 { |
9997 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9997 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
9998 TestObjectV8Internal::checkSecurityForNodeVoidMethodMethod(info); | 9998 TestObjectV8Internal::checkSecurityForNodeVoidMethodMethod(info); |
9999 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9999 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
10000 } | 10000 } |
10001 | 10001 |
| 10002 static void clearSingleCachedAttributeMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 10003 { |
| 10004 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 10005 impl->clearSingleCachedAttribute(); |
| 10006 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), info.Holder(), V8HiddenV
alue::one(info.GetIsolate())); |
| 10007 } |
| 10008 |
| 10009 static void clearSingleCachedAttributeMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
| 10010 { |
| 10011 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 10012 TestObjectV8Internal::clearSingleCachedAttributeMethod(info); |
| 10013 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 10014 } |
| 10015 |
| 10016 static void clearMultipleCachedAttributesMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) |
| 10017 { |
| 10018 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 10019 impl->clearMultipleCachedAttributes(); |
| 10020 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), info.Holder(), V8HiddenV
alue::one(info.GetIsolate())); |
| 10021 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), info.Holder(), V8HiddenV
alue::two(info.GetIsolate())); |
| 10022 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), info.Holder(), V8HiddenV
alue::three(info.GetIsolate())); |
| 10023 } |
| 10024 |
| 10025 static void clearMultipleCachedAttributesMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
| 10026 { |
| 10027 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 10028 TestObjectV8Internal::clearMultipleCachedAttributesMethod(info); |
| 10029 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 10030 } |
| 10031 |
10002 #if ENABLE(CONDITION) | 10032 #if ENABLE(CONDITION) |
10003 static void conditionalConditionVoidMethodMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) | 10033 static void conditionalConditionVoidMethodMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) |
10004 { | 10034 { |
10005 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10035 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10006 impl->conditionalConditionVoidMethod(); | 10036 impl->conditionalConditionVoidMethod(); |
10007 } | 10037 } |
10008 #endif // ENABLE(CONDITION) | 10038 #endif // ENABLE(CONDITION) |
10009 | 10039 |
10010 #if ENABLE(CONDITION) | 10040 #if ENABLE(CONDITION) |
10011 static void conditionalConditionVoidMethodMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 10041 static void conditionalConditionVoidMethodMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
(...skipping 2452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12464 {"callWithExecutionContextVoidMethod", TestObjectV8Internal::callWithExecuti
onContextVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts
}, | 12494 {"callWithExecutionContextVoidMethod", TestObjectV8Internal::callWithExecuti
onContextVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts
}, |
12465 {"callWithScriptStateVoidMethod", TestObjectV8Internal::callWithScriptStateV
oidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 12495 {"callWithScriptStateVoidMethod", TestObjectV8Internal::callWithScriptStateV
oidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
12466 {"callWithScriptStateLongMethod", TestObjectV8Internal::callWithScriptStateL
ongMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 12496 {"callWithScriptStateLongMethod", TestObjectV8Internal::callWithScriptStateL
ongMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
12467 {"callWithScriptStateExecutionContextVoidMethod", TestObjectV8Internal::call
WithScriptStateExecutionContextVoidMethodMethodCallback, 0, 0, V8DOMConfiguratio
n::ExposedToAllScripts}, | 12497 {"callWithScriptStateExecutionContextVoidMethod", TestObjectV8Internal::call
WithScriptStateExecutionContextVoidMethodMethodCallback, 0, 0, V8DOMConfiguratio
n::ExposedToAllScripts}, |
12468 {"callWithScriptStateScriptArgumentsVoidMethod", TestObjectV8Internal::callW
ithScriptStateScriptArgumentsVoidMethodMethodCallback, 0, 0, V8DOMConfiguration:
:ExposedToAllScripts}, | 12498 {"callWithScriptStateScriptArgumentsVoidMethod", TestObjectV8Internal::callW
ithScriptStateScriptArgumentsVoidMethodMethodCallback, 0, 0, V8DOMConfiguration:
:ExposedToAllScripts}, |
12469 {"callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg", TestObjec
tV8Internal::callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMetho
dCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 12499 {"callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg", TestObjec
tV8Internal::callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMetho
dCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
12470 {"callWithActiveWindow", TestObjectV8Internal::callWithActiveWindowMethodCal
lback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 12500 {"callWithActiveWindow", TestObjectV8Internal::callWithActiveWindowMethodCal
lback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
12471 {"callWithActiveWindowScriptWindow", TestObjectV8Internal::callWithActiveWin
dowScriptWindowMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 12501 {"callWithActiveWindowScriptWindow", TestObjectV8Internal::callWithActiveWin
dowScriptWindowMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
12472 {"callWithThisValue", TestObjectV8Internal::callWithThisValueMethodCallback,
0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 12502 {"callWithThisValue", TestObjectV8Internal::callWithThisValueMethodCallback,
0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
12473 {"checkSecurityForNodeVoidMethod", TestObjectV8Internal::checkSecurityForNod
eVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 12503 {"checkSecurityForNodeVoidMethod", TestObjectV8Internal::checkSecurityForNod
eVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
| 12504 {"clearSingleCachedAttribute", TestObjectV8Internal::clearSingleCachedAttrib
uteMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
| 12505 {"clearMultipleCachedAttributes", TestObjectV8Internal::clearMultipleCachedA
ttributesMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
12474 #if ENABLE(CONDITION) | 12506 #if ENABLE(CONDITION) |
12475 {"conditionalConditionVoidMethod", TestObjectV8Internal::conditionalConditio
nVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 12507 {"conditionalConditionVoidMethod", TestObjectV8Internal::conditionalConditio
nVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
12476 #endif // ENABLE(CONDITION) | 12508 #endif // ENABLE(CONDITION) |
12477 {"customVoidMethod", TestObjectV8Internal::customVoidMethodMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts}, | 12509 {"customVoidMethod", TestObjectV8Internal::customVoidMethodMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts}, |
12478 {"customCallEpilogueVoidMethod", TestObjectV8Internal::customCallEpilogueVoi
dMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 12510 {"customCallEpilogueVoidMethod", TestObjectV8Internal::customCallEpilogueVoi
dMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
12479 #if ENABLE(CONDITION) | 12511 #if ENABLE(CONDITION) |
12480 {"conditionalConditionCustomVoidMethod", TestObjectV8Internal::conditionalCo
nditionCustomVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScr
ipts}, | 12512 {"conditionalConditionCustomVoidMethod", TestObjectV8Internal::conditionalCo
nditionCustomVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScr
ipts}, |
12481 #endif // ENABLE(CONDITION) | 12513 #endif // ENABLE(CONDITION) |
12482 {"customElementCallbacksVoidMethod", TestObjectV8Internal::customElementCall
backsVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 12514 {"customElementCallbacksVoidMethod", TestObjectV8Internal::customElementCall
backsVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
12483 {"deprecatedVoidMethod", TestObjectV8Internal::deprecatedVoidMethodMethodCal
lback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 12515 {"deprecatedVoidMethod", TestObjectV8Internal::deprecatedVoidMethodMethodCal
lback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
(...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13223 return false; | 13255 return false; |
13224 | 13256 |
13225 ScriptState::Scope scope(scriptState); | 13257 ScriptState::Scope scope(scriptState); |
13226 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 13258 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
13227 | 13259 |
13228 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 13260 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; |
13229 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); | 13261 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); |
13230 } | 13262 } |
13231 | 13263 |
13232 } // namespace blink | 13264 } // namespace blink |
OLD | NEW |