| 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 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 648 0, 0, | 648 0, 0, |
| 649 0, 0, | 649 0, 0, |
| 650 V8TestInterface2Methods, WTF_ARRAY_LENGTH(V8TestInterface2Methods)); | 650 V8TestInterface2Methods, WTF_ARRAY_LENGTH(V8TestInterface2Methods)); |
| 651 functionTemplate->SetCallHandler(V8TestInterface2::constructorCallback); | 651 functionTemplate->SetCallHandler(V8TestInterface2::constructorCallback); |
| 652 functionTemplate->SetLength(0); | 652 functionTemplate->SetLength(0); |
| 653 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); | 653 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); |
| 654 ALLOW_UNUSED_LOCAL(instanceTemplate); | 654 ALLOW_UNUSED_LOCAL(instanceTemplate); |
| 655 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); | 655 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); |
| 656 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 656 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
| 657 if (RuntimeEnabledFeatures::featureNameEnabled()) { | 657 if (RuntimeEnabledFeatures::featureNameEnabled()) { |
| 658 static const V8DOMConfiguration::ConstantConfiguration constantConfigura
tion = {"CONST_VALUE_1", 1, 0, V8DOMConfiguration::ConstantTypeUnsignedShort}; | 658 static const V8DOMConfiguration::ConstantConfiguration constantConstValu
e1Configuration = {"CONST_VALUE_1", 1, 0, V8DOMConfiguration::ConstantTypeUnsign
edShort}; |
| 659 V8DOMConfiguration::installConstant(isolate, functionTemplate, prototype
Template, constantConfiguration); | 659 V8DOMConfiguration::installConstant(isolate, functionTemplate, prototype
Template, constantConstValue1Configuration); |
| 660 } | 660 } |
| 661 static_assert(1 == TestInterface2::CONST_VALUE_1, "the value of TestInterfac
e2_CONST_VALUE_1 does not match with implementation"); | 661 static_assert(1 == TestInterface2::CONST_VALUE_1, "the value of TestInterfac
e2_CONST_VALUE_1 does not match with implementation"); |
| 662 { | 662 { |
| 663 v8::IndexedPropertyHandlerConfiguration config(TestInterface2V8Internal:
:indexedPropertyGetterCallback, TestInterface2V8Internal::indexedPropertySetterC
allback, 0, TestInterface2V8Internal::indexedPropertyDeleterCallback, indexedPro
pertyEnumerator<TestInterface2>); | 663 v8::IndexedPropertyHandlerConfiguration config(TestInterface2V8Internal:
:indexedPropertyGetterCallback, TestInterface2V8Internal::indexedPropertySetterC
allback, 0, TestInterface2V8Internal::indexedPropertyDeleterCallback, indexedPro
pertyEnumerator<TestInterface2>); |
| 664 functionTemplate->InstanceTemplate()->SetHandler(config); | 664 functionTemplate->InstanceTemplate()->SetHandler(config); |
| 665 } | 665 } |
| 666 { | 666 { |
| 667 int flags = static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStr
ings); | 667 int flags = static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStr
ings); |
| 668 flags |= static_cast<int>(v8::PropertyHandlerFlags::kNonMasking); | 668 flags |= static_cast<int>(v8::PropertyHandlerFlags::kNonMasking); |
| 669 v8::NamedPropertyHandlerConfiguration config(TestInterface2V8Internal::n
amedPropertyGetterCallback, TestInterface2V8Internal::namedPropertySetterCallbac
k, TestInterface2V8Internal::namedPropertyQueryCallback, TestInterface2V8Interna
l::namedPropertyDeleterCallback, TestInterface2V8Internal::namedPropertyEnumerat
orCallback, v8::Handle<v8::Value>(), static_cast<v8::PropertyHandlerFlags>(flags
)); | 669 v8::NamedPropertyHandlerConfiguration config(TestInterface2V8Internal::n
amedPropertyGetterCallback, TestInterface2V8Internal::namedPropertySetterCallbac
k, TestInterface2V8Internal::namedPropertyQueryCallback, TestInterface2V8Interna
l::namedPropertyDeleterCallback, TestInterface2V8Internal::namedPropertyEnumerat
orCallback, v8::Handle<v8::Value>(), static_cast<v8::PropertyHandlerFlags>(flags
)); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 700 { | 700 { |
| 701 scriptWrappable->toImpl<TestInterface2>()->ref(); | 701 scriptWrappable->toImpl<TestInterface2>()->ref(); |
| 702 } | 702 } |
| 703 | 703 |
| 704 void V8TestInterface2::derefObject(ScriptWrappable* scriptWrappable) | 704 void V8TestInterface2::derefObject(ScriptWrappable* scriptWrappable) |
| 705 { | 705 { |
| 706 scriptWrappable->toImpl<TestInterface2>()->deref(); | 706 scriptWrappable->toImpl<TestInterface2>()->deref(); |
| 707 } | 707 } |
| 708 | 708 |
| 709 } // namespace blink | 709 } // namespace blink |
| OLD | NEW |