| 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 17 matching lines...) Expand all Loading... |
| 28 #include "bindings/core/v8/V8DocumentFragment.h" | 28 #include "bindings/core/v8/V8DocumentFragment.h" |
| 29 #include "bindings/core/v8/V8DocumentType.h" | 29 #include "bindings/core/v8/V8DocumentType.h" |
| 30 #include "bindings/core/v8/V8Element.h" | 30 #include "bindings/core/v8/V8Element.h" |
| 31 #include "bindings/core/v8/V8EventListenerList.h" | 31 #include "bindings/core/v8/V8EventListenerList.h" |
| 32 #include "bindings/core/v8/V8EventTarget.h" | 32 #include "bindings/core/v8/V8EventTarget.h" |
| 33 #include "bindings/core/v8/V8Float32Array.h" | 33 #include "bindings/core/v8/V8Float32Array.h" |
| 34 #include "bindings/core/v8/V8HTMLCollection.h" | 34 #include "bindings/core/v8/V8HTMLCollection.h" |
| 35 #include "bindings/core/v8/V8HTMLElement.h" | 35 #include "bindings/core/v8/V8HTMLElement.h" |
| 36 #include "bindings/core/v8/V8HiddenValue.h" | 36 #include "bindings/core/v8/V8HiddenValue.h" |
| 37 #include "bindings/core/v8/V8Int32Array.h" | 37 #include "bindings/core/v8/V8Int32Array.h" |
| 38 #include "bindings/core/v8/V8Iterator.h" |
| 38 #include "bindings/core/v8/V8Node.h" | 39 #include "bindings/core/v8/V8Node.h" |
| 39 #include "bindings/core/v8/V8NodeFilter.h" | 40 #include "bindings/core/v8/V8NodeFilter.h" |
| 40 #include "bindings/core/v8/V8ObjectConstructor.h" | 41 #include "bindings/core/v8/V8ObjectConstructor.h" |
| 41 #include "bindings/core/v8/V8ShadowRoot.h" | 42 #include "bindings/core/v8/V8ShadowRoot.h" |
| 42 #include "bindings/core/v8/V8TestCallbackInterface.h" | 43 #include "bindings/core/v8/V8TestCallbackInterface.h" |
| 43 #include "bindings/core/v8/V8TestDictionary.h" | 44 #include "bindings/core/v8/V8TestDictionary.h" |
| 44 #include "bindings/core/v8/V8TestInterface.h" | 45 #include "bindings/core/v8/V8TestInterface.h" |
| 45 #include "bindings/core/v8/V8TestInterfaceEmpty.h" | 46 #include "bindings/core/v8/V8TestInterfaceEmpty.h" |
| 46 #include "bindings/core/v8/V8TestInterfaceGarbageCollected.h" | 47 #include "bindings/core/v8/V8TestInterfaceGarbageCollected.h" |
| 47 #include "bindings/core/v8/V8TestInterfaceWillBeGarbageCollected.h" | 48 #include "bindings/core/v8/V8TestInterfaceWillBeGarbageCollected.h" |
| (...skipping 10542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10590 v8SetReturnValueString(info, impl->stringifierAttribute(), info.GetIsolate()
); | 10591 v8SetReturnValueString(info, impl->stringifierAttribute(), info.GetIsolate()
); |
| 10591 } | 10592 } |
| 10592 | 10593 |
| 10593 static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 10594 static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
| 10594 { | 10595 { |
| 10595 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10596 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 10596 TestObjectV8Internal::toStringMethod(info); | 10597 TestObjectV8Internal::toStringMethod(info); |
| 10597 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10598 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 10598 } | 10599 } |
| 10599 | 10600 |
| 10601 static void iteratorMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 10602 { |
| 10603 ExceptionState exceptionState(ExceptionState::ExecutionContext, "iterator",
"TestObject", info.Holder(), info.GetIsolate()); |
| 10604 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 10605 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); |
| 10606 RawPtr<Iterator> result = impl->iterator(scriptState, exceptionState); |
| 10607 if (exceptionState.hadException()) { |
| 10608 exceptionState.throwIfNeeded(); |
| 10609 return; |
| 10610 } |
| 10611 v8SetReturnValue(info, result.release()); |
| 10612 } |
| 10613 |
| 10614 static void iteratorMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
| 10615 { |
| 10616 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 10617 TestObjectV8Internal::iteratorMethod(info); |
| 10618 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 10619 } |
| 10620 |
| 10600 } // namespace TestObjectV8Internal | 10621 } // namespace TestObjectV8Internal |
| 10601 | 10622 |
| 10602 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectAttributes[]
= { | 10623 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectAttributes[]
= { |
| 10603 {"stringifierAttribute", TestObjectV8Internal::stringifierAttributeAttribute
GetterCallback, TestObjectV8Internal::stringifierAttributeAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati
on::OnInstance}, | 10624 {"stringifierAttribute", TestObjectV8Internal::stringifierAttributeAttribute
GetterCallback, TestObjectV8Internal::stringifierAttributeAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati
on::OnInstance}, |
| 10604 {"readonlyStringAttribute", TestObjectV8Internal::readonlyStringAttributeAtt
ributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s
tatic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScr
ipts, V8DOMConfiguration::OnInstance}, | 10625 {"readonlyStringAttribute", TestObjectV8Internal::readonlyStringAttributeAtt
ributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s
tatic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScr
ipts, V8DOMConfiguration::OnInstance}, |
| 10605 {"readonlyTestInterfaceEmptyAttribute", TestObjectV8Internal::readonlyTestIn
terfaceEmptyAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Access
Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfig
uration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | 10626 {"readonlyTestInterfaceEmptyAttribute", TestObjectV8Internal::readonlyTestIn
terfaceEmptyAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Access
Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfig
uration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, |
| 10606 {"readonlyLongAttribute", TestObjectV8Internal::readonlyLongAttributeAttribu
teGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati
c_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts
, V8DOMConfiguration::OnInstance}, | 10627 {"readonlyLongAttribute", TestObjectV8Internal::readonlyLongAttributeAttribu
teGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati
c_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts
, V8DOMConfiguration::OnInstance}, |
| 10607 {"dateAttribute", TestObjectV8Internal::dateAttributeAttributeGetterCallback
, TestObjectV8Internal::dateAttributeAttributeSetterCallback, 0, 0, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | 10628 {"dateAttribute", TestObjectV8Internal::dateAttributeAttributeGetterCallback
, TestObjectV8Internal::dateAttributeAttributeSetterCallback, 0, 0, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, |
| 10608 {"stringAttribute", TestObjectV8Internal::stringAttributeAttributeGetterCall
back, TestObjectV8Internal::stringAttributeAttributeSetterCallback, 0, 0, 0, sta
tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8:
:None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}
, | 10629 {"stringAttribute", TestObjectV8Internal::stringAttributeAttributeGetterCall
back, TestObjectV8Internal::stringAttributeAttributeSetterCallback, 0, 0, 0, sta
tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8:
:None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}
, |
| 10609 {"byteStringAttribute", TestObjectV8Internal::byteStringAttributeAttributeGe
tterCallback, TestObjectV8Internal::byteStringAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration:
:OnInstance}, | 10630 {"byteStringAttribute", TestObjectV8Internal::byteStringAttributeAttributeGe
tterCallback, TestObjectV8Internal::byteStringAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration:
:OnInstance}, |
| (...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11059 static_assert(0X20 == TestObject::CONST_VALUE_13, "the value of TestObject_C
ONST_VALUE_13 does not match with implementation"); | 11080 static_assert(0X20 == TestObject::CONST_VALUE_13, "the value of TestObject_C
ONST_VALUE_13 does not match with implementation"); |
| 11060 static_assert(0x1abc == TestObject::CONST_VALUE_14, "the value of TestObject
_CONST_VALUE_14 does not match with implementation"); | 11081 static_assert(0x1abc == TestObject::CONST_VALUE_14, "the value of TestObject
_CONST_VALUE_14 does not match with implementation"); |
| 11061 static_assert(010 == TestObject::CONST_VALUE_15, "the value of TestObject_CO
NST_VALUE_15 does not match with implementation"); | 11082 static_assert(010 == TestObject::CONST_VALUE_15, "the value of TestObject_CO
NST_VALUE_15 does not match with implementation"); |
| 11062 static_assert(-010 == TestObject::CONST_VALUE_16, "the value of TestObject_C
ONST_VALUE_16 does not match with implementation"); | 11083 static_assert(-010 == TestObject::CONST_VALUE_16, "the value of TestObject_C
ONST_VALUE_16 does not match with implementation"); |
| 11063 static_assert(-0x1A == TestObject::CONST_VALUE_16, "the value of TestObject_
CONST_VALUE_16 does not match with implementation"); | 11084 static_assert(-0x1A == TestObject::CONST_VALUE_16, "the value of TestObject_
CONST_VALUE_16 does not match with implementation"); |
| 11064 static_assert(-0X1a == TestObject::CONST_VALUE_17, "the value of TestObject_
CONST_VALUE_17 does not match with implementation"); | 11085 static_assert(-0X1a == TestObject::CONST_VALUE_17, "the value of TestObject_
CONST_VALUE_17 does not match with implementation"); |
| 11065 static_assert(1 == TestObject::DEPRECATED_CONSTANT, "the value of TestObject
_DEPRECATED_CONSTANT does not match with implementation"); | 11086 static_assert(1 == TestObject::DEPRECATED_CONSTANT, "the value of TestObject
_DEPRECATED_CONSTANT does not match with implementation"); |
| 11066 static_assert(1 == TestObject::MEASURED_CONSTANT, "the value of TestObject_M
EASURED_CONSTANT does not match with implementation"); | 11087 static_assert(1 == TestObject::MEASURED_CONSTANT, "the value of TestObject_M
EASURED_CONSTANT does not match with implementation"); |
| 11067 static_assert(1 == TestObject::FEATURE_ENABLED_CONST, "the value of TestObje
ct_FEATURE_ENABLED_CONST does not match with implementation"); | 11088 static_assert(1 == TestObject::FEATURE_ENABLED_CONST, "the value of TestObje
ct_FEATURE_ENABLED_CONST does not match with implementation"); |
| 11068 static_assert(1 == TestObject::CONST_IMPL, "the value of TestObject_CONST_IM
PL does not match with implementation"); | 11089 static_assert(1 == TestObject::CONST_IMPL, "the value of TestObject_CONST_IM
PL does not match with implementation"); |
| 11090 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedI
teratorConfiguration = { v8::Symbol::GetIterator, TestObjectV8Internal::iterator
MethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts }; |
| 11091 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v8::D
ontDelete, symbolKeyedIteratorConfiguration, isolate); |
| 11069 const V8DOMConfiguration::MethodConfiguration staticVoidMethodMethodConfigur
ation = { | 11092 const V8DOMConfiguration::MethodConfiguration staticVoidMethodMethodConfigur
ation = { |
| 11070 "staticVoidMethod", TestObjectV8Internal::staticVoidMethodMethodCallback
, 0, 0, V8DOMConfiguration::ExposedToAllScripts, | 11093 "staticVoidMethod", TestObjectV8Internal::staticVoidMethodMethodCallback
, 0, 0, V8DOMConfiguration::ExposedToAllScripts, |
| 11071 }; | 11094 }; |
| 11072 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signature>
(), v8::None, staticVoidMethodMethodConfiguration, isolate); | 11095 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signature>
(), v8::None, staticVoidMethodMethodConfiguration, isolate); |
| 11073 const V8DOMConfiguration::MethodConfiguration overloadedStaticMethodMethodCo
nfiguration = { | 11096 const V8DOMConfiguration::MethodConfiguration overloadedStaticMethodMethodCo
nfiguration = { |
| 11074 "overloadedStaticMethod", TestObjectV8Internal::overloadedStaticMethodMe
thodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts, | 11097 "overloadedStaticMethod", TestObjectV8Internal::overloadedStaticMethodMe
thodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts, |
| 11075 }; | 11098 }; |
| 11076 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signature>
(), v8::None, overloadedStaticMethodMethodConfiguration, isolate); | 11099 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signature>
(), v8::None, overloadedStaticMethodMethodConfiguration, isolate); |
| 11077 #if ENABLE(CONDITION) | 11100 #if ENABLE(CONDITION) |
| 11078 const V8DOMConfiguration::MethodConfiguration conditionalConditionStaticVoid
MethodMethodConfiguration = { | 11101 const V8DOMConfiguration::MethodConfiguration conditionalConditionStaticVoid
MethodMethodConfiguration = { |
| (...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11644 return false; | 11667 return false; |
| 11645 | 11668 |
| 11646 ScriptState::Scope scope(scriptState); | 11669 ScriptState::Scope scope(scriptState); |
| 11647 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 11670 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
| 11648 | 11671 |
| 11649 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 11672 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)); | 11673 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); |
| 11651 } | 11674 } |
| 11652 | 11675 |
| 11653 } // namespace blink | 11676 } // namespace blink |
| OLD | NEW |