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 "V8TestInterfaceAccessors.h" | 8 #include "V8TestInterfaceAccessors.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 V8TestInterfaceAccessors::wrapperTypeInfo = { gin::kEmbedd
erBlink, V8TestInterfaceAccessors::domTemplate, V8TestInterfaceAccessors::refObj
ect, V8TestInterfaceAccessors::derefObject, V8TestInterfaceAccessors::trace, 0,
0, V8TestInterfaceAccessors::preparePrototypeObject, V8TestInterfaceAccessors::i
nstallConditionallyEnabledProperties, "TestInterfaceAccessors", &V8TestInterface
Empty::wrapperTypeInfo, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperType
Info::ObjectClassId, WrapperTypeInfo::NotInheritFromEventTarget, WrapperTypeInfo
::Independent, WrapperTypeInfo::RefCountedObject }; | 28 const WrapperTypeInfo V8TestInterfaceAccessors::wrapperTypeInfo = { gin::kEmbedd
erBlink, V8TestInterfaceAccessors::domTemplate, V8TestInterfaceAccessors::refObj
ect, V8TestInterfaceAccessors::derefObject, V8TestInterfaceAccessors::trace, 0,
0, V8TestInterfaceAccessors::preparePrototypeObject, V8TestInterfaceAccessors::i
nstallConditionallyEnabledProperties, "TestInterfaceAccessors", &V8TestInterface
Empty::wrapperTypeInfo, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperType
Info::ObjectClassId, WrapperTypeInfo::NotInheritFromEventTarget, 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
eAccessors.h. | 33 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
eAccessors.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& TestInterfaceAccessors::s_wrapperTypeInfo = V8TestInterfa
ceAccessors::wrapperTypeInfo; | 36 const WrapperTypeInfo& TestInterfaceAccessors::s_wrapperTypeInfo = V8TestInterfa
ceAccessors::wrapperTypeInfo; |
28 | 37 |
29 namespace TestInterfaceAccessorsV8Internal { | 38 namespace TestInterfaceAccessorsV8Internal { |
30 | 39 |
31 static void noExposeJSAccessorAttributeAttributeGetter(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 40 static void noExposeJSAccessorAttributeAttributeGetter(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
32 { | 41 { |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 | 130 |
122 static void doNotExposeJSAccessorAttributeAttributeSetterCallback(v8::Local<v8::
Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 131 static void doNotExposeJSAccessorAttributeAttributeSetterCallback(v8::Local<v8::
Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
123 { | 132 { |
124 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 133 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
125 TestInterfaceAccessorsV8Internal::doNotExposeJSAccessorAttributeAttributeSet
ter(v8Value, info); | 134 TestInterfaceAccessorsV8Internal::doNotExposeJSAccessorAttributeAttributeSet
ter(v8Value, info); |
126 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 135 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
127 } | 136 } |
128 | 137 |
129 } // namespace TestInterfaceAccessorsV8Internal | 138 } // namespace TestInterfaceAccessorsV8Internal |
130 | 139 |
| 140 // Suppress warning: global constructors, because AttributeConfiguration is triv
ial |
| 141 // and does not depend on another global objects. |
| 142 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
| 143 #pragma clang diagnostic push |
| 144 #pragma clang diagnostic ignored "-Wglobal-constructors" |
| 145 #endif |
131 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceAccessors
Attributes[] = { | 146 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceAccessors
Attributes[] = { |
132 {"doNotExposeJSAccessorAttribute", TestInterfaceAccessorsV8Internal::doNotEx
poseJSAccessorAttributeAttributeGetterCallback, TestInterfaceAccessorsV8Internal
::doNotExposeJSAccessorAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8
::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8D
OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOMConfi
guration::CheckHolder}, | 147 {"doNotExposeJSAccessorAttribute", TestInterfaceAccessorsV8Internal::doNotEx
poseJSAccessorAttributeAttributeGetterCallback, TestInterfaceAccessorsV8Internal
::doNotExposeJSAccessorAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8
::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8D
OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOMConfi
guration::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 V8TestInterfaceAccessorsA
ccessors[] = { | 153 static const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceAccessorsA
ccessors[] = { |
136 {"noExposeJSAccessorAttribute", TestInterfaceAccessorsV8Internal::noExposeJS
AccessorAttributeAttributeGetterCallback, TestInterfaceAccessorsV8Internal::noEx
poseJSAccessorAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessC
ontrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigu
ration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration
::CheckHolder}, | 154 {"noExposeJSAccessorAttribute", TestInterfaceAccessorsV8Internal::noExposeJS
AccessorAttributeAttributeGetterCallback, TestInterfaceAccessorsV8Internal::noEx
poseJSAccessorAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessC
ontrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigu
ration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration
::CheckHolder}, |
137 {"exposeJSAccessorAttribute", TestInterfaceAccessorsV8Internal::exposeJSAcce
ssorAttributeAttributeGetterCallback, TestInterfaceAccessorsV8Internal::exposeJS
AccessorAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl
>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration
::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Chec
kHolder}, | 155 {"exposeJSAccessorAttribute", TestInterfaceAccessorsV8Internal::exposeJSAcce
ssorAttributeAttributeGetterCallback, TestInterfaceAccessorsV8Internal::exposeJS
AccessorAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl
>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration
::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Chec
kHolder}, |
138 }; | 156 }; |
139 | 157 |
140 static void installV8TestInterfaceAccessorsTemplate(v8::Local<v8::FunctionTempla
te> functionTemplate, v8::Isolate* isolate) | 158 static void installV8TestInterfaceAccessorsTemplate(v8::Local<v8::FunctionTempla
te> functionTemplate, v8::Isolate* isolate) |
141 { | 159 { |
142 functionTemplate->ReadOnlyPrototype(); | 160 functionTemplate->ReadOnlyPrototype(); |
143 | 161 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 { | 197 { |
180 scriptWrappable->toImpl<TestInterfaceAccessors>()->ref(); | 198 scriptWrappable->toImpl<TestInterfaceAccessors>()->ref(); |
181 } | 199 } |
182 | 200 |
183 void V8TestInterfaceAccessors::derefObject(ScriptWrappable* scriptWrappable) | 201 void V8TestInterfaceAccessors::derefObject(ScriptWrappable* scriptWrappable) |
184 { | 202 { |
185 scriptWrappable->toImpl<TestInterfaceAccessors>()->deref(); | 203 scriptWrappable->toImpl<TestInterfaceAccessors>()->deref(); |
186 } | 204 } |
187 | 205 |
188 } // namespace blink | 206 } // namespace blink |
OLD | NEW |