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 "V8TestInterfaceConstructor4.h" | 8 #include "V8TestInterfaceConstructor4.h" |
9 | 9 |
10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 0, 0, | 107 0, 0, |
108 0, 0, | 108 0, 0, |
109 0, 0); | 109 0, 0); |
110 functionTemplate->SetCallHandler(V8TestInterfaceConstructor4::constructorCal
lback); | 110 functionTemplate->SetCallHandler(V8TestInterfaceConstructor4::constructorCal
lback); |
111 functionTemplate->SetLength(1); | 111 functionTemplate->SetLength(1); |
112 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); | 112 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); |
113 ALLOW_UNUSED_LOCAL(instanceTemplate); | 113 ALLOW_UNUSED_LOCAL(instanceTemplate); |
114 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); | 114 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); |
115 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 115 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
116 | 116 |
| 117 prototypeTemplate->Set(v8::Symbol::GetToStringTag(isolate), v8AtomicString(i
solate, "TestInterfaceConstructor4")); |
| 118 |
117 // Custom toString template | 119 // Custom toString template |
118 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 120 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
119 } | 121 } |
120 | 122 |
121 v8::Local<v8::FunctionTemplate> V8TestInterfaceConstructor4::domTemplate(v8::Iso
late* isolate) | 123 v8::Local<v8::FunctionTemplate> V8TestInterfaceConstructor4::domTemplate(v8::Iso
late* isolate) |
122 { | 124 { |
123 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestInterfaceConstructor4Template); | 125 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestInterfaceConstructor4Template); |
124 } | 126 } |
125 | 127 |
126 bool V8TestInterfaceConstructor4::hasInstance(v8::Local<v8::Value> v8Value, v8::
Isolate* isolate) | 128 bool V8TestInterfaceConstructor4::hasInstance(v8::Local<v8::Value> v8Value, v8::
Isolate* isolate) |
(...skipping 15 matching lines...) Expand all Loading... |
142 { | 144 { |
143 scriptWrappable->toImpl<TestInterfaceConstructor4>()->ref(); | 145 scriptWrappable->toImpl<TestInterfaceConstructor4>()->ref(); |
144 } | 146 } |
145 | 147 |
146 void V8TestInterfaceConstructor4::derefObject(ScriptWrappable* scriptWrappable) | 148 void V8TestInterfaceConstructor4::derefObject(ScriptWrappable* scriptWrappable) |
147 { | 149 { |
148 scriptWrappable->toImpl<TestInterfaceConstructor4>()->deref(); | 150 scriptWrappable->toImpl<TestInterfaceConstructor4>()->deref(); |
149 } | 151 } |
150 | 152 |
151 } // namespace blink | 153 } // namespace blink |
OLD | NEW |