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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 #include "core/inspector/ConsoleMessage.h" | 69 #include "core/inspector/ConsoleMessage.h" |
70 #include "core/inspector/ScriptArguments.h" | 70 #include "core/inspector/ScriptArguments.h" |
71 #include "platform/RuntimeEnabledFeatures.h" | 71 #include "platform/RuntimeEnabledFeatures.h" |
72 #include "platform/ScriptForbiddenScope.h" | 72 #include "platform/ScriptForbiddenScope.h" |
73 #include "platform/TraceEvent.h" | 73 #include "platform/TraceEvent.h" |
74 #include "wtf/GetPtr.h" | 74 #include "wtf/GetPtr.h" |
75 #include "wtf/RefPtr.h" | 75 #include "wtf/RefPtr.h" |
76 | 76 |
77 namespace blink { | 77 namespace blink { |
78 | 78 |
| 79 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv
ial |
| 80 // and does not depend on another global objects. |
| 81 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
| 82 #pragma clang diagnostic push |
| 83 #pragma clang diagnostic ignored "-Wglobal-constructors" |
| 84 #endif |
79 const WrapperTypeInfo V8TestObject::wrapperTypeInfo = { gin::kEmbedderBlink, V8T
estObject::domTemplate, V8TestObject::refObject, V8TestObject::derefObject, V8Te
stObject::trace, 0, 0, V8TestObject::preparePrototypeObject, V8TestObject::insta
llConditionallyEnabledProperties, "TestObject", 0, WrapperTypeInfo::WrapperTypeO
bjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::NotInheritFromE
ventTarget, WrapperTypeInfo::Independent, WrapperTypeInfo::RefCountedObject }; | 85 const WrapperTypeInfo V8TestObject::wrapperTypeInfo = { gin::kEmbedderBlink, V8T
estObject::domTemplate, V8TestObject::refObject, V8TestObject::derefObject, V8Te
stObject::trace, 0, 0, V8TestObject::preparePrototypeObject, V8TestObject::insta
llConditionallyEnabledProperties, "TestObject", 0, WrapperTypeInfo::WrapperTypeO
bjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::NotInheritFromE
ventTarget, WrapperTypeInfo::Independent, WrapperTypeInfo::RefCountedObject }; |
| 86 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
| 87 #pragma clang diagnostic pop |
| 88 #endif |
80 | 89 |
81 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestObject.h
. | 90 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestObject.h
. |
82 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in | 91 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in |
83 // bindings/core/v8/ScriptWrappable.h. | 92 // bindings/core/v8/ScriptWrappable.h. |
84 const WrapperTypeInfo& TestObject::s_wrapperTypeInfo = V8TestObject::wrapperType
Info; | 93 const WrapperTypeInfo& TestObject::s_wrapperTypeInfo = V8TestObject::wrapperType
Info; |
85 | 94 |
86 namespace TestObjectV8Internal { | 95 namespace TestObjectV8Internal { |
87 | 96 |
88 static void DEPRECATED_CONSTANTConstantGetterCallback(v8::Local<v8::Name>, const
v8::PropertyCallbackInfo<v8::Value>& info) | 97 static void DEPRECATED_CONSTANTConstantGetterCallback(v8::Local<v8::Name>, const
v8::PropertyCallbackInfo<v8::Value>& info) |
89 { | 98 { |
(...skipping 12352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12442 | 12451 |
12443 static void namedPropertyEnumeratorCallback(const v8::PropertyCallbackInfo<v8::A
rray>& info) | 12452 static void namedPropertyEnumeratorCallback(const v8::PropertyCallbackInfo<v8::A
rray>& info) |
12444 { | 12453 { |
12445 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty"); | 12454 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty"); |
12446 TestObjectV8Internal::namedPropertyEnumerator(info); | 12455 TestObjectV8Internal::namedPropertyEnumerator(info); |
12447 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 12456 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
12448 } | 12457 } |
12449 | 12458 |
12450 } // namespace TestObjectV8Internal | 12459 } // namespace TestObjectV8Internal |
12451 | 12460 |
| 12461 // Suppress warning: global constructors, because AttributeConfiguration is triv
ial |
| 12462 // and does not depend on another global objects. |
| 12463 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
| 12464 #pragma clang diagnostic push |
| 12465 #pragma clang diagnostic ignored "-Wglobal-constructors" |
| 12466 #endif |
12452 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectAttributes[]
= { | 12467 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectAttributes[]
= { |
12453 {"testInterfaceEmptyConstructorAttribute", v8ConstructorAttributeGetter, Tes
tObjectV8Internal::testInterfaceEmptyConstructorAttributeAttributeSetterCallback
, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestInterfaceEmpty::wrapperTypeInfo), st
atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8
::DontEnum), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInst
ance, V8DOMConfiguration::CheckHolder}, | 12468 {"testInterfaceEmptyConstructorAttribute", v8ConstructorAttributeGetter, Tes
tObjectV8Internal::testInterfaceEmptyConstructorAttributeAttributeSetterCallback
, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestInterfaceEmpty::wrapperTypeInfo), st
atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8
::DontEnum), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInst
ance, V8DOMConfiguration::CheckHolder}, |
12454 {"testInterfaceEmptyConstructorAttribute", TestObjectV8Internal::testInterfa
ceEmptyConstructorAttributeConstructorGetterCallback, TestObjectV8Internal::test
InterfaceEmptyConstructorAttributeAttributeSetterCallback, 0, 0, const_cast<Wrap
perTypeInfo*>(&V8TestInterfaceEmpty::wrapperTypeInfo), static_cast<v8::AccessCon
trol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfi
guration::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOMConfiguratio
n::CheckHolder}, | 12469 {"testInterfaceEmptyConstructorAttribute", TestObjectV8Internal::testInterfa
ceEmptyConstructorAttributeConstructorGetterCallback, TestObjectV8Internal::test
InterfaceEmptyConstructorAttributeAttributeSetterCallback, 0, 0, const_cast<Wrap
perTypeInfo*>(&V8TestInterfaceEmpty::wrapperTypeInfo), static_cast<v8::AccessCon
trol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfi
guration::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOMConfiguratio
n::CheckHolder}, |
12455 {"measureAsFeatureNameTestInterfaceEmptyConstructorAttribute", TestObjectV8I
nternal::measureAsFeatureNameTestInterfaceEmptyConstructorAttributeConstructorGe
tterCallback, TestObjectV8Internal::measureAsFeatureNameTestInterfaceEmptyConstr
uctorAttributeAttributeSetterCallback, 0, 0, const_cast<WrapperTypeInfo*>(&V8Tes
tInterfaceEmpty::wrapperTypeInfo), static_cast<v8::AccessControl>(v8::DEFAULT),
static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::ExposedToA
llScripts, V8DOMConfiguration::OnInstance, V8DOMConfiguration::CheckHolder}, | 12470 {"measureAsFeatureNameTestInterfaceEmptyConstructorAttribute", TestObjectV8I
nternal::measureAsFeatureNameTestInterfaceEmptyConstructorAttributeConstructorGe
tterCallback, TestObjectV8Internal::measureAsFeatureNameTestInterfaceEmptyConstr
uctorAttributeAttributeSetterCallback, 0, 0, const_cast<WrapperTypeInfo*>(&V8Tes
tInterfaceEmpty::wrapperTypeInfo), static_cast<v8::AccessControl>(v8::DEFAULT),
static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::ExposedToA
llScripts, V8DOMConfiguration::OnInstance, V8DOMConfiguration::CheckHolder}, |
12456 {"unforgeableLongAttribute", TestObjectV8Internal::unforgeableLongAttributeA
ttributeGetterCallback, TestObjectV8Internal::unforgeableLongAttributeAttributeS
etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::PROHIBITS_OVERWRITING
), static_cast<v8::PropertyAttribute>(v8::DontDelete), V8DOMConfiguration::Expos
edToAllScripts, V8DOMConfiguration::OnInstance, V8DOMConfiguration::CheckHolder}
, | 12471 {"unforgeableLongAttribute", TestObjectV8Internal::unforgeableLongAttributeA
ttributeGetterCallback, TestObjectV8Internal::unforgeableLongAttributeAttributeS
etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::PROHIBITS_OVERWRITING
), static_cast<v8::PropertyAttribute>(v8::DontDelete), V8DOMConfiguration::Expos
edToAllScripts, V8DOMConfiguration::OnInstance, V8DOMConfiguration::CheckHolder}
, |
12457 }; | 12472 }; |
| 12473 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
| 12474 #pragma clang diagnostic pop |
| 12475 #endif |
12458 | 12476 |
12459 static const V8DOMConfiguration::AccessorConfiguration V8TestObjectAccessors[] =
{ | 12477 static const V8DOMConfiguration::AccessorConfiguration V8TestObjectAccessors[] =
{ |
12460 {"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::OnPrototype, V8DOMConfiguration::CheckHolder}, | 12478 {"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::OnPrototype, V8DOMConfiguration::CheckHolder}, |
12461 {"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::OnPrototype, V8DOMConfiguration::CheckHolder}, | 12479 {"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::OnPrototype, V8DOMConfiguration::CheckHolder}, |
12462 {"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::OnPrototype, V8DOMConfiguratio
n::CheckHolder}, | 12480 {"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::OnPrototype, V8DOMConfiguratio
n::CheckHolder}, |
12463 {"readonlyLongAttribute", TestObjectV8Internal::readonlyLongAttributeAttribu
teGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati
c_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts
, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 12481 {"readonlyLongAttribute", TestObjectV8Internal::readonlyLongAttributeAttribu
teGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati
c_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts
, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
12464 {"dateAttribute", TestObjectV8Internal::dateAttributeAttributeGetterCallback
, TestObjectV8Internal::dateAttributeAttributeSetterCallback, 0, 0, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DO
MConfiguration::CheckHolder}, | 12482 {"dateAttribute", TestObjectV8Internal::dateAttributeAttributeGetterCallback
, TestObjectV8Internal::dateAttributeAttributeSetterCallback, 0, 0, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DO
MConfiguration::CheckHolder}, |
12465 {"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::OnPrototype
, V8DOMConfiguration::CheckHolder}, | 12483 {"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::OnPrototype
, V8DOMConfiguration::CheckHolder}, |
12466 {"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:
:OnPrototype, V8DOMConfiguration::CheckHolder}, | 12484 {"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:
:OnPrototype, V8DOMConfiguration::CheckHolder}, |
12467 {"usvStringAttribute", TestObjectV8Internal::usvStringAttributeAttributeGett
erCallback, TestObjectV8Internal::usvStringAttributeAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri
bute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::On
Prototype, V8DOMConfiguration::CheckHolder}, | 12485 {"usvStringAttribute", TestObjectV8Internal::usvStringAttributeAttributeGett
erCallback, TestObjectV8Internal::usvStringAttributeAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri
bute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::On
Prototype, V8DOMConfiguration::CheckHolder}, |
(...skipping 1129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13597 ScriptState::Scope scope(scriptState); | 13615 ScriptState::Scope scope(scriptState); |
13598 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 13616 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
13599 if (holder.IsEmpty()) | 13617 if (holder.IsEmpty()) |
13600 return false; | 13618 return false; |
13601 | 13619 |
13602 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 13620 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; |
13603 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); | 13621 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); |
13604 } | 13622 } |
13605 | 13623 |
13606 } // namespace blink | 13624 } // namespace blink |
OLD | NEW |