| 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 "V8TestInterfaceOwnProperties.h" | 8 #include "V8TestInterfaceOwnProperties.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, "TestInterfaceOwnProperties", V8TestInterfaceEmpty::domTemplate(is
olate), V8TestInterfaceOwnProperties::internalFieldCount, | 144 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "TestInterfaceOwnProperties", V8TestInterfaceEmpty::domTemplate(is
olate), V8TestInterfaceOwnProperties::internalFieldCount, |
| 145 V8TestInterfaceOwnPropertiesAttributes, WTF_ARRAY_LENGTH(V8TestInterface
OwnPropertiesAttributes), | 145 V8TestInterfaceOwnPropertiesAttributes, WTF_ARRAY_LENGTH(V8TestInterface
OwnPropertiesAttributes), |
| 146 V8TestInterfaceOwnPropertiesAccessors, WTF_ARRAY_LENGTH(V8TestInterfaceO
wnPropertiesAccessors), | 146 V8TestInterfaceOwnPropertiesAccessors, WTF_ARRAY_LENGTH(V8TestInterfaceO
wnPropertiesAccessors), |
| 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, "TestInterfaceOwnProperties")); |
| 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> V8TestInterfaceOwnProperties::domTemplate(v8::Is
olate* isolate) | 159 v8::Local<v8::FunctionTemplate> V8TestInterfaceOwnProperties::domTemplate(v8::Is
olate* isolate) |
| 158 { | 160 { |
| 159 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestInterfaceOwnPropertiesTemplate); | 161 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestInterfaceOwnPropertiesTemplate); |
| 160 } | 162 } |
| 161 | 163 |
| 162 bool V8TestInterfaceOwnProperties::hasInstance(v8::Local<v8::Value> v8Value, v8:
:Isolate* isolate) | 164 bool V8TestInterfaceOwnProperties::hasInstance(v8::Local<v8::Value> v8Value, v8:
:Isolate* isolate) |
| (...skipping 15 matching lines...) Expand all Loading... |
| 178 { | 180 { |
| 179 scriptWrappable->toImpl<TestInterfaceOwnProperties>()->ref(); | 181 scriptWrappable->toImpl<TestInterfaceOwnProperties>()->ref(); |
| 180 } | 182 } |
| 181 | 183 |
| 182 void V8TestInterfaceOwnProperties::derefObject(ScriptWrappable* scriptWrappable) | 184 void V8TestInterfaceOwnProperties::derefObject(ScriptWrappable* scriptWrappable) |
| 183 { | 185 { |
| 184 scriptWrappable->toImpl<TestInterfaceOwnProperties>()->deref(); | 186 scriptWrappable->toImpl<TestInterfaceOwnProperties>()->deref(); |
| 185 } | 187 } |
| 186 | 188 |
| 187 } // namespace blink | 189 } // namespace blink |
| OLD | NEW |