| 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 "V8TestInterfaceNamedConstructor.h" | 8 #include "V8TestInterfaceNamedConstructor.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 result->Inherit(V8TestInterfaceNamedConstructor::domTemplate(isolate)); | 133 result->Inherit(V8TestInterfaceNamedConstructor::domTemplate(isolate)); |
| 134 data->setDOMTemplate(&domTemplateKey, result); | 134 data->setDOMTemplate(&domTemplateKey, result); |
| 135 return result; | 135 return result; |
| 136 } | 136 } |
| 137 | 137 |
| 138 static void installV8TestInterfaceNamedConstructorTemplate(v8::Handle<v8::Functi
onTemplate> functionTemplate, v8::Isolate* isolate) | 138 static void installV8TestInterfaceNamedConstructorTemplate(v8::Handle<v8::Functi
onTemplate> functionTemplate, v8::Isolate* isolate) |
| 139 { | 139 { |
| 140 functionTemplate->ReadOnlyPrototype(); | 140 functionTemplate->ReadOnlyPrototype(); |
| 141 | 141 |
| 142 v8::Local<v8::Signature> defaultSignature; | 142 v8::Local<v8::Signature> defaultSignature; |
| 143 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl
ate, "TestInterfaceNamedConstructor", v8::Local<v8::FunctionTemplate>(), V8TestI
nterfaceNamedConstructor::internalFieldCount, | 143 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "TestInterfaceNamedConstructor", v8::Local<v8::FunctionTemplate>()
, V8TestInterfaceNamedConstructor::internalFieldCount, |
| 144 V8TestInterfaceNamedConstructorAttributes, WTF_ARRAY_LENGTH(V8TestInterf
aceNamedConstructorAttributes), | 144 V8TestInterfaceNamedConstructorAttributes, WTF_ARRAY_LENGTH(V8TestInterf
aceNamedConstructorAttributes), |
| 145 0, 0, | 145 0, 0, |
| 146 0, 0, | 146 0, 0); |
| 147 isolate); | |
| 148 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); | 147 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); |
| 149 ALLOW_UNUSED_LOCAL(instanceTemplate); | 148 ALLOW_UNUSED_LOCAL(instanceTemplate); |
| 150 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); | 149 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); |
| 151 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 150 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
| 152 | 151 |
| 153 // Custom toString template | 152 // Custom toString template |
| 154 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 153 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
| 155 } | 154 } |
| 156 | 155 |
| 157 v8::Handle<v8::FunctionTemplate> V8TestInterfaceNamedConstructor::domTemplate(v8
::Isolate* isolate) | 156 v8::Handle<v8::FunctionTemplate> V8TestInterfaceNamedConstructor::domTemplate(v8
::Isolate* isolate) |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 scriptWrappable->toImpl<TestInterfaceNamedConstructor>()->deref(); | 188 scriptWrappable->toImpl<TestInterfaceNamedConstructor>()->deref(); |
| 190 } | 189 } |
| 191 | 190 |
| 192 template<> | 191 template<> |
| 193 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNamedConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) | 192 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNamedConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) |
| 194 { | 193 { |
| 195 return toV8(impl, creationContext, isolate); | 194 return toV8(impl, creationContext, isolate); |
| 196 } | 195 } |
| 197 | 196 |
| 198 } // namespace blink | 197 } // namespace blink |
| OLD | NEW |