| 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 984 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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
ontDelete | v8::DontEnum), toStringMethodConfiguration); |
| 1004 | 1004 |
| 1005 prototypeTemplate->Set(v8::Symbol::GetToStringTag(isolate), v8AtomicString(i
solate, "TestInterface5")); |
| 1006 |
| 1005 // Custom toString template | 1007 // Custom toString template |
| 1006 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 1008 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
| 1007 } | 1009 } |
| 1008 | 1010 |
| 1009 v8::Local<v8::FunctionTemplate> V8TestInterface5::domTemplate(v8::Isolate* isola
te) | 1011 v8::Local<v8::FunctionTemplate> V8TestInterface5::domTemplate(v8::Isolate* isola
te) |
| 1010 { | 1012 { |
| 1011 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestInterface5Template); | 1013 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestInterface5Template); |
| 1012 } | 1014 } |
| 1013 | 1015 |
| 1014 bool V8TestInterface5::hasInstance(v8::Local<v8::Value> v8Value, v8::Isolate* is
olate) | 1016 bool V8TestInterface5::hasInstance(v8::Local<v8::Value> v8Value, v8::Isolate* is
olate) |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1068 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); | 1070 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); |
| 1069 } | 1071 } |
| 1070 | 1072 |
| 1071 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) | 1073 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) |
| 1072 { | 1074 { |
| 1073 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); | 1075 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); |
| 1074 } | 1076 } |
| 1075 | 1077 |
| 1076 } // namespace blink | 1078 } // namespace blink |
| 1077 #endif // ENABLE(CONDITION) | 1079 #endif // ENABLE(CONDITION) |
| OLD | NEW |