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

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

Issue 1318293002: Only expose Notification.requestPermission() on the Window global. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: handle detached contexts 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 | Annotate | Revision Log
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 951 matching lines...) Expand 10 before | Expand all | Expand 10 after
962 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, functionTemplate, "TestInterface5", V8TestInterfaceEmpty::domTemplate(isolate), V8TestInterface5::internalFieldCount, 0, 0, 0, 0, 0, 0); 962 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, functionTemplate, "TestInterface5", V8TestInterfaceEmpty::domTemplate(isolate), V8TestInterface5::internalFieldCount, 0, 0, 0, 0, 0, 0);
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 ExecutionContext* context = currentExecutionContext(isolate);
973 ALLOW_UNUSED_LOCAL(context);
972 static const V8DOMConfiguration::ConstantConfiguration V8TestInterface5Const ants[] = { 974 static const V8DOMConfiguration::ConstantConfiguration V8TestInterface5Const ants[] = {
973 {"UNSIGNED_LONG", 0, 0, V8DOMConfiguration::ConstantTypeUnsignedLong}, 975 {"UNSIGNED_LONG", 0, 0, V8DOMConfiguration::ConstantTypeUnsignedLong},
974 {"CONST_JAVASCRIPT", 1, 0, V8DOMConfiguration::ConstantTypeShort}, 976 {"CONST_JAVASCRIPT", 1, 0, V8DOMConfiguration::ConstantTypeShort},
975 }; 977 };
976 V8DOMConfiguration::installConstants(isolate, functionTemplate, prototypeTem plate, V8TestInterface5Constants, WTF_ARRAY_LENGTH(V8TestInterface5Constants)); 978 V8DOMConfiguration::installConstants(isolate, functionTemplate, prototypeTem plate, V8TestInterface5Constants, WTF_ARRAY_LENGTH(V8TestInterface5Constants));
977 { 979 {
978 v8::IndexedPropertyHandlerConfiguration config(TestInterface5Implementat ionV8Internal::indexedPropertyGetterCallback, TestInterface5ImplementationV8Inte rnal::indexedPropertySetterCallback, 0, TestInterface5ImplementationV8Internal:: indexedPropertyDeleterCallback, indexedPropertyEnumerator<TestInterface5Implemen tation>); 980 v8::IndexedPropertyHandlerConfiguration config(TestInterface5Implementat ionV8Internal::indexedPropertyGetterCallback, TestInterface5ImplementationV8Inte rnal::indexedPropertySetterCallback, 0, TestInterface5ImplementationV8Internal:: indexedPropertyDeleterCallback, indexedPropertyEnumerator<TestInterface5Implemen tation>);
979 functionTemplate->InstanceTemplate()->SetHandler(config); 981 functionTemplate->InstanceTemplate()->SetHandler(config);
980 } 982 }
981 { 983 {
982 int flags = static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStr ings); 984 int flags = static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStr ings);
983 flags |= static_cast<int>(v8::PropertyHandlerFlags::kNonMasking); 985 flags |= static_cast<int>(v8::PropertyHandlerFlags::kNonMasking);
984 v8::NamedPropertyHandlerConfiguration config(TestInterface5Implementatio nV8Internal::namedPropertyGetterCallback, TestInterface5ImplementationV8Internal ::namedPropertySetterCallback, TestInterface5ImplementationV8Internal::namedProp ertyQueryCallback, TestInterface5ImplementationV8Internal::namedPropertyDeleterC allback, TestInterface5ImplementationV8Internal::namedPropertyEnumeratorCallback , v8::Handle<v8::Value>(), static_cast<v8::PropertyHandlerFlags>(flags)); 986 v8::NamedPropertyHandlerConfiguration config(TestInterface5Implementatio nV8Internal::namedPropertyGetterCallback, TestInterface5ImplementationV8Internal ::namedPropertySetterCallback, TestInterface5ImplementationV8Internal::namedProp ertyQueryCallback, TestInterface5ImplementationV8Internal::namedPropertyDeleterC allback, TestInterface5ImplementationV8Internal::namedPropertyEnumeratorCallback , v8::Handle<v8::Value>(), static_cast<v8::PropertyHandlerFlags>(flags));
985 functionTemplate->InstanceTemplate()->SetHandler(config); 987 functionTemplate->InstanceTemplate()->SetHandler(config);
986 } 988 }
987 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedI teratorConfiguration = { v8::Symbol::GetIterator, TestInterface5ImplementationV8 Internal::iteratorMethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts }; 989 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedI teratorConfiguration = { v8::Symbol::GetIterator, TestInterface5ImplementationV8 Internal::iteratorMethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts };
988 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu re, v8::DontDelete, symbolKeyedIteratorConfiguration); 990 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu re, v8::DontDelete, symbolKeyedIteratorConfiguration);
989 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler(V8TestInterfa ce5::legacyCallCustom); 991 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler(V8TestInterfa ce5::legacyCallCustom);
990 const V8DOMConfiguration::MethodConfiguration alwaysExposedStaticMethodMetho dConfiguration = { 992 const V8DOMConfiguration::MethodConfiguration alwaysExposedStaticMethodMetho dConfiguration = {
991 "alwaysExposedStaticMethod", TestInterface5ImplementationV8Internal::alw aysExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScri pts, 993 "alwaysExposedStaticMethod", TestInterface5ImplementationV8Internal::alw aysExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScri pts,
992 }; 994 };
993 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v8::S ignature>(), v8::None, alwaysExposedStaticMethodMethodConfiguration); 995 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v8::S ignature>(), v8::None, alwaysExposedStaticMethodMethodConfiguration);
994 if (context && (context->isWorkerGlobalScope())) { 996 if (context && (context->isWorkerGlobalScope())) {
Peter Beverloo 2015/08/29 11:39:39 This line illustrates the usage, and would also re
995 const V8DOMConfiguration::MethodConfiguration workerExposedStaticMethodM ethodConfiguration = { 997 const V8DOMConfiguration::MethodConfiguration workerExposedStaticMethodM ethodConfiguration = {
996 "workerExposedStaticMethod", TestInterface5ImplementationV8Internal: :workerExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAll Scripts, 998 "workerExposedStaticMethod", TestInterface5ImplementationV8Internal: :workerExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAll Scripts,
997 }; 999 };
998 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v 8::Signature>(), v8::None, workerExposedStaticMethodMethodConfiguration); 1000 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v 8::Signature>(), v8::None, workerExposedStaticMethodMethodConfiguration);
999 } 1001 }
1000 if (context && (context->isDocument())) { 1002 if (context && (context->isDocument())) {
1001 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodM ethodConfiguration = { 1003 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodM ethodConfiguration = {
1002 "windowExposedStaticMethod", TestInterface5ImplementationV8Internal: :windowExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAll Scripts, 1004 "windowExposedStaticMethod", TestInterface5ImplementationV8Internal: :windowExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAll Scripts,
1003 }; 1005 };
1004 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v 8::Signature>(), v8::None, windowExposedStaticMethodMethodConfiguration); 1006 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v 8::Signature>(), v8::None, windowExposedStaticMethodMethodConfiguration);
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
1074 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); 1076 scriptWrappable->toImpl<TestInterface5Implementation>()->ref();
1075 } 1077 }
1076 1078
1077 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) 1079 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable)
1078 { 1080 {
1079 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); 1081 scriptWrappable->toImpl<TestInterface5Implementation>()->deref();
1080 } 1082 }
1081 1083
1082 } // namespace blink 1084 } // namespace blink
1083 #endif // ENABLE(CONDITION) 1085 #endif // ENABLE(CONDITION)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698