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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 v8::Local<v8::Signature> defaultSignature; | 171 v8::Local<v8::Signature> defaultSignature; |
172 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "TestSpecialOperations", v8::Local<v8::FunctionTemplate>(), V8Test
SpecialOperations::internalFieldCount, | 172 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "TestSpecialOperations", v8::Local<v8::FunctionTemplate>(), V8Test
SpecialOperations::internalFieldCount, |
173 0, 0, | 173 0, 0, |
174 0, 0, | 174 0, 0, |
175 V8TestSpecialOperationsMethods, WTF_ARRAY_LENGTH(V8TestSpecialOperations
Methods)); | 175 V8TestSpecialOperationsMethods, WTF_ARRAY_LENGTH(V8TestSpecialOperations
Methods)); |
176 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); | 176 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); |
177 ALLOW_UNUSED_LOCAL(instanceTemplate); | 177 ALLOW_UNUSED_LOCAL(instanceTemplate); |
178 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); | 178 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); |
179 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 179 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
180 { | 180 { |
181 v8::NamedPropertyHandlerConfiguration config(TestSpecialOperationsV8Inte
rnal::namedPropertyGetterCallback, TestSpecialOperationsV8Internal::namedPropert
ySetterCallback, TestSpecialOperationsV8Internal::namedPropertyQueryCallback, 0,
TestSpecialOperationsV8Internal::namedPropertyEnumeratorCallback); | 181 int flags = static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStr
ings); |
182 config.flags = static_cast<v8::PropertyHandlerFlags>(static_cast<int>(co
nfig.flags) | static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStrings))
; | 182 v8::NamedPropertyHandlerConfiguration config(TestSpecialOperationsV8Inte
rnal::namedPropertyGetterCallback, TestSpecialOperationsV8Internal::namedPropert
ySetterCallback, TestSpecialOperationsV8Internal::namedPropertyQueryCallback, 0,
TestSpecialOperationsV8Internal::namedPropertyEnumeratorCallback, v8::Handle<v8
::Value>(), static_cast<v8::PropertyHandlerFlags>(flags)); |
183 functionTemplate->InstanceTemplate()->SetHandler(config); | 183 functionTemplate->InstanceTemplate()->SetHandler(config); |
184 } | 184 } |
185 | 185 |
186 // Custom toString template | 186 // Custom toString template |
187 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 187 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
188 } | 188 } |
189 | 189 |
190 v8::Local<v8::FunctionTemplate> V8TestSpecialOperations::domTemplate(v8::Isolate
* isolate) | 190 v8::Local<v8::FunctionTemplate> V8TestSpecialOperations::domTemplate(v8::Isolate
* isolate) |
191 { | 191 { |
192 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestSpecialOperationsTemplate); | 192 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestSpecialOperationsTemplate); |
(...skipping 18 matching lines...) Expand all Loading... |
211 { | 211 { |
212 scriptWrappable->toImpl<TestSpecialOperations>()->ref(); | 212 scriptWrappable->toImpl<TestSpecialOperations>()->ref(); |
213 } | 213 } |
214 | 214 |
215 void V8TestSpecialOperations::derefObject(ScriptWrappable* scriptWrappable) | 215 void V8TestSpecialOperations::derefObject(ScriptWrappable* scriptWrappable) |
216 { | 216 { |
217 scriptWrappable->toImpl<TestSpecialOperations>()->deref(); | 217 scriptWrappable->toImpl<TestSpecialOperations>()->deref(); |
218 } | 218 } |
219 | 219 |
220 } // namespace blink | 220 } // namespace blink |
OLD | NEW |