| 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 "V8TestSpecialOperations.h" | 8 #include "V8TestSpecialOperations.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 | 162 |
| 163 v8::Local<v8::Signature> defaultSignature; | 163 v8::Local<v8::Signature> defaultSignature; |
| 164 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "TestSpecialOperations", v8::Local<v8::FunctionTemplate>(), V8Test
SpecialOperations::internalFieldCount, | 164 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "TestSpecialOperations", v8::Local<v8::FunctionTemplate>(), V8Test
SpecialOperations::internalFieldCount, |
| 165 0, 0, | 165 0, 0, |
| 166 0, 0, | 166 0, 0, |
| 167 V8TestSpecialOperationsMethods, WTF_ARRAY_LENGTH(V8TestSpecialOperations
Methods)); | 167 V8TestSpecialOperationsMethods, WTF_ARRAY_LENGTH(V8TestSpecialOperations
Methods)); |
| 168 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); | 168 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); |
| 169 ALLOW_UNUSED_LOCAL(instanceTemplate); | 169 ALLOW_UNUSED_LOCAL(instanceTemplate); |
| 170 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); | 170 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); |
| 171 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 171 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
| 172 functionTemplate->InstanceTemplate()->SetHandler(v8::NamedPropertyHandlerCon
figuration(TestSpecialOperationsV8Internal::namedPropertyGetterCallback, TestSpe
cialOperationsV8Internal::namedPropertySetterCallback, TestSpecialOperationsV8In
ternal::namedPropertyQueryCallback, 0, TestSpecialOperationsV8Internal::namedPro
pertyEnumeratorCallback)); | 172 { |
| 173 v8::NamedPropertyHandlerConfiguration config(TestSpecialOperationsV8Inte
rnal::namedPropertyGetterCallback, TestSpecialOperationsV8Internal::namedPropert
ySetterCallback, TestSpecialOperationsV8Internal::namedPropertyQueryCallback, 0,
TestSpecialOperationsV8Internal::namedPropertyEnumeratorCallback); |
| 174 functionTemplate->InstanceTemplate()->SetHandler(config); |
| 175 } |
| 173 | 176 |
| 174 // Custom toString template | 177 // Custom toString template |
| 175 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 178 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
| 176 } | 179 } |
| 177 | 180 |
| 178 v8::Local<v8::FunctionTemplate> V8TestSpecialOperations::domTemplate(v8::Isolate
* isolate) | 181 v8::Local<v8::FunctionTemplate> V8TestSpecialOperations::domTemplate(v8::Isolate
* isolate) |
| 179 { | 182 { |
| 180 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestSpecialOperationsTemplate); | 183 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestSpecialOperationsTemplate); |
| 181 } | 184 } |
| 182 | 185 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 199 { | 202 { |
| 200 scriptWrappable->toImpl<TestSpecialOperations>()->ref(); | 203 scriptWrappable->toImpl<TestSpecialOperations>()->ref(); |
| 201 } | 204 } |
| 202 | 205 |
| 203 void V8TestSpecialOperations::derefObject(ScriptWrappable* scriptWrappable) | 206 void V8TestSpecialOperations::derefObject(ScriptWrappable* scriptWrappable) |
| 204 { | 207 { |
| 205 scriptWrappable->toImpl<TestSpecialOperations>()->deref(); | 208 scriptWrappable->toImpl<TestSpecialOperations>()->deref(); |
| 206 } | 209 } |
| 207 | 210 |
| 208 } // namespace blink | 211 } // namespace blink |
| OLD | NEW |