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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "BuildDOMTemplate"); | 128 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "BuildDOMTemplate"); |
129 result = v8::FunctionTemplate::New(isolate, V8TestInterfaceNamedConstructorC
onstructorCallback); | 129 result = v8::FunctionTemplate::New(isolate, V8TestInterfaceNamedConstructorC
onstructorCallback); |
130 v8::Local<v8::ObjectTemplate> instanceTemplate = result->InstanceTemplate(); | 130 v8::Local<v8::ObjectTemplate> instanceTemplate = result->InstanceTemplate(); |
131 instanceTemplate->SetInternalFieldCount(V8TestInterfaceNamedConstructor::int
ernalFieldCount); | 131 instanceTemplate->SetInternalFieldCount(V8TestInterfaceNamedConstructor::int
ernalFieldCount); |
132 result->SetClassName(v8AtomicString(isolate, "TestInterfaceNamedConstructor"
)); | 132 result->SetClassName(v8AtomicString(isolate, "TestInterfaceNamedConstructor"
)); |
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::Local<v8::Functio
nTemplate> 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(isolate, func
tionTemplate, "TestInterfaceNamedConstructor", v8::Local<v8::FunctionTemplate>()
, V8TestInterfaceNamedConstructor::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 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); | 147 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); |
148 ALLOW_UNUSED_LOCAL(instanceTemplate); | 148 ALLOW_UNUSED_LOCAL(instanceTemplate); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 { | 182 { |
183 scriptWrappable->toImpl<TestInterfaceNamedConstructor>()->ref(); | 183 scriptWrappable->toImpl<TestInterfaceNamedConstructor>()->ref(); |
184 } | 184 } |
185 | 185 |
186 void V8TestInterfaceNamedConstructor::derefObject(ScriptWrappable* scriptWrappab
le) | 186 void V8TestInterfaceNamedConstructor::derefObject(ScriptWrappable* scriptWrappab
le) |
187 { | 187 { |
188 scriptWrappable->toImpl<TestInterfaceNamedConstructor>()->deref(); | 188 scriptWrappable->toImpl<TestInterfaceNamedConstructor>()->deref(); |
189 } | 189 } |
190 | 190 |
191 } // namespace blink | 191 } // namespace blink |
OLD | NEW |