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

Side by Side Diff: Source/bindings/tests/results/core/V8TestInterface.cpp

Issue 1121703002: bindings: Uses V8's named property interceptor for Window. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 5 years, 4 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 "V8TestInterface.h" 9 #include "V8TestInterface.h"
10 10
(...skipping 2460 matching lines...) Expand 10 before | Expand all | Expand 10 after
2471 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { 2471 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) {
2472 static const V8DOMConfiguration::ConstantConfiguration constantConfigura tion = {"PARTIAL_UNSIGNED_SHORT", 0, V8DOMConfiguration::ConstantTypeUnsignedSho rt}; 2472 static const V8DOMConfiguration::ConstantConfiguration constantConfigura tion = {"PARTIAL_UNSIGNED_SHORT", 0, V8DOMConfiguration::ConstantTypeUnsignedSho rt};
2473 V8DOMConfiguration::installConstant(isolate, functionTemplate, prototype Template, constantConfiguration); 2473 V8DOMConfiguration::installConstant(isolate, functionTemplate, prototype Template, constantConfiguration);
2474 } 2474 }
2475 { 2475 {
2476 v8::IndexedPropertyHandlerConfiguration config(TestInterfaceImplementati onV8Internal::indexedPropertyGetterCallback, TestInterfaceImplementationV8Intern al::indexedPropertySetterCallback, 0, TestInterfaceImplementationV8Internal::ind exedPropertyDeleterCallback, indexedPropertyEnumerator<TestInterfaceImplementati on>); 2476 v8::IndexedPropertyHandlerConfiguration config(TestInterfaceImplementati onV8Internal::indexedPropertyGetterCallback, TestInterfaceImplementationV8Intern al::indexedPropertySetterCallback, 0, TestInterfaceImplementationV8Internal::ind exedPropertyDeleterCallback, indexedPropertyEnumerator<TestInterfaceImplementati on>);
2477 config.flags = v8::PropertyHandlerFlags::kAllCanRead; 2477 config.flags = v8::PropertyHandlerFlags::kAllCanRead;
2478 functionTemplate->InstanceTemplate()->SetHandler(config); 2478 functionTemplate->InstanceTemplate()->SetHandler(config);
2479 } 2479 }
2480 { 2480 {
2481 v8::NamedPropertyHandlerConfiguration config(TestInterfaceImplementation V8Internal::namedPropertyGetterCallback, TestInterfaceImplementationV8Internal:: namedPropertySetterCallback, TestInterfaceImplementationV8Internal::namedPropert yQueryCallback, TestInterfaceImplementationV8Internal::namedPropertyDeleterCallb ack, TestInterfaceImplementationV8Internal::namedPropertyEnumeratorCallback); 2481 int flags = static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStr ings);
2482 config.flags = static_cast<v8::PropertyHandlerFlags>(static_cast<int>(co nfig.flags) | static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStrings)) ; 2482 flags |= static_cast<int>(v8::PropertyHandlerFlags::kAllCanRead);
2483 config.flags = v8::PropertyHandlerFlags::kAllCanRead; 2483 flags |= static_cast<int>(v8::PropertyHandlerFlags::kNonMasking);
2484 config.flags = static_cast<v8::PropertyHandlerFlags>(static_cast<int>(co nfig.flags) | static_cast<int>(v8::PropertyHandlerFlags::kNonMasking)); 2484 v8::NamedPropertyHandlerConfiguration config(TestInterfaceImplementation V8Internal::namedPropertyGetterCallback, TestInterfaceImplementationV8Internal:: namedPropertySetterCallback, TestInterfaceImplementationV8Internal::namedPropert yQueryCallback, TestInterfaceImplementationV8Internal::namedPropertyDeleterCallb ack, TestInterfaceImplementationV8Internal::namedPropertyEnumeratorCallback, v8: :Handle<v8::Value>(), static_cast<v8::PropertyHandlerFlags>(flags));
2485 functionTemplate->InstanceTemplate()->SetHandler(config); 2485 functionTemplate->InstanceTemplate()->SetHandler(config);
2486 } 2486 }
2487 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedI teratorConfiguration = { v8::Symbol::GetIterator, TestInterfaceImplementationV8I nternal::iteratorMethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts }; 2487 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedI teratorConfiguration = { v8::Symbol::GetIterator, TestInterfaceImplementationV8I nternal::iteratorMethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts };
2488 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu re, v8::DontDelete, symbolKeyedIteratorConfiguration); 2488 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu re, v8::DontDelete, symbolKeyedIteratorConfiguration);
2489 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler(V8TestInterfa ce::legacyCallCustom); 2489 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler(V8TestInterfa ce::legacyCallCustom);
2490 const V8DOMConfiguration::MethodConfiguration alwaysExposedStaticMethodMetho dConfiguration = { 2490 const V8DOMConfiguration::MethodConfiguration alwaysExposedStaticMethodMetho dConfiguration = {
2491 "alwaysExposedStaticMethod", TestInterfaceImplementationV8Internal::alwa ysExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScrip ts, 2491 "alwaysExposedStaticMethod", TestInterfaceImplementationV8Internal::alwa ysExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScrip ts,
2492 }; 2492 };
2493 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v8::S ignature>(), v8::None, alwaysExposedStaticMethodMethodConfiguration); 2493 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v8::S ignature>(), v8::None, alwaysExposedStaticMethodMethodConfiguration);
2494 if (context && (context->isWorkerGlobalScope())) { 2494 if (context && (context->isWorkerGlobalScope())) {
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
2791 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void ( *method)(const v8::FunctionCallbackInfo<v8::Value>&)) 2791 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void ( *method)(const v8::FunctionCallbackInfo<v8::Value>&))
2792 { 2792 {
2793 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt erface = method; 2793 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt erface = method;
2794 } 2794 }
2795 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface( void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) 2795 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface( void (*method)(const v8::FunctionCallbackInfo<v8::Value>&))
2796 { 2796 {
2797 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart ialInterface = method; 2797 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart ialInterface = method;
2798 } 2798 }
2799 } // namespace blink 2799 } // namespace blink
2800 #endif // ENABLE(CONDITION) 2800 #endif // ENABLE(CONDITION)
OLDNEW
« no previous file with comments | « Source/bindings/templates/interface_base.cpp ('k') | Source/bindings/tests/results/core/V8TestInterface2.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698