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 6565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6576 impl->voidMethodDOMStringOrArrayBufferOrArrayBufferViewArg(arg); | 6576 impl->voidMethodDOMStringOrArrayBufferOrArrayBufferViewArg(arg); |
6577 } | 6577 } |
6578 | 6578 |
6579 static void voidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMethodCallback(c
onst v8::FunctionCallbackInfo<v8::Value>& info) | 6579 static void voidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMethodCallback(c
onst v8::FunctionCallbackInfo<v8::Value>& info) |
6580 { | 6580 { |
6581 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6581 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
6582 TestObjectV8Internal::voidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMe
thod(info); | 6582 TestObjectV8Internal::voidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMe
thod(info); |
6583 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6583 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
6584 } | 6584 } |
6585 | 6585 |
| 6586 static void voidMethodArrayBufferOrArrayBufferViewOrDictionaryArgMethod(const v8
::FunctionCallbackInfo<v8::Value>& info) |
| 6587 { |
| 6588 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA
rrayBufferOrArrayBufferViewOrDictionaryArg", "TestObject", info.Holder(), info.G
etIsolate()); |
| 6589 if (UNLIKELY(info.Length() < 1)) { |
| 6590 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 6591 exceptionState.throwIfNeeded(); |
| 6592 return; |
| 6593 } |
| 6594 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 6595 ArrayBufferOrArrayBufferViewOrDictionary arg; |
| 6596 { |
| 6597 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8ArrayBufferOrArrayBufferViewO
rDictionary::toImpl(info.GetIsolate(), info[0], arg, exceptionState), exceptionS
tate); |
| 6598 } |
| 6599 impl->voidMethodArrayBufferOrArrayBufferViewOrDictionaryArg(arg); |
| 6600 } |
| 6601 |
| 6602 static void voidMethodArrayBufferOrArrayBufferViewOrDictionaryArgMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) |
| 6603 { |
| 6604 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 6605 TestObjectV8Internal::voidMethodArrayBufferOrArrayBufferViewOrDictionaryArgM
ethod(info); |
| 6606 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 6607 } |
| 6608 |
6586 static void voidMethodTestInterfaceEmptyOrNullArgMethod(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 6609 static void voidMethodTestInterfaceEmptyOrNullArgMethod(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
6587 { | 6610 { |
6588 if (UNLIKELY(info.Length() < 1)) { | 6611 if (UNLIKELY(info.Length() < 1)) { |
6589 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodTestInterfaceEmptyOrNullArg", "TestObject", 1, info.
Length()), info.GetIsolate()); | 6612 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodTestInterfaceEmptyOrNullArg", "TestObject", 1, info.
Length()), info.GetIsolate()); |
6590 return; | 6613 return; |
6591 } | 6614 } |
6592 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6615 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
6593 TestInterfaceEmpty* nullableTestInterfaceEmptyArg; | 6616 TestInterfaceEmpty* nullableTestInterfaceEmptyArg; |
6594 { | 6617 { |
6595 nullableTestInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeChec
k(info.GetIsolate(), info[0]); | 6618 nullableTestInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeChec
k(info.GetIsolate(), info[0]); |
(...skipping 3997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10593 {"nullableTestInterfaceMethod", TestObjectV8Internal::nullableTestInterfaceM
ethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10616 {"nullableTestInterfaceMethod", TestObjectV8Internal::nullableTestInterfaceM
ethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
10594 {"nullableLongSequenceMethod", TestObjectV8Internal::nullableLongSequenceMet
hodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10617 {"nullableLongSequenceMethod", TestObjectV8Internal::nullableLongSequenceMet
hodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
10595 {"testInterfaceGarbageCollectedOrDOMStringMethod", TestObjectV8Internal::tes
tInterfaceGarbageCollectedOrDOMStringMethodMethodCallback, 0, 0, V8DOMConfigurat
ion::ExposedToAllScripts}, | 10618 {"testInterfaceGarbageCollectedOrDOMStringMethod", TestObjectV8Internal::tes
tInterfaceGarbageCollectedOrDOMStringMethodMethodCallback, 0, 0, V8DOMConfigurat
ion::ExposedToAllScripts}, |
10596 {"testInterfaceWillBeGarbageCollectedOrTestDictionaryMethod", TestObjectV8In
ternal::testInterfaceWillBeGarbageCollectedOrTestDictionaryMethodMethodCallback,
0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10619 {"testInterfaceWillBeGarbageCollectedOrTestDictionaryMethod", TestObjectV8In
ternal::testInterfaceWillBeGarbageCollectedOrTestDictionaryMethodMethodCallback,
0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
10597 {"booleanOrDOMStringOrUnrestrictedDoubleMethod", TestObjectV8Internal::boole
anOrDOMStringOrUnrestrictedDoubleMethodMethodCallback, 0, 0, V8DOMConfiguration:
:ExposedToAllScripts}, | 10620 {"booleanOrDOMStringOrUnrestrictedDoubleMethod", TestObjectV8Internal::boole
anOrDOMStringOrUnrestrictedDoubleMethodMethodCallback, 0, 0, V8DOMConfiguration:
:ExposedToAllScripts}, |
10598 {"testInterfaceOrLongMethod", TestObjectV8Internal::testInterfaceOrLongMetho
dMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10621 {"testInterfaceOrLongMethod", TestObjectV8Internal::testInterfaceOrLongMetho
dMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
10599 {"voidMethodDoubleOrDOMStringArg", TestObjectV8Internal::voidMethodDoubleOrD
OMStringArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10622 {"voidMethodDoubleOrDOMStringArg", TestObjectV8Internal::voidMethodDoubleOrD
OMStringArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
10600 {"voidMethodDoubleOrDOMStringOrNullArg", TestObjectV8Internal::voidMethodDou
bleOrDOMStringOrNullArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScr
ipts}, | 10623 {"voidMethodDoubleOrDOMStringOrNullArg", TestObjectV8Internal::voidMethodDou
bleOrDOMStringOrNullArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScr
ipts}, |
10601 {"voidMethodDoubleOrNullOrDOMStringArg", TestObjectV8Internal::voidMethodDou
bleOrNullOrDOMStringArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScr
ipts}, | 10624 {"voidMethodDoubleOrNullOrDOMStringArg", TestObjectV8Internal::voidMethodDou
bleOrNullOrDOMStringArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScr
ipts}, |
10602 {"voidMethodDOMStringOrArrayBufferOrArrayBufferViewArg", TestObjectV8Interna
l::voidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMethodCallback, 0, 1, V8D
OMConfiguration::ExposedToAllScripts}, | 10625 {"voidMethodDOMStringOrArrayBufferOrArrayBufferViewArg", TestObjectV8Interna
l::voidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMethodCallback, 0, 1, V8D
OMConfiguration::ExposedToAllScripts}, |
| 10626 {"voidMethodArrayBufferOrArrayBufferViewOrDictionaryArg", TestObjectV8Intern
al::voidMethodArrayBufferOrArrayBufferViewOrDictionaryArgMethodCallback, 0, 1, V
8DOMConfiguration::ExposedToAllScripts}, |
10603 {"voidMethodTestInterfaceEmptyOrNullArg", TestObjectV8Internal::voidMethodTe
stInterfaceEmptyOrNullArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllS
cripts}, | 10627 {"voidMethodTestInterfaceEmptyOrNullArg", TestObjectV8Internal::voidMethodTe
stInterfaceEmptyOrNullArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllS
cripts}, |
10604 {"voidMethodTestCallbackInterfaceArg", TestObjectV8Internal::voidMethodTestC
allbackInterfaceArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts
}, | 10628 {"voidMethodTestCallbackInterfaceArg", TestObjectV8Internal::voidMethodTestC
allbackInterfaceArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts
}, |
10605 {"voidMethodOptionalTestCallbackInterfaceArg", TestObjectV8Internal::voidMet
hodOptionalTestCallbackInterfaceArgMethodCallback, 0, 0, V8DOMConfiguration::Exp
osedToAllScripts}, | 10629 {"voidMethodOptionalTestCallbackInterfaceArg", TestObjectV8Internal::voidMet
hodOptionalTestCallbackInterfaceArgMethodCallback, 0, 0, V8DOMConfiguration::Exp
osedToAllScripts}, |
10606 {"voidMethodTestCallbackInterfaceOrNullArg", TestObjectV8Internal::voidMetho
dTestCallbackInterfaceOrNullArgMethodCallback, 0, 1, V8DOMConfiguration::Exposed
ToAllScripts}, | 10630 {"voidMethodTestCallbackInterfaceOrNullArg", TestObjectV8Internal::voidMetho
dTestCallbackInterfaceOrNullArgMethodCallback, 0, 1, V8DOMConfiguration::Exposed
ToAllScripts}, |
10607 {"testEnumMethod", TestObjectV8Internal::testEnumMethodMethodCallback, 0, 0,
V8DOMConfiguration::ExposedToAllScripts}, | 10631 {"testEnumMethod", TestObjectV8Internal::testEnumMethodMethodCallback, 0, 0,
V8DOMConfiguration::ExposedToAllScripts}, |
10608 {"voidMethodTestEnumArg", TestObjectV8Internal::voidMethodTestEnumArgMethodC
allback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10632 {"voidMethodTestEnumArg", TestObjectV8Internal::voidMethodTestEnumArgMethodC
allback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
10609 {"dictionaryMethod", TestObjectV8Internal::dictionaryMethodMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10633 {"dictionaryMethod", TestObjectV8Internal::dictionaryMethodMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts}, |
10610 {"testDictionaryMethod", TestObjectV8Internal::testDictionaryMethodMethodCal
lback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10634 {"testDictionaryMethod", TestObjectV8Internal::testDictionaryMethodMethodCal
lback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
10611 {"nodeFilterMethod", TestObjectV8Internal::nodeFilterMethodMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10635 {"nodeFilterMethod", TestObjectV8Internal::nodeFilterMethodMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts}, |
10612 {"promiseMethod", TestObjectV8Internal::promiseMethodMethodCallback, 0, 3, V
8DOMConfiguration::ExposedToAllScripts}, | 10636 {"promiseMethod", TestObjectV8Internal::promiseMethodMethodCallback, 0, 3, V
8DOMConfiguration::ExposedToAllScripts}, |
(...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11391 return false; | 11415 return false; |
11392 | 11416 |
11393 ScriptState::Scope scope(scriptState); | 11417 ScriptState::Scope scope(scriptState); |
11394 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob
al(), scriptState->isolate()); | 11418 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob
al(), scriptState->isolate()); |
11395 | 11419 |
11396 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 11420 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; |
11397 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); | 11421 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); |
11398 } | 11422 } |
11399 | 11423 |
11400 } // namespace blink | 11424 } // namespace blink |
OLD | NEW |