| 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 "V8TestInterfaceNamedConstructor2.h" | 8 #include "V8TestInterfaceNamedConstructor2.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 result->Inherit(V8TestInterfaceNamedConstructor2::domTemplate(isolate)); | 75 result->Inherit(V8TestInterfaceNamedConstructor2::domTemplate(isolate)); |
| 76 data->setDOMTemplate(&domTemplateKey, result); | 76 data->setDOMTemplate(&domTemplateKey, result); |
| 77 return result; | 77 return result; |
| 78 } | 78 } |
| 79 | 79 |
| 80 static void installV8TestInterfaceNamedConstructor2Template(v8::Handle<v8::Funct
ionTemplate> functionTemplate, v8::Isolate* isolate) | 80 static void installV8TestInterfaceNamedConstructor2Template(v8::Handle<v8::Funct
ionTemplate> functionTemplate, v8::Isolate* isolate) |
| 81 { | 81 { |
| 82 functionTemplate->ReadOnlyPrototype(); | 82 functionTemplate->ReadOnlyPrototype(); |
| 83 | 83 |
| 84 v8::Local<v8::Signature> defaultSignature; | 84 v8::Local<v8::Signature> defaultSignature; |
| 85 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl
ate, "TestInterfaceNamedConstructor2", v8::Local<v8::FunctionTemplate>(), V8Test
InterfaceNamedConstructor2::internalFieldCount, | 85 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "TestInterfaceNamedConstructor2", v8::Local<v8::FunctionTemplate>(
), V8TestInterfaceNamedConstructor2::internalFieldCount, |
| 86 0, 0, | 86 0, 0, |
| 87 0, 0, | 87 0, 0, |
| 88 0, 0, | 88 0, 0); |
| 89 isolate); | |
| 90 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); | 89 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); |
| 91 ALLOW_UNUSED_LOCAL(instanceTemplate); | 90 ALLOW_UNUSED_LOCAL(instanceTemplate); |
| 92 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); | 91 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); |
| 93 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 92 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
| 94 | 93 |
| 95 // Custom toString template | 94 // Custom toString template |
| 96 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 95 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
| 97 } | 96 } |
| 98 | 97 |
| 99 v8::Handle<v8::FunctionTemplate> V8TestInterfaceNamedConstructor2::domTemplate(v
8::Isolate* isolate) | 98 v8::Handle<v8::FunctionTemplate> V8TestInterfaceNamedConstructor2::domTemplate(v
8::Isolate* isolate) |
| (...skipping 26 matching lines...) Expand all Loading... |
| 126 scriptWrappable->toImpl<TestInterfaceNamedConstructor2>()->deref(); | 125 scriptWrappable->toImpl<TestInterfaceNamedConstructor2>()->deref(); |
| 127 } | 126 } |
| 128 | 127 |
| 129 template<> | 128 template<> |
| 130 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNamedConstructor2* impl, v8::Han
dle<v8::Object> creationContext, v8::Isolate* isolate) | 129 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNamedConstructor2* impl, v8::Han
dle<v8::Object> creationContext, v8::Isolate* isolate) |
| 131 { | 130 { |
| 132 return toV8(impl, creationContext, isolate); | 131 return toV8(impl, creationContext, isolate); |
| 133 } | 132 } |
| 134 | 133 |
| 135 } // namespace blink | 134 } // namespace blink |
| OLD | NEW |