Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(368)

Side by Side Diff: Source/bindings/tests/results/modules/V8TestInterface5.cpp

Issue 1315663004: [bindings] Bindings should only support the prescribed types for constants. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #if ENABLE(CONDITION) 8 #if ENABLE(CONDITION)
9 #include "V8TestInterface5.h" 9 #include "V8TestInterface5.h"
10 10
(...skipping 952 matching lines...) Expand 10 before | Expand all | Expand 10 after
963 else 963 else
964 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, functionTemplate, "TestInterface5", V8TestInterfaceEmpty::domTemplate(isolate), V8TestInterface5::internalFieldCount, 964 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, functionTemplate, "TestInterface5", V8TestInterfaceEmpty::domTemplate(isolate), V8TestInterface5::internalFieldCount,
965 V8TestInterface5Attributes, WTF_ARRAY_LENGTH(V8TestInterface5Attribu tes), 965 V8TestInterface5Attributes, WTF_ARRAY_LENGTH(V8TestInterface5Attribu tes),
966 V8TestInterface5Accessors, WTF_ARRAY_LENGTH(V8TestInterface5Accessor s), 966 V8TestInterface5Accessors, WTF_ARRAY_LENGTH(V8TestInterface5Accessor s),
967 V8TestInterface5Methods, WTF_ARRAY_LENGTH(V8TestInterface5Methods)); 967 V8TestInterface5Methods, WTF_ARRAY_LENGTH(V8TestInterface5Methods));
968 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT emplate(); 968 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT emplate();
969 ALLOW_UNUSED_LOCAL(instanceTemplate); 969 ALLOW_UNUSED_LOCAL(instanceTemplate);
970 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp eTemplate(); 970 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp eTemplate();
971 ALLOW_UNUSED_LOCAL(prototypeTemplate); 971 ALLOW_UNUSED_LOCAL(prototypeTemplate);
972 static const V8DOMConfiguration::ConstantConfiguration V8TestInterface5Const ants[] = { 972 static const V8DOMConfiguration::ConstantConfiguration V8TestInterface5Const ants[] = {
973 {"UNSIGNED_LONG", 0, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedLong} , 973 {"UNSIGNED_LONG", 0, 0, V8DOMConfiguration::ConstantTypeUnsignedLong},
974 {"CONST_JAVASCRIPT", 1, 0, 0, V8DOMConfiguration::ConstantTypeShort}, 974 {"CONST_JAVASCRIPT", 1, 0, V8DOMConfiguration::ConstantTypeShort},
975 }; 975 };
976 V8DOMConfiguration::installConstants(isolate, functionTemplate, prototypeTem plate, V8TestInterface5Constants, WTF_ARRAY_LENGTH(V8TestInterface5Constants)); 976 V8DOMConfiguration::installConstants(isolate, functionTemplate, prototypeTem plate, V8TestInterface5Constants, WTF_ARRAY_LENGTH(V8TestInterface5Constants));
977 { 977 {
978 v8::IndexedPropertyHandlerConfiguration config(TestInterface5Implementat ionV8Internal::indexedPropertyGetterCallback, TestInterface5ImplementationV8Inte rnal::indexedPropertySetterCallback, 0, TestInterface5ImplementationV8Internal:: indexedPropertyDeleterCallback, indexedPropertyEnumerator<TestInterface5Implemen tation>); 978 v8::IndexedPropertyHandlerConfiguration config(TestInterface5Implementat ionV8Internal::indexedPropertyGetterCallback, TestInterface5ImplementationV8Inte rnal::indexedPropertySetterCallback, 0, TestInterface5ImplementationV8Internal:: indexedPropertyDeleterCallback, indexedPropertyEnumerator<TestInterface5Implemen tation>);
979 functionTemplate->InstanceTemplate()->SetHandler(config); 979 functionTemplate->InstanceTemplate()->SetHandler(config);
980 } 980 }
981 { 981 {
982 v8::NamedPropertyHandlerConfiguration config(TestInterface5Implementatio nV8Internal::namedPropertyGetterCallback, TestInterface5ImplementationV8Internal ::namedPropertySetterCallback, TestInterface5ImplementationV8Internal::namedProp ertyQueryCallback, TestInterface5ImplementationV8Internal::namedPropertyDeleterC allback, TestInterface5ImplementationV8Internal::namedPropertyEnumeratorCallback ); 982 v8::NamedPropertyHandlerConfiguration config(TestInterface5Implementatio nV8Internal::namedPropertyGetterCallback, TestInterface5ImplementationV8Internal ::namedPropertySetterCallback, TestInterface5ImplementationV8Internal::namedProp ertyQueryCallback, TestInterface5ImplementationV8Internal::namedPropertyDeleterC allback, TestInterface5ImplementationV8Internal::namedPropertyEnumeratorCallback );
983 config.flags = static_cast<v8::PropertyHandlerFlags>(static_cast<int>(co nfig.flags) | static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStrings)) ; 983 config.flags = static_cast<v8::PropertyHandlerFlags>(static_cast<int>(co nfig.flags) | static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStrings)) ;
984 config.flags = static_cast<v8::PropertyHandlerFlags>(static_cast<int>(co nfig.flags) | static_cast<int>(v8::PropertyHandlerFlags::kNonMasking)); 984 config.flags = static_cast<v8::PropertyHandlerFlags>(static_cast<int>(co nfig.flags) | static_cast<int>(v8::PropertyHandlerFlags::kNonMasking));
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
1074 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); 1074 scriptWrappable->toImpl<TestInterface5Implementation>()->ref();
1075 } 1075 }
1076 1076
1077 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) 1077 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable)
1078 { 1078 {
1079 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); 1079 scriptWrappable->toImpl<TestInterface5Implementation>()->deref();
1080 } 1080 }
1081 1081
1082 } // namespace blink 1082 } // namespace blink
1083 #endif // ENABLE(CONDITION) 1083 #endif // ENABLE(CONDITION)
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/core/V8TestObject.cpp ('k') | Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698