| 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 "V8TestNode.h" | 8 #include "V8TestNode.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 0, 0, | 204 0, 0, |
| 205 V8TestNodeAccessors, WTF_ARRAY_LENGTH(V8TestNodeAccessors), | 205 V8TestNodeAccessors, WTF_ARRAY_LENGTH(V8TestNodeAccessors), |
| 206 0, 0); | 206 0, 0); |
| 207 functionTemplate->SetCallHandler(V8TestNode::constructorCallback); | 207 functionTemplate->SetCallHandler(V8TestNode::constructorCallback); |
| 208 functionTemplate->SetLength(0); | 208 functionTemplate->SetLength(0); |
| 209 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); | 209 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); |
| 210 ALLOW_UNUSED_LOCAL(instanceTemplate); | 210 ALLOW_UNUSED_LOCAL(instanceTemplate); |
| 211 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); | 211 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); |
| 212 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 212 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
| 213 | 213 |
| 214 instanceTemplate->Set(v8::Symbol::GetToStringTag(isolate), v8AtomicString(is
olate, "TestNode")); |
| 215 |
| 216 prototypeTemplate->Set(v8::Symbol::GetToStringTag(isolate), v8AtomicString(i
solate, "TestNodePrototype")); |
| 217 |
| 214 // Custom toString template | 218 // Custom toString template |
| 215 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 219 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
| 216 } | 220 } |
| 217 | 221 |
| 218 v8::Local<v8::FunctionTemplate> V8TestNode::domTemplate(v8::Isolate* isolate) | 222 v8::Local<v8::FunctionTemplate> V8TestNode::domTemplate(v8::Isolate* isolate) |
| 219 { | 223 { |
| 220 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestNodeTemplate); | 224 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestNodeTemplate); |
| 221 } | 225 } |
| 222 | 226 |
| 223 bool V8TestNode::hasInstance(v8::Local<v8::Value> v8Value, v8::Isolate* isolate) | 227 bool V8TestNode::hasInstance(v8::Local<v8::Value> v8Value, v8::Isolate* isolate) |
| (...skipping 19 matching lines...) Expand all Loading... |
| 243 } | 247 } |
| 244 | 248 |
| 245 void V8TestNode::derefObject(ScriptWrappable* scriptWrappable) | 249 void V8TestNode::derefObject(ScriptWrappable* scriptWrappable) |
| 246 { | 250 { |
| 247 #if !ENABLE(OILPAN) | 251 #if !ENABLE(OILPAN) |
| 248 scriptWrappable->toImpl<TestNode>()->deref(); | 252 scriptWrappable->toImpl<TestNode>()->deref(); |
| 249 #endif | 253 #endif |
| 250 } | 254 } |
| 251 | 255 |
| 252 } // namespace blink | 256 } // namespace blink |
| OLD | NEW |