| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 | 141 |
| 142 static const V8DOMConfiguration::MethodConfiguration V8TestSpecialOperationsMeth
ods[] = { | 142 static const V8DOMConfiguration::MethodConfiguration V8TestSpecialOperationsMeth
ods[] = { |
| 143 {"namedItem", TestSpecialOperationsV8Internal::namedItemMethodCallback, 0, 1
, V8DOMConfiguration::ExposedToAllScripts}, | 143 {"namedItem", TestSpecialOperationsV8Internal::namedItemMethodCallback, 0, 1
, V8DOMConfiguration::ExposedToAllScripts}, |
| 144 }; | 144 }; |
| 145 | 145 |
| 146 static void installV8TestSpecialOperationsTemplate(v8::Handle<v8::FunctionTempla
te> functionTemplate, v8::Isolate* isolate) | 146 static void installV8TestSpecialOperationsTemplate(v8::Handle<v8::FunctionTempla
te> functionTemplate, v8::Isolate* isolate) |
| 147 { | 147 { |
| 148 functionTemplate->ReadOnlyPrototype(); | 148 functionTemplate->ReadOnlyPrototype(); |
| 149 | 149 |
| 150 v8::Local<v8::Signature> defaultSignature; | 150 v8::Local<v8::Signature> defaultSignature; |
| 151 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl
ate, "TestSpecialOperations", v8::Local<v8::FunctionTemplate>(), V8TestSpecialOp
erations::internalFieldCount, | 151 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "TestSpecialOperations", v8::Local<v8::FunctionTemplate>(), V8Test
SpecialOperations::internalFieldCount, |
| 152 0, 0, | 152 0, 0, |
| 153 0, 0, | 153 0, 0, |
| 154 V8TestSpecialOperationsMethods, WTF_ARRAY_LENGTH(V8TestSpecialOperations
Methods), | 154 V8TestSpecialOperationsMethods, WTF_ARRAY_LENGTH(V8TestSpecialOperations
Methods)); |
| 155 isolate); | |
| 156 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); | 155 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); |
| 157 ALLOW_UNUSED_LOCAL(instanceTemplate); | 156 ALLOW_UNUSED_LOCAL(instanceTemplate); |
| 158 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); | 157 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); |
| 159 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 158 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
| 160 functionTemplate->InstanceTemplate()->SetNamedPropertyHandler(TestSpecialOpe
rationsV8Internal::namedPropertyGetterCallback, TestSpecialOperationsV8Internal:
:namedPropertySetterCallback, TestSpecialOperationsV8Internal::namedPropertyQuer
yCallback, 0, TestSpecialOperationsV8Internal::namedPropertyEnumeratorCallback); | 159 functionTemplate->InstanceTemplate()->SetNamedPropertyHandler(TestSpecialOpe
rationsV8Internal::namedPropertyGetterCallback, TestSpecialOperationsV8Internal:
:namedPropertySetterCallback, TestSpecialOperationsV8Internal::namedPropertyQuer
yCallback, 0, TestSpecialOperationsV8Internal::namedPropertyEnumeratorCallback); |
| 161 | 160 |
| 162 // Custom toString template | 161 // Custom toString template |
| 163 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 162 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
| 164 } | 163 } |
| 165 | 164 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 193 scriptWrappable->toImpl<TestSpecialOperations>()->deref(); | 192 scriptWrappable->toImpl<TestSpecialOperations>()->deref(); |
| 194 } | 193 } |
| 195 | 194 |
| 196 template<> | 195 template<> |
| 197 v8::Handle<v8::Value> toV8NoInline(TestSpecialOperations* impl, v8::Handle<v8::O
bject> creationContext, v8::Isolate* isolate) | 196 v8::Handle<v8::Value> toV8NoInline(TestSpecialOperations* impl, v8::Handle<v8::O
bject> creationContext, v8::Isolate* isolate) |
| 198 { | 197 { |
| 199 return toV8(impl, creationContext, isolate); | 198 return toV8(impl, creationContext, isolate); |
| 200 } | 199 } |
| 201 | 200 |
| 202 } // namespace blink | 201 } // namespace blink |
| OLD | NEW |