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 "V8TestInterfaceOwnProperties.h" | 8 #include "V8TestInterfaceOwnProperties.h" |
9 | 9 |
10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
11 #include "bindings/core/v8/V8DOMConfiguration.h" | 11 #include "bindings/core/v8/V8DOMConfiguration.h" |
12 #include "bindings/core/v8/V8ObjectConstructor.h" | 12 #include "bindings/core/v8/V8ObjectConstructor.h" |
13 #include "core/dom/ContextFeatures.h" | 13 #include "core/dom/ContextFeatures.h" |
14 #include "core/dom/Document.h" | 14 #include "core/dom/Document.h" |
15 #include "platform/RuntimeEnabledFeatures.h" | 15 #include "platform/RuntimeEnabledFeatures.h" |
16 #include "platform/TraceEvent.h" | 16 #include "platform/TraceEvent.h" |
17 #include "wtf/GetPtr.h" | 17 #include "wtf/GetPtr.h" |
18 #include "wtf/RefPtr.h" | 18 #include "wtf/RefPtr.h" |
19 | 19 |
20 namespace blink { | 20 namespace blink { |
21 | 21 |
| 22 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv
ial |
| 23 // and does not depend on another global objects. |
| 24 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
| 25 #pragma clang diagnostic push |
| 26 #pragma clang diagnostic ignored "-Wglobal-constructors" |
| 27 #endif |
22 const WrapperTypeInfo V8TestInterfaceOwnProperties::wrapperTypeInfo = { gin::kEm
bedderBlink, V8TestInterfaceOwnProperties::domTemplate, V8TestInterfaceOwnProper
ties::refObject, V8TestInterfaceOwnProperties::derefObject, V8TestInterfaceOwnPr
operties::trace, 0, 0, V8TestInterfaceOwnProperties::preparePrototypeObject, V8T
estInterfaceOwnProperties::installConditionallyEnabledProperties, "TestInterface
OwnProperties", &V8TestInterfaceEmpty::wrapperTypeInfo, WrapperTypeInfo::Wrapper
TypeObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::NotInherit
FromEventTarget, WrapperTypeInfo::Independent, WrapperTypeInfo::RefCountedObject
}; | 28 const WrapperTypeInfo V8TestInterfaceOwnProperties::wrapperTypeInfo = { gin::kEm
bedderBlink, V8TestInterfaceOwnProperties::domTemplate, V8TestInterfaceOwnProper
ties::refObject, V8TestInterfaceOwnProperties::derefObject, V8TestInterfaceOwnPr
operties::trace, 0, 0, V8TestInterfaceOwnProperties::preparePrototypeObject, V8T
estInterfaceOwnProperties::installConditionallyEnabledProperties, "TestInterface
OwnProperties", &V8TestInterfaceEmpty::wrapperTypeInfo, WrapperTypeInfo::Wrapper
TypeObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::NotInherit
FromEventTarget, WrapperTypeInfo::Independent, WrapperTypeInfo::RefCountedObject
}; |
| 29 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
| 30 #pragma clang diagnostic pop |
| 31 #endif |
23 | 32 |
24 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
eOwnProperties.h. | 33 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
eOwnProperties.h. |
25 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in | 34 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in |
26 // bindings/core/v8/ScriptWrappable.h. | 35 // bindings/core/v8/ScriptWrappable.h. |
27 const WrapperTypeInfo& TestInterfaceOwnProperties::s_wrapperTypeInfo = V8TestInt
erfaceOwnProperties::wrapperTypeInfo; | 36 const WrapperTypeInfo& TestInterfaceOwnProperties::s_wrapperTypeInfo = V8TestInt
erfaceOwnProperties::wrapperTypeInfo; |
28 | 37 |
29 namespace TestInterfaceOwnPropertiesV8Internal { | 38 namespace TestInterfaceOwnPropertiesV8Internal { |
30 | 39 |
31 static void noExposeJSAccessorAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) | 40 static void noExposeJSAccessorAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) |
32 { | 41 { |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 | 129 |
121 static void doNotExposeJSAccessorAttributeAttributeSetterCallback(v8::Local<v8::
Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 130 static void doNotExposeJSAccessorAttributeAttributeSetterCallback(v8::Local<v8::
Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
122 { | 131 { |
123 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 132 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
124 TestInterfaceOwnPropertiesV8Internal::doNotExposeJSAccessorAttributeAttribut
eSetter(v8Value, info); | 133 TestInterfaceOwnPropertiesV8Internal::doNotExposeJSAccessorAttributeAttribut
eSetter(v8Value, info); |
125 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 134 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
126 } | 135 } |
127 | 136 |
128 } // namespace TestInterfaceOwnPropertiesV8Internal | 137 } // namespace TestInterfaceOwnPropertiesV8Internal |
129 | 138 |
| 139 // Suppress warning: global constructors, because AttributeConfiguration is triv
ial |
| 140 // and does not depend on another global objects. |
| 141 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
| 142 #pragma clang diagnostic push |
| 143 #pragma clang diagnostic ignored "-Wglobal-constructors" |
| 144 #endif |
130 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceOwnProper
tiesAttributes[] = { | 145 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceOwnProper
tiesAttributes[] = { |
131 {"noExposeJSAccessorAttribute", TestInterfaceOwnPropertiesV8Internal::noExpo
seJSAccessorAttributeAttributeGetterCallback, TestInterfaceOwnPropertiesV8Intern
al::noExposeJSAccessorAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8:
:AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DO
MConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOMConfig
uration::CheckHolder}, | 146 {"noExposeJSAccessorAttribute", TestInterfaceOwnPropertiesV8Internal::noExpo
seJSAccessorAttributeAttributeGetterCallback, TestInterfaceOwnPropertiesV8Intern
al::noExposeJSAccessorAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8:
:AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DO
MConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOMConfig
uration::CheckHolder}, |
132 {"doNotExposeJSAccessorAttribute", TestInterfaceOwnPropertiesV8Internal::doN
otExposeJSAccessorAttributeAttributeGetterCallback, TestInterfaceOwnPropertiesV8
Internal::doNotExposeJSAccessorAttributeAttributeSetterCallback, 0, 0, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8
DOMConfiguration::CheckHolder}, | 147 {"doNotExposeJSAccessorAttribute", TestInterfaceOwnPropertiesV8Internal::doN
otExposeJSAccessorAttributeAttributeGetterCallback, TestInterfaceOwnPropertiesV8
Internal::doNotExposeJSAccessorAttributeAttributeSetterCallback, 0, 0, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8
DOMConfiguration::CheckHolder}, |
133 }; | 148 }; |
| 149 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
| 150 #pragma clang diagnostic pop |
| 151 #endif |
134 | 152 |
135 static const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceOwnPropert
iesAccessors[] = { | 153 static const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceOwnPropert
iesAccessors[] = { |
136 {"exposeJSAccessorAttribute", TestInterfaceOwnPropertiesV8Internal::exposeJS
AccessorAttributeAttributeGetterCallback, TestInterfaceOwnPropertiesV8Internal::
exposeJSAccessorAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acces
sControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfi
guration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfigurati
on::CheckHolder}, | 154 {"exposeJSAccessorAttribute", TestInterfaceOwnPropertiesV8Internal::exposeJS
AccessorAttributeAttributeGetterCallback, TestInterfaceOwnPropertiesV8Internal::
exposeJSAccessorAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acces
sControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfi
guration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfigurati
on::CheckHolder}, |
137 }; | 155 }; |
138 | 156 |
139 static void installV8TestInterfaceOwnPropertiesTemplate(v8::Local<v8::FunctionTe
mplate> functionTemplate, v8::Isolate* isolate) | 157 static void installV8TestInterfaceOwnPropertiesTemplate(v8::Local<v8::FunctionTe
mplate> functionTemplate, v8::Isolate* isolate) |
140 { | 158 { |
141 functionTemplate->ReadOnlyPrototype(); | 159 functionTemplate->ReadOnlyPrototype(); |
142 | 160 |
143 v8::Local<v8::Signature> defaultSignature; | 161 v8::Local<v8::Signature> defaultSignature; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 { | 196 { |
179 scriptWrappable->toImpl<TestInterfaceOwnProperties>()->ref(); | 197 scriptWrappable->toImpl<TestInterfaceOwnProperties>()->ref(); |
180 } | 198 } |
181 | 199 |
182 void V8TestInterfaceOwnProperties::derefObject(ScriptWrappable* scriptWrappable) | 200 void V8TestInterfaceOwnProperties::derefObject(ScriptWrappable* scriptWrappable) |
183 { | 201 { |
184 scriptWrappable->toImpl<TestInterfaceOwnProperties>()->deref(); | 202 scriptWrappable->toImpl<TestInterfaceOwnProperties>()->deref(); |
185 } | 203 } |
186 | 204 |
187 } // namespace blink | 205 } // namespace blink |
OLD | NEW |