| 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 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 657 if (RuntimeEnabledFeatures::featureNameEnabled()) { | 657 if (RuntimeEnabledFeatures::featureNameEnabled()) { |
| 658 static const V8DOMConfiguration::ConstantConfiguration constantConfigura
tion = {"CONST_VALUE_1", 1, V8DOMConfiguration::ConstantTypeUnsignedShort}; | 658 static const V8DOMConfiguration::ConstantConfiguration constantConfigura
tion = {"CONST_VALUE_1", 1, V8DOMConfiguration::ConstantTypeUnsignedShort}; |
| 659 V8DOMConfiguration::installConstant(isolate, functionTemplate, prototype
Template, constantConfiguration); | 659 V8DOMConfiguration::installConstant(isolate, functionTemplate, prototype
Template, constantConfiguration); |
| 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 v8::NamedPropertyHandlerConfiguration config(TestInterface2V8Internal::n
amedPropertyGetterCallback, TestInterface2V8Internal::namedPropertySetterCallbac
k, TestInterface2V8Internal::namedPropertyQueryCallback, TestInterface2V8Interna
l::namedPropertyDeleterCallback, TestInterface2V8Internal::namedPropertyEnumerat
orCallback); | 667 int flags = static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStr
ings); |
| 668 config.flags = static_cast<v8::PropertyHandlerFlags>(static_cast<int>(co
nfig.flags) | static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStrings))
; | 668 flags |= static_cast<int>(v8::PropertyHandlerFlags::kNonMasking); |
| 669 config.flags = static_cast<v8::PropertyHandlerFlags>(static_cast<int>(co
nfig.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
)); |
| 670 functionTemplate->InstanceTemplate()->SetHandler(config); | 670 functionTemplate->InstanceTemplate()->SetHandler(config); |
| 671 } | 671 } |
| 672 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedI
teratorConfiguration = { v8::Symbol::GetIterator, TestInterface2V8Internal::iter
atorMethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts }; | 672 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedI
teratorConfiguration = { v8::Symbol::GetIterator, TestInterface2V8Internal::iter
atorMethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts }; |
| 673 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu
re, v8::DontDelete, symbolKeyedIteratorConfiguration); | 673 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu
re, v8::DontDelete, symbolKeyedIteratorConfiguration); |
| 674 | 674 |
| 675 // Custom toString template | 675 // Custom toString template |
| 676 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 676 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
| 677 } | 677 } |
| 678 | 678 |
| 679 v8::Local<v8::FunctionTemplate> V8TestInterface2::domTemplate(v8::Isolate* isola
te) | 679 v8::Local<v8::FunctionTemplate> V8TestInterface2::domTemplate(v8::Isolate* isola
te) |
| (...skipping 20 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 |