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 #if ENABLE(CONDITION) | 8 #if ENABLE(CONDITION) |
9 #include "V8TestInterface5.h" | 9 #include "V8TestInterface5.h" |
10 | 10 |
11 #include "bindings/core/v8/ExceptionState.h" | 11 #include "bindings/core/v8/ExceptionState.h" |
12 #include "bindings/core/v8/ScriptState.h" | 12 #include "bindings/core/v8/ScriptState.h" |
13 #include "bindings/core/v8/ScriptValue.h" | 13 #include "bindings/core/v8/ScriptValue.h" |
14 #include "bindings/core/v8/V8DOMConfiguration.h" | 14 #include "bindings/core/v8/V8DOMConfiguration.h" |
15 #include "bindings/core/v8/V8Iterator.h" | 15 #include "bindings/core/v8/V8Iterator.h" |
16 #include "bindings/core/v8/V8ObjectConstructor.h" | 16 #include "bindings/core/v8/V8ObjectConstructor.h" |
17 #include "bindings/core/v8/V8TestInterfaceEmpty.h" | 17 #include "bindings/core/v8/V8TestInterfaceEmpty.h" |
18 #include "bindings/modules/v8/UnionTypesModules.h" | 18 #include "bindings/modules/v8/UnionTypesModules.h" |
19 #include "bindings/modules/v8/V8TestInterface5.h" | 19 #include "bindings/modules/v8/V8TestInterface5.h" |
20 #include "core/dom/ContextFeatures.h" | 20 #include "core/dom/ContextFeatures.h" |
21 #include "core/dom/Document.h" | 21 #include "core/dom/Document.h" |
| 22 #include "core/experiments/Experiments.h" |
22 #include "platform/RuntimeEnabledFeatures.h" | 23 #include "platform/RuntimeEnabledFeatures.h" |
23 #include "platform/TraceEvent.h" | 24 #include "platform/TraceEvent.h" |
24 #include "wtf/GetPtr.h" | 25 #include "wtf/GetPtr.h" |
25 #include "wtf/RefPtr.h" | 26 #include "wtf/RefPtr.h" |
26 | 27 |
27 namespace blink { | 28 namespace blink { |
28 | 29 |
29 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv
ial | 30 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv
ial |
30 // and does not depend on another global objects. | 31 // and does not depend on another global objects. |
31 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) | 32 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
(...skipping 921 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
953 {"entries", TestInterface5ImplementationV8Internal::entriesMethodCallback, 0
, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPr
ototype}, | 954 {"entries", TestInterface5ImplementationV8Internal::entriesMethodCallback, 0
, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPr
ototype}, |
954 {"forEach", TestInterface5ImplementationV8Internal::forEachMethodCallback, 0
, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPr
ototype}, | 955 {"forEach", TestInterface5ImplementationV8Internal::forEachMethodCallback, 0
, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPr
ototype}, |
955 {"toString", TestInterface5ImplementationV8Internal::toStringMethodCallback,
0, 0, static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::Exp
osedToAllScripts, V8DOMConfiguration::OnPrototype}, | 956 {"toString", TestInterface5ImplementationV8Internal::toStringMethodCallback,
0, 0, static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::Exp
osedToAllScripts, V8DOMConfiguration::OnPrototype}, |
956 }; | 957 }; |
957 | 958 |
958 static void installV8TestInterface5Template(v8::Local<v8::FunctionTemplate> func
tionTemplate, v8::Isolate* isolate) | 959 static void installV8TestInterface5Template(v8::Local<v8::FunctionTemplate> func
tionTemplate, v8::Isolate* isolate) |
959 { | 960 { |
960 functionTemplate->ReadOnlyPrototype(); | 961 functionTemplate->ReadOnlyPrototype(); |
961 | 962 |
962 v8::Local<v8::Signature> defaultSignature; | 963 v8::Local<v8::Signature> defaultSignature; |
963 if (!RuntimeEnabledFeatures::featureNameEnabled()) | 964 if (!(RuntimeEnabledFeatures::featureNameEnabled())) |
964 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate,
functionTemplate, "TestInterface5", V8TestInterfaceEmpty::domTemplate(isolate),
V8TestInterface5::internalFieldCount, 0, 0, 0, 0, 0, 0); | 965 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate,
functionTemplate, "TestInterface5", V8TestInterfaceEmpty::domTemplate(isolate),
V8TestInterface5::internalFieldCount, 0, 0, 0, 0, 0, 0); |
965 else | 966 else |
966 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate,
functionTemplate, "TestInterface5", V8TestInterfaceEmpty::domTemplate(isolate),
V8TestInterface5::internalFieldCount, | 967 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate,
functionTemplate, "TestInterface5", V8TestInterfaceEmpty::domTemplate(isolate),
V8TestInterface5::internalFieldCount, |
967 V8TestInterface5Attributes, WTF_ARRAY_LENGTH(V8TestInterface5Attribu
tes), | 968 V8TestInterface5Attributes, WTF_ARRAY_LENGTH(V8TestInterface5Attribu
tes), |
968 V8TestInterface5Accessors, WTF_ARRAY_LENGTH(V8TestInterface5Accessor
s), | 969 V8TestInterface5Accessors, WTF_ARRAY_LENGTH(V8TestInterface5Accessor
s), |
969 V8TestInterface5Methods, WTF_ARRAY_LENGTH(V8TestInterface5Methods)); | 970 V8TestInterface5Methods, WTF_ARRAY_LENGTH(V8TestInterface5Methods)); |
970 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); | 971 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); |
971 ALLOW_UNUSED_LOCAL(instanceTemplate); | 972 ALLOW_UNUSED_LOCAL(instanceTemplate); |
972 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); | 973 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); |
973 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 974 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1053 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); | 1054 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); |
1054 } | 1055 } |
1055 | 1056 |
1056 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) | 1057 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) |
1057 { | 1058 { |
1058 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); | 1059 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); |
1059 } | 1060 } |
1060 | 1061 |
1061 } // namespace blink | 1062 } // namespace blink |
1062 #endif // ENABLE(CONDITION) | 1063 #endif // ENABLE(CONDITION) |
OLD | NEW |