Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(406)

Side by Side Diff: Source/bindings/tests/results/core/V8TestInterfaceOwnPropertiesDerived.cpp

Issue 1212123003: Componentization: make symbols visible. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "V8TestInterfaceOwnPropertiesDerived.h" 8 #include "V8TestInterfaceOwnPropertiesDerived.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 V8TestInterfaceOwnPropertiesDerived::wrapperTypeInfo = { g in::kEmbedderBlink, V8TestInterfaceOwnPropertiesDerived::domTemplate, V8TestInte rfaceOwnPropertiesDerived::refObject, V8TestInterfaceOwnPropertiesDerived::deref Object, V8TestInterfaceOwnPropertiesDerived::trace, 0, 0, V8TestInterfaceOwnProp ertiesDerived::preparePrototypeObject, V8TestInterfaceOwnPropertiesDerived::inst allConditionallyEnabledProperties, "TestInterfaceOwnPropertiesDerived", &V8TestI nterfaceOwnProperties::wrapperTypeInfo, WrapperTypeInfo::WrapperTypeObjectProtot ype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::NotInheritFromEventTarget, WrapperTypeInfo::Independent, WrapperTypeInfo::RefCountedObject }; 28 const WrapperTypeInfo V8TestInterfaceOwnPropertiesDerived::wrapperTypeInfo = { g in::kEmbedderBlink, V8TestInterfaceOwnPropertiesDerived::domTemplate, V8TestInte rfaceOwnPropertiesDerived::refObject, V8TestInterfaceOwnPropertiesDerived::deref Object, V8TestInterfaceOwnPropertiesDerived::trace, 0, 0, V8TestInterfaceOwnProp ertiesDerived::preparePrototypeObject, V8TestInterfaceOwnPropertiesDerived::inst allConditionallyEnabledProperties, "TestInterfaceOwnPropertiesDerived", &V8TestI nterfaceOwnProperties::wrapperTypeInfo, WrapperTypeInfo::WrapperTypeObjectProtot ype, WrapperTypeInfo::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 eOwnPropertiesDerived.h. 33 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac eOwnPropertiesDerived.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& TestInterfaceOwnPropertiesDerived::s_wrapperTypeInfo = V8 TestInterfaceOwnPropertiesDerived::wrapperTypeInfo; 36 const WrapperTypeInfo& TestInterfaceOwnPropertiesDerived::s_wrapperTypeInfo = V8 TestInterfaceOwnPropertiesDerived::wrapperTypeInfo;
28 37
29 namespace TestInterfaceOwnPropertiesDerivedV8Internal { 38 namespace TestInterfaceOwnPropertiesDerivedV8Internal {
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
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 TestInterfaceOwnPropertiesDerivedV8Internal::doNotExposeJSAccessorAttributeA ttributeSetter(v8Value, info); 133 TestInterfaceOwnPropertiesDerivedV8Internal::doNotExposeJSAccessorAttributeA ttributeSetter(v8Value, info);
125 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 134 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
126 } 135 }
127 136
128 } // namespace TestInterfaceOwnPropertiesDerivedV8Internal 137 } // namespace TestInterfaceOwnPropertiesDerivedV8Internal
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 tiesDerivedAttributes[] = { 145 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceOwnProper tiesDerivedAttributes[] = {
131 {"noExposeJSAccessorAttribute", TestInterfaceOwnPropertiesDerivedV8Internal: :noExposeJSAccessorAttributeAttributeGetterCallback, TestInterfaceOwnPropertiesD erivedV8Internal::noExposeJSAccessorAttributeAttributeSetterCallback, 0, 0, 0, s tatic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v 8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstanc e, V8DOMConfiguration::CheckHolder}, 146 {"noExposeJSAccessorAttribute", TestInterfaceOwnPropertiesDerivedV8Internal: :noExposeJSAccessorAttributeAttributeGetterCallback, TestInterfaceOwnPropertiesD erivedV8Internal::noExposeJSAccessorAttributeAttributeSetterCallback, 0, 0, 0, s tatic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v 8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstanc e, V8DOMConfiguration::CheckHolder},
132 {"doNotExposeJSAccessorAttribute", TestInterfaceOwnPropertiesDerivedV8Intern al::doNotExposeJSAccessorAttributeAttributeGetterCallback, TestInterfaceOwnPrope rtiesDerivedV8Internal::doNotExposeJSAccessorAttributeAttributeSetterCallback, 0 , 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAtt ribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration:: OnInstance, V8DOMConfiguration::CheckHolder}, 147 {"doNotExposeJSAccessorAttribute", TestInterfaceOwnPropertiesDerivedV8Intern al::doNotExposeJSAccessorAttributeAttributeGetterCallback, TestInterfaceOwnPrope rtiesDerivedV8Internal::doNotExposeJSAccessorAttributeAttributeSetterCallback, 0 , 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAtt ribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration:: OnInstance, V8DOMConfiguration::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 iesDerivedAccessors[] = { 153 static const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceOwnPropert iesDerivedAccessors[] = {
136 {"exposeJSAccessorAttribute", TestInterfaceOwnPropertiesDerivedV8Internal::e xposeJSAccessorAttributeAttributeGetterCallback, TestInterfaceOwnPropertiesDeriv edV8Internal::exposeJSAccessorAttributeAttributeSetterCallback, 0, 0, 0, static_ cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::Non e), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8 DOMConfiguration::CheckHolder}, 154 {"exposeJSAccessorAttribute", TestInterfaceOwnPropertiesDerivedV8Internal::e xposeJSAccessorAttributeAttributeGetterCallback, TestInterfaceOwnPropertiesDeriv edV8Internal::exposeJSAccessorAttributeAttributeSetterCallback, 0, 0, 0, static_ cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::Non e), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8 DOMConfiguration::CheckHolder},
137 }; 155 };
138 156
139 static void installV8TestInterfaceOwnPropertiesDerivedTemplate(v8::Local<v8::Fun ctionTemplate> functionTemplate, v8::Isolate* isolate) 157 static void installV8TestInterfaceOwnPropertiesDerivedTemplate(v8::Local<v8::Fun ctionTemplate> 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
178 { 196 {
179 scriptWrappable->toImpl<TestInterfaceOwnPropertiesDerived>()->ref(); 197 scriptWrappable->toImpl<TestInterfaceOwnPropertiesDerived>()->ref();
180 } 198 }
181 199
182 void V8TestInterfaceOwnPropertiesDerived::derefObject(ScriptWrappable* scriptWra ppable) 200 void V8TestInterfaceOwnPropertiesDerived::derefObject(ScriptWrappable* scriptWra ppable)
183 { 201 {
184 scriptWrappable->toImpl<TestInterfaceOwnPropertiesDerived>()->deref(); 202 scriptWrappable->toImpl<TestInterfaceOwnPropertiesDerived>()->deref();
185 } 203 }
186 204
187 } // namespace blink 205 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698