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

Side by Side Diff: Source/bindings/tests/results/core/V8TestObject.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, 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 #include "V8TestObject.h" 8 #include "V8TestObject.h"
9 9
10 #include "bindings/core/v8/BindingSecurity.h" 10 #include "bindings/core/v8/BindingSecurity.h"
(...skipping 12962 matching lines...) Expand 10 before | Expand all | Expand 10 after
12973 static_assert(-0X1a == TestObject::CONST_VALUE_17, "the value of TestObject_ CONST_VALUE_17 does not match with implementation"); 12973 static_assert(-0X1a == TestObject::CONST_VALUE_17, "the value of TestObject_ CONST_VALUE_17 does not match with implementation");
12974 static_assert(1 == TestObject::DEPRECATED_CONSTANT, "the value of TestObject _DEPRECATED_CONSTANT does not match with implementation"); 12974 static_assert(1 == TestObject::DEPRECATED_CONSTANT, "the value of TestObject _DEPRECATED_CONSTANT does not match with implementation");
12975 static_assert(1 == TestObject::MEASURED_CONSTANT, "the value of TestObject_M EASURED_CONSTANT does not match with implementation"); 12975 static_assert(1 == TestObject::MEASURED_CONSTANT, "the value of TestObject_M EASURED_CONSTANT does not match with implementation");
12976 static_assert(1 == TestObject::FEATURE_ENABLED_CONST, "the value of TestObje ct_FEATURE_ENABLED_CONST does not match with implementation"); 12976 static_assert(1 == TestObject::FEATURE_ENABLED_CONST, "the value of TestObje ct_FEATURE_ENABLED_CONST does not match with implementation");
12977 static_assert(1 == TestObject::CONST_IMPL, "the value of TestObject_CONST_IM PL does not match with implementation"); 12977 static_assert(1 == TestObject::CONST_IMPL, "the value of TestObject_CONST_IM PL does not match with implementation");
12978 { 12978 {
12979 v8::IndexedPropertyHandlerConfiguration config(TestObjectV8Internal::ind exedPropertyGetterCallback, TestObjectV8Internal::indexedPropertySetterCallback, 0, TestObjectV8Internal::indexedPropertyDeleterCallback, indexedPropertyEnumera tor<TestObject>); 12979 v8::IndexedPropertyHandlerConfiguration config(TestObjectV8Internal::ind exedPropertyGetterCallback, TestObjectV8Internal::indexedPropertySetterCallback, 0, TestObjectV8Internal::indexedPropertyDeleterCallback, indexedPropertyEnumera tor<TestObject>);
12980 functionTemplate->InstanceTemplate()->SetHandler(config); 12980 functionTemplate->InstanceTemplate()->SetHandler(config);
12981 } 12981 }
12982 { 12982 {
12983 v8::NamedPropertyHandlerConfiguration config(TestObjectV8Internal::named PropertyGetterCallback, TestObjectV8Internal::namedPropertySetterCallback, TestO bjectV8Internal::namedPropertyQueryCallback, TestObjectV8Internal::namedProperty DeleterCallback, TestObjectV8Internal::namedPropertyEnumeratorCallback); 12983 int flags = static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStr ings);
12984 config.flags = static_cast<v8::PropertyHandlerFlags>(static_cast<int>(co nfig.flags) | static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStrings)) ; 12984 flags |= static_cast<int>(v8::PropertyHandlerFlags::kNonMasking);
12985 config.flags = static_cast<v8::PropertyHandlerFlags>(static_cast<int>(co nfig.flags) | static_cast<int>(v8::PropertyHandlerFlags::kNonMasking)); 12985 v8::NamedPropertyHandlerConfiguration config(TestObjectV8Internal::named PropertyGetterCallback, TestObjectV8Internal::namedPropertySetterCallback, TestO bjectV8Internal::namedPropertyQueryCallback, TestObjectV8Internal::namedProperty DeleterCallback, TestObjectV8Internal::namedPropertyEnumeratorCallback, v8::Hand le<v8::Value>(), static_cast<v8::PropertyHandlerFlags>(flags));
12986 functionTemplate->InstanceTemplate()->SetHandler(config); 12986 functionTemplate->InstanceTemplate()->SetHandler(config);
12987 } 12987 }
12988 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedI teratorConfiguration = { v8::Symbol::GetIterator, TestObjectV8Internal::iterator MethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts }; 12988 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedI teratorConfiguration = { v8::Symbol::GetIterator, TestObjectV8Internal::iterator MethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts };
12989 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu re, v8::DontDelete, symbolKeyedIteratorConfiguration); 12989 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu re, v8::DontDelete, symbolKeyedIteratorConfiguration);
12990 if (RuntimeEnabledFeatures::featureNameEnabled()) { 12990 if (RuntimeEnabledFeatures::featureNameEnabled()) {
12991 const V8DOMConfiguration::MethodConfiguration unscopeableRuntimeEnabledV oidMethodMethodConfiguration = { 12991 const V8DOMConfiguration::MethodConfiguration unscopeableRuntimeEnabledV oidMethodMethodConfiguration = {
12992 "unscopeableRuntimeEnabledVoidMethod", TestObjectV8Internal::unscope ableRuntimeEnabledVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToA llScripts, 12992 "unscopeableRuntimeEnabledVoidMethod", TestObjectV8Internal::unscope ableRuntimeEnabledVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToA llScripts,
12993 }; 12993 };
12994 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSig nature, v8::None, unscopeableRuntimeEnabledVoidMethodMethodConfiguration); 12994 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSig nature, v8::None, unscopeableRuntimeEnabledVoidMethodMethodConfiguration);
12995 } 12995 }
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after
13597 ScriptState::Scope scope(scriptState); 13597 ScriptState::Scope scope(scriptState);
13598 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate()); 13598 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
13599 if (holder.IsEmpty()) 13599 if (holder.IsEmpty())
13600 return false; 13600 return false;
13601 13601
13602 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 13602 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ;
13603 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue)); 13603 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue));
13604 } 13604 }
13605 13605
13606 } // namespace blink 13606 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698