| 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 "V8TestInterfaceConstructor3.h" | 8 #include "V8TestInterfaceConstructor3.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 0, 0, | 75 0, 0, |
| 76 0, 0, | 76 0, 0, |
| 77 0, 0); | 77 0, 0); |
| 78 functionTemplate->SetCallHandler(V8TestInterfaceConstructor3::constructorCal
lback); | 78 functionTemplate->SetCallHandler(V8TestInterfaceConstructor3::constructorCal
lback); |
| 79 functionTemplate->SetLength(1); | 79 functionTemplate->SetLength(1); |
| 80 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); | 80 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); |
| 81 ALLOW_UNUSED_LOCAL(instanceTemplate); | 81 ALLOW_UNUSED_LOCAL(instanceTemplate); |
| 82 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); | 82 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); |
| 83 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 83 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
| 84 | 84 |
| 85 instanceTemplate->Set(v8::Symbol::GetToStringTag(isolate), v8AtomicString(is
olate, "TestInterfaceConstructor3")); |
| 86 |
| 87 prototypeTemplate->Set(v8::Symbol::GetToStringTag(isolate), v8AtomicString(i
solate, "TestInterfaceConstructor3Prototype")); |
| 88 |
| 85 // Custom toString template | 89 // Custom toString template |
| 86 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 90 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
| 87 } | 91 } |
| 88 | 92 |
| 89 v8::Local<v8::FunctionTemplate> V8TestInterfaceConstructor3::domTemplate(v8::Iso
late* isolate) | 93 v8::Local<v8::FunctionTemplate> V8TestInterfaceConstructor3::domTemplate(v8::Iso
late* isolate) |
| 90 { | 94 { |
| 91 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestInterfaceConstructor3Template); | 95 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestInterfaceConstructor3Template); |
| 92 } | 96 } |
| 93 | 97 |
| 94 bool V8TestInterfaceConstructor3::hasInstance(v8::Local<v8::Value> v8Value, v8::
Isolate* isolate) | 98 bool V8TestInterfaceConstructor3::hasInstance(v8::Local<v8::Value> v8Value, v8::
Isolate* isolate) |
| (...skipping 15 matching lines...) Expand all Loading... |
| 110 { | 114 { |
| 111 scriptWrappable->toImpl<TestInterfaceConstructor3>()->ref(); | 115 scriptWrappable->toImpl<TestInterfaceConstructor3>()->ref(); |
| 112 } | 116 } |
| 113 | 117 |
| 114 void V8TestInterfaceConstructor3::derefObject(ScriptWrappable* scriptWrappable) | 118 void V8TestInterfaceConstructor3::derefObject(ScriptWrappable* scriptWrappable) |
| 115 { | 119 { |
| 116 scriptWrappable->toImpl<TestInterfaceConstructor3>()->deref(); | 120 scriptWrappable->toImpl<TestInterfaceConstructor3>()->deref(); |
| 117 } | 121 } |
| 118 | 122 |
| 119 } // namespace blink | 123 } // namespace blink |
| OLD | NEW |