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 |
(...skipping 982 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
993 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTempla
te, functionTemplate, defaultSignature, v8::None, alwaysExposedStaticMethodMetho
dConfiguration); | 993 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTempla
te, functionTemplate, defaultSignature, v8::None, alwaysExposedStaticMethodMetho
dConfiguration); |
994 if (context && (context->isWorkerGlobalScope())) { | 994 if (context && (context->isWorkerGlobalScope())) { |
995 const V8DOMConfiguration::MethodConfiguration workerExposedStaticMethodM
ethodConfiguration = {"workerExposedStaticMethod", TestInterface5ImplementationV
8Internal::workerExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::Ex
posedToAllScripts, V8DOMConfiguration::OnInterface}; | 995 const V8DOMConfiguration::MethodConfiguration workerExposedStaticMethodM
ethodConfiguration = {"workerExposedStaticMethod", TestInterface5ImplementationV
8Internal::workerExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::Ex
posedToAllScripts, V8DOMConfiguration::OnInterface}; |
996 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTe
mplate, functionTemplate, defaultSignature, v8::None, workerExposedStaticMethodM
ethodConfiguration); | 996 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTe
mplate, functionTemplate, defaultSignature, v8::None, workerExposedStaticMethodM
ethodConfiguration); |
997 } | 997 } |
998 if (context && (context->isDocument())) { | 998 if (context && (context->isDocument())) { |
999 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodM
ethodConfiguration = {"windowExposedStaticMethod", TestInterface5ImplementationV
8Internal::windowExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::Ex
posedToAllScripts, V8DOMConfiguration::OnInterface}; | 999 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodM
ethodConfiguration = {"windowExposedStaticMethod", TestInterface5ImplementationV
8Internal::windowExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::Ex
posedToAllScripts, V8DOMConfiguration::OnInterface}; |
1000 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTe
mplate, functionTemplate, defaultSignature, v8::None, windowExposedStaticMethodM
ethodConfiguration); | 1000 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTe
mplate, functionTemplate, defaultSignature, v8::None, windowExposedStaticMethodM
ethodConfiguration); |
1001 } | 1001 } |
1002 const V8DOMConfiguration::MethodConfiguration toStringMethodConfiguration =
{"toString", TestInterface5ImplementationV8Internal::toStringMethodCallback, 0,
0, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}; | 1002 const V8DOMConfiguration::MethodConfiguration toStringMethodConfiguration =
{"toString", TestInterface5ImplementationV8Internal::toStringMethodCallback, 0,
0, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}; |
1003 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTempla
te, functionTemplate, defaultSignature, static_cast<v8::PropertyAttribute>(v8::D
ontDelete | v8::DontEnum), toStringMethodConfiguration); | 1003 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTempla
te, functionTemplate, defaultSignature, static_cast<v8::PropertyAttribute>(v8::D
ontEnum), toStringMethodConfiguration); |
1004 | 1004 |
1005 // Custom toString template | 1005 // Custom toString template |
1006 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 1006 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
1007 } | 1007 } |
1008 | 1008 |
1009 v8::Local<v8::FunctionTemplate> V8TestInterface5::domTemplate(v8::Isolate* isola
te) | 1009 v8::Local<v8::FunctionTemplate> V8TestInterface5::domTemplate(v8::Isolate* isola
te) |
1010 { | 1010 { |
1011 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestInterface5Template); | 1011 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestInterface5Template); |
1012 } | 1012 } |
1013 | 1013 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1068 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); | 1068 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); |
1069 } | 1069 } |
1070 | 1070 |
1071 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) | 1071 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) |
1072 { | 1072 { |
1073 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); | 1073 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); |
1074 } | 1074 } |
1075 | 1075 |
1076 } // namespace blink | 1076 } // namespace blink |
1077 #endif // ENABLE(CONDITION) | 1077 #endif // ENABLE(CONDITION) |
OLD | NEW |