| 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 "V8TestInterface2.h" | 8 #include "V8TestInterface2.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
| (...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 v8::Local<v8::Signature> defaultSignature; | 478 v8::Local<v8::Signature> defaultSignature; |
| 479 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl
ate, "TestInterface2", v8::Local<v8::FunctionTemplate>(), V8TestInterface2::inte
rnalFieldCount, | 479 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl
ate, "TestInterface2", v8::Local<v8::FunctionTemplate>(), V8TestInterface2::inte
rnalFieldCount, |
| 480 0, 0, | 480 0, 0, |
| 481 0, 0, | 481 0, 0, |
| 482 V8TestInterface2Methods, WTF_ARRAY_LENGTH(V8TestInterface2Methods), | 482 V8TestInterface2Methods, WTF_ARRAY_LENGTH(V8TestInterface2Methods), |
| 483 isolate); | 483 isolate); |
| 484 functionTemplate->SetCallHandler(V8TestInterface2::constructorCallback); | 484 functionTemplate->SetCallHandler(V8TestInterface2::constructorCallback); |
| 485 functionTemplate->SetLength(0); | 485 functionTemplate->SetLength(0); |
| 486 v8::Local<v8::ObjectTemplate> instanceTemplate ALLOW_UNUSED = functionTempla
te->InstanceTemplate(); | 486 v8::Local<v8::ObjectTemplate> instanceTemplate ALLOW_UNUSED = functionTempla
te->InstanceTemplate(); |
| 487 v8::Local<v8::ObjectTemplate> prototypeTemplate ALLOW_UNUSED = functionTempl
ate->PrototypeTemplate(); | 487 v8::Local<v8::ObjectTemplate> prototypeTemplate ALLOW_UNUSED = functionTempl
ate->PrototypeTemplate(); |
| 488 if (RuntimeEnabledFeatures::featureNameEnabled()) { |
| 489 static const V8DOMConfiguration::ConstantConfiguration constantConfigura
tion = {"CONST_VALUE_1", 1, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedShort}
; |
| 490 V8DOMConfiguration::installConstants(functionTemplate, prototypeTemplate
, &constantConfiguration, 1, isolate); |
| 491 } |
| 492 COMPILE_ASSERT(1 == TestInterface2::CONST_VALUE_1, TheValueOfTestInterface2_
CONST_VALUE_1DoesntMatchWithImplementation); |
| 488 functionTemplate->InstanceTemplate()->SetIndexedPropertyHandler(TestInterfac
e2V8Internal::indexedPropertyGetterCallback, TestInterface2V8Internal::indexedPr
opertySetterCallback, 0, TestInterface2V8Internal::indexedPropertyDeleterCallbac
k, indexedPropertyEnumerator<TestInterface2>); | 493 functionTemplate->InstanceTemplate()->SetIndexedPropertyHandler(TestInterfac
e2V8Internal::indexedPropertyGetterCallback, TestInterface2V8Internal::indexedPr
opertySetterCallback, 0, TestInterface2V8Internal::indexedPropertyDeleterCallbac
k, indexedPropertyEnumerator<TestInterface2>); |
| 489 functionTemplate->InstanceTemplate()->SetNamedPropertyHandler(TestInterface2
V8Internal::namedPropertyGetterCallback, TestInterface2V8Internal::namedProperty
SetterCallback, TestInterface2V8Internal::namedPropertyQueryCallback, TestInterf
ace2V8Internal::namedPropertyDeleterCallback, TestInterface2V8Internal::namedPro
pertyEnumeratorCallback); | 494 functionTemplate->InstanceTemplate()->SetNamedPropertyHandler(TestInterface2
V8Internal::namedPropertyGetterCallback, TestInterface2V8Internal::namedProperty
SetterCallback, TestInterface2V8Internal::namedPropertyQueryCallback, TestInterf
ace2V8Internal::namedPropertyDeleterCallback, TestInterface2V8Internal::namedPro
pertyEnumeratorCallback); |
| 490 | 495 |
| 491 // Custom toString template | 496 // Custom toString template |
| 492 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 497 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
| 493 } | 498 } |
| 494 | 499 |
| 495 v8::Handle<v8::FunctionTemplate> V8TestInterface2::domTemplate(v8::Isolate* isol
ate) | 500 v8::Handle<v8::FunctionTemplate> V8TestInterface2::domTemplate(v8::Isolate* isol
ate) |
| 496 { | 501 { |
| 497 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestInterface2Template); | 502 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestInterface2Template); |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 554 fromInternalPointer(internalPointer)->deref(); | 559 fromInternalPointer(internalPointer)->deref(); |
| 555 } | 560 } |
| 556 | 561 |
| 557 template<> | 562 template<> |
| 558 v8::Handle<v8::Value> toV8NoInline(TestInterface2* impl, v8::Handle<v8::Object>
creationContext, v8::Isolate* isolate) | 563 v8::Handle<v8::Value> toV8NoInline(TestInterface2* impl, v8::Handle<v8::Object>
creationContext, v8::Isolate* isolate) |
| 559 { | 564 { |
| 560 return toV8(impl, creationContext, isolate); | 565 return toV8(impl, creationContext, isolate); |
| 561 } | 566 } |
| 562 | 567 |
| 563 } // namespace blink | 568 } // namespace blink |
| OLD | NEW |