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 6397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6408 impl->voidMethodDOMStringOrDouble(arg); | 6408 impl->voidMethodDOMStringOrDouble(arg); |
6409 } | 6409 } |
6410 | 6410 |
6411 static void voidMethodDOMStringOrDoubleMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 6411 static void voidMethodDOMStringOrDoubleMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
6412 { | 6412 { |
6413 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6413 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
6414 TestObjectV8Internal::voidMethodDOMStringOrDoubleMethod(info); | 6414 TestObjectV8Internal::voidMethodDOMStringOrDoubleMethod(info); |
6415 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6415 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
6416 } | 6416 } |
6417 | 6417 |
| 6418 static void voidMethodDOMStringOrArrayBufferOrArrayBufferViewMethod(const v8::Fu
nctionCallbackInfo<v8::Value>& info) |
| 6419 { |
| 6420 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
OMStringOrArrayBufferOrArrayBufferView", "TestObject", info.Holder(), info.GetIs
olate()); |
| 6421 if (UNLIKELY(info.Length() < 1)) { |
| 6422 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 6423 exceptionState.throwIfNeeded(); |
| 6424 return; |
| 6425 } |
| 6426 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 6427 StringOrArrayBufferOrArrayBufferView arg; |
| 6428 { |
| 6429 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8StringOrArrayBufferOrArrayBuf
ferView::toImpl(info.GetIsolate(), info[0], arg, exceptionState), exceptionState
); |
| 6430 } |
| 6431 impl->voidMethodDOMStringOrArrayBufferOrArrayBufferView(arg); |
| 6432 } |
| 6433 |
| 6434 static void voidMethodDOMStringOrArrayBufferOrArrayBufferViewMethodCallback(cons
t v8::FunctionCallbackInfo<v8::Value>& info) |
| 6435 { |
| 6436 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 6437 TestObjectV8Internal::voidMethodDOMStringOrArrayBufferOrArrayBufferViewMetho
d(info); |
| 6438 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 6439 } |
| 6440 |
6418 static void voidMethodTestInterfaceEmptyOrNullArgMethod(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 6441 static void voidMethodTestInterfaceEmptyOrNullArgMethod(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
6419 { | 6442 { |
6420 if (UNLIKELY(info.Length() < 1)) { | 6443 if (UNLIKELY(info.Length() < 1)) { |
6421 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodTestInterfaceEmptyOrNullArg", "TestObject", 1, info.
Length()), info.GetIsolate()); | 6444 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodTestInterfaceEmptyOrNullArg", "TestObject", 1, info.
Length()), info.GetIsolate()); |
6422 return; | 6445 return; |
6423 } | 6446 } |
6424 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6447 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
6425 TestInterfaceEmpty* nullableTestInterfaceEmptyArg; | 6448 TestInterfaceEmpty* nullableTestInterfaceEmptyArg; |
6426 { | 6449 { |
6427 nullableTestInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeChec
k(info.GetIsolate(), info[0]); | 6450 nullableTestInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeChec
k(info.GetIsolate(), info[0]); |
(...skipping 3957 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10385 {"voidMethodSequenceSequenceDOMStringArg", TestObjectV8Internal::voidMethodS
equenceSequenceDOMStringArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAl
lScripts}, | 10408 {"voidMethodSequenceSequenceDOMStringArg", TestObjectV8Internal::voidMethodS
equenceSequenceDOMStringArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAl
lScripts}, |
10386 {"nullableLongMethod", TestObjectV8Internal::nullableLongMethodMethodCallbac
k, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10409 {"nullableLongMethod", TestObjectV8Internal::nullableLongMethodMethodCallbac
k, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
10387 {"nullableStringMethod", TestObjectV8Internal::nullableStringMethodMethodCal
lback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10410 {"nullableStringMethod", TestObjectV8Internal::nullableStringMethodMethodCal
lback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
10388 {"nullableTestInterfaceMethod", TestObjectV8Internal::nullableTestInterfaceM
ethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10411 {"nullableTestInterfaceMethod", TestObjectV8Internal::nullableTestInterfaceM
ethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
10389 {"nullableLongSequenceMethod", TestObjectV8Internal::nullableLongSequenceMet
hodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10412 {"nullableLongSequenceMethod", TestObjectV8Internal::nullableLongSequenceMet
hodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
10390 {"testInterfaceGarbageCollectedOrDOMStringMethod", TestObjectV8Internal::tes
tInterfaceGarbageCollectedOrDOMStringMethodMethodCallback, 0, 0, V8DOMConfigurat
ion::ExposedToAllScripts}, | 10413 {"testInterfaceGarbageCollectedOrDOMStringMethod", TestObjectV8Internal::tes
tInterfaceGarbageCollectedOrDOMStringMethodMethodCallback, 0, 0, V8DOMConfigurat
ion::ExposedToAllScripts}, |
10391 {"testInterfaceWillBeGarbageCollectedOrTestDictionaryMethod", TestObjectV8In
ternal::testInterfaceWillBeGarbageCollectedOrTestDictionaryMethodMethodCallback,
0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10414 {"testInterfaceWillBeGarbageCollectedOrTestDictionaryMethod", TestObjectV8In
ternal::testInterfaceWillBeGarbageCollectedOrTestDictionaryMethodMethodCallback,
0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
10392 {"booleanOrDOMStringOrUnrestrictedDoubleMethod", TestObjectV8Internal::boole
anOrDOMStringOrUnrestrictedDoubleMethodMethodCallback, 0, 0, V8DOMConfiguration:
:ExposedToAllScripts}, | 10415 {"booleanOrDOMStringOrUnrestrictedDoubleMethod", TestObjectV8Internal::boole
anOrDOMStringOrUnrestrictedDoubleMethodMethodCallback, 0, 0, V8DOMConfiguration:
:ExposedToAllScripts}, |
10393 {"testInterfaceOrLongMethod", TestObjectV8Internal::testInterfaceOrLongMetho
dMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10416 {"testInterfaceOrLongMethod", TestObjectV8Internal::testInterfaceOrLongMetho
dMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
10394 {"voidMethodDOMStringOrDouble", TestObjectV8Internal::voidMethodDOMStringOrD
oubleMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10417 {"voidMethodDOMStringOrDouble", TestObjectV8Internal::voidMethodDOMStringOrD
oubleMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
| 10418 {"voidMethodDOMStringOrArrayBufferOrArrayBufferView", TestObjectV8Internal::
voidMethodDOMStringOrArrayBufferOrArrayBufferViewMethodCallback, 0, 1, V8DOMConf
iguration::ExposedToAllScripts}, |
10395 {"voidMethodTestInterfaceEmptyOrNullArg", TestObjectV8Internal::voidMethodTe
stInterfaceEmptyOrNullArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllS
cripts}, | 10419 {"voidMethodTestInterfaceEmptyOrNullArg", TestObjectV8Internal::voidMethodTe
stInterfaceEmptyOrNullArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllS
cripts}, |
10396 {"voidMethodTestCallbackInterfaceArg", TestObjectV8Internal::voidMethodTestC
allbackInterfaceArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts
}, | 10420 {"voidMethodTestCallbackInterfaceArg", TestObjectV8Internal::voidMethodTestC
allbackInterfaceArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts
}, |
10397 {"voidMethodOptionalTestCallbackInterfaceArg", TestObjectV8Internal::voidMet
hodOptionalTestCallbackInterfaceArgMethodCallback, 0, 0, V8DOMConfiguration::Exp
osedToAllScripts}, | 10421 {"voidMethodOptionalTestCallbackInterfaceArg", TestObjectV8Internal::voidMet
hodOptionalTestCallbackInterfaceArgMethodCallback, 0, 0, V8DOMConfiguration::Exp
osedToAllScripts}, |
10398 {"voidMethodTestCallbackInterfaceOrNullArg", TestObjectV8Internal::voidMetho
dTestCallbackInterfaceOrNullArgMethodCallback, 0, 1, V8DOMConfiguration::Exposed
ToAllScripts}, | 10422 {"voidMethodTestCallbackInterfaceOrNullArg", TestObjectV8Internal::voidMetho
dTestCallbackInterfaceOrNullArgMethodCallback, 0, 1, V8DOMConfiguration::Exposed
ToAllScripts}, |
10399 {"testEnumMethod", TestObjectV8Internal::testEnumMethodMethodCallback, 0, 0,
V8DOMConfiguration::ExposedToAllScripts}, | 10423 {"testEnumMethod", TestObjectV8Internal::testEnumMethodMethodCallback, 0, 0,
V8DOMConfiguration::ExposedToAllScripts}, |
10400 {"voidMethodTestEnumArg", TestObjectV8Internal::voidMethodTestEnumArgMethodC
allback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10424 {"voidMethodTestEnumArg", TestObjectV8Internal::voidMethodTestEnumArgMethodC
allback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
10401 {"dictionaryMethod", TestObjectV8Internal::dictionaryMethodMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10425 {"dictionaryMethod", TestObjectV8Internal::dictionaryMethodMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts}, |
10402 {"testDictionaryMethod", TestObjectV8Internal::testDictionaryMethodMethodCal
lback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10426 {"testDictionaryMethod", TestObjectV8Internal::testDictionaryMethodMethodCal
lback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
10403 {"nodeFilterMethod", TestObjectV8Internal::nodeFilterMethodMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10427 {"nodeFilterMethod", TestObjectV8Internal::nodeFilterMethodMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts}, |
10404 {"promiseMethod", TestObjectV8Internal::promiseMethodMethodCallback, 0, 3, V
8DOMConfiguration::ExposedToAllScripts}, | 10428 {"promiseMethod", TestObjectV8Internal::promiseMethodMethodCallback, 0, 3, V
8DOMConfiguration::ExposedToAllScripts}, |
(...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11182 return false; | 11206 return false; |
11183 | 11207 |
11184 ScriptState::Scope scope(scriptState); | 11208 ScriptState::Scope scope(scriptState); |
11185 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob
al(), scriptState->isolate()); | 11209 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob
al(), scriptState->isolate()); |
11186 | 11210 |
11187 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 11211 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; |
11188 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); | 11212 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); |
11189 } | 11213 } |
11190 | 11214 |
11191 } // namespace blink | 11215 } // namespace blink |
OLD | NEW |