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 "V8TestInterfaceOwnPropertiesDerived.h" | 8 #include "V8TestInterfaceOwnPropertiesDerived.h" |
9 | 9 |
10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 v8::Local<v8::Signature> defaultSignature; | 143 v8::Local<v8::Signature> defaultSignature; |
144 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "TestInterfaceOwnPropertiesDerived", V8TestInterfaceOwnProperties:
:domTemplate(isolate), V8TestInterfaceOwnPropertiesDerived::internalFieldCount, | 144 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "TestInterfaceOwnPropertiesDerived", V8TestInterfaceOwnProperties:
:domTemplate(isolate), V8TestInterfaceOwnPropertiesDerived::internalFieldCount, |
145 V8TestInterfaceOwnPropertiesDerivedAttributes, WTF_ARRAY_LENGTH(V8TestIn
terfaceOwnPropertiesDerivedAttributes), | 145 V8TestInterfaceOwnPropertiesDerivedAttributes, WTF_ARRAY_LENGTH(V8TestIn
terfaceOwnPropertiesDerivedAttributes), |
146 V8TestInterfaceOwnPropertiesDerivedAccessors, WTF_ARRAY_LENGTH(V8TestInt
erfaceOwnPropertiesDerivedAccessors), | 146 V8TestInterfaceOwnPropertiesDerivedAccessors, WTF_ARRAY_LENGTH(V8TestInt
erfaceOwnPropertiesDerivedAccessors), |
147 0, 0); | 147 0, 0); |
148 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); | 148 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); |
149 ALLOW_UNUSED_LOCAL(instanceTemplate); | 149 ALLOW_UNUSED_LOCAL(instanceTemplate); |
150 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); | 150 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); |
151 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 151 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
152 | 152 |
| 153 prototypeTemplate->Set(v8::Symbol::GetToStringTag(isolate), v8AtomicString(i
solate, "TestInterfaceOwnPropertiesDerived")); |
| 154 |
153 // Custom toString template | 155 // Custom toString template |
154 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 156 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
155 } | 157 } |
156 | 158 |
157 v8::Local<v8::FunctionTemplate> V8TestInterfaceOwnPropertiesDerived::domTemplate
(v8::Isolate* isolate) | 159 v8::Local<v8::FunctionTemplate> V8TestInterfaceOwnPropertiesDerived::domTemplate
(v8::Isolate* isolate) |
158 { | 160 { |
159 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestInterfaceOwnPropertiesDerivedTemplate); | 161 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestInterfaceOwnPropertiesDerivedTemplate); |
160 } | 162 } |
161 | 163 |
162 bool V8TestInterfaceOwnPropertiesDerived::hasInstance(v8::Local<v8::Value> v8Val
ue, v8::Isolate* isolate) | 164 bool V8TestInterfaceOwnPropertiesDerived::hasInstance(v8::Local<v8::Value> v8Val
ue, v8::Isolate* isolate) |
(...skipping 15 matching lines...) Expand all Loading... |
178 { | 180 { |
179 scriptWrappable->toImpl<TestInterfaceOwnPropertiesDerived>()->ref(); | 181 scriptWrappable->toImpl<TestInterfaceOwnPropertiesDerived>()->ref(); |
180 } | 182 } |
181 | 183 |
182 void V8TestInterfaceOwnPropertiesDerived::derefObject(ScriptWrappable* scriptWra
ppable) | 184 void V8TestInterfaceOwnPropertiesDerived::derefObject(ScriptWrappable* scriptWra
ppable) |
183 { | 185 { |
184 scriptWrappable->toImpl<TestInterfaceOwnPropertiesDerived>()->deref(); | 186 scriptWrappable->toImpl<TestInterfaceOwnPropertiesDerived>()->deref(); |
185 } | 187 } |
186 | 188 |
187 } // namespace blink | 189 } // namespace blink |
OLD | NEW |