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

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

Issue 968583002: bindings: Supports conditionally-enabled accessors. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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 12149 matching lines...) Expand 10 before | Expand all | Expand 10 after
12160 { 12160 {
12161 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu e)) : 0; 12161 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu e)) : 0;
12162 } 12162 }
12163 12163
12164 void V8TestObject::installConditionallyEnabledProperties(v8::Local<v8::Object> i nstanceObject, v8::Isolate* isolate) 12164 void V8TestObject::installConditionallyEnabledProperties(v8::Local<v8::Object> i nstanceObject, v8::Isolate* isolate)
12165 { 12165 {
12166 v8::Local<v8::Object> prototypeObject = v8::Local<v8::Object>::Cast(instance Object->GetPrototype()); 12166 v8::Local<v8::Object> prototypeObject = v8::Local<v8::Object>::Cast(instance Object->GetPrototype());
12167 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont ext()); 12167 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont ext());
12168 12168
12169 if (context && context->isDocument() && ContextFeatures::featureNameEnabled( toDocument(context))) { 12169 if (context && context->isDocument() && ContextFeatures::featureNameEnabled( toDocument(context))) {
12170 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\ 12170 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration = {"perContextEnabledLongAttribute", TestObjectV8Internal::perContextEnab ledLongAttributeAttributeGetterCallback, TestObjectV8Internal::perContextEnabled LongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8 ::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Ex posedToAllScripts, V8DOMConfiguration::OnInstance};
12171 {"perContextEnabledLongAttribute", TestObjectV8Internal::perContextEnabl edLongAttributeAttributeGetterCallback, TestObjectV8Internal::perContextEnabledL ongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8: :DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Exp osedToAllScripts, V8DOMConfiguration::OnInstance};
12172 V8DOMConfiguration::installAttribute(isolate, instanceObject, prototypeO bject, attributeConfiguration); 12171 V8DOMConfiguration::installAttribute(isolate, instanceObject, prototypeO bject, attributeConfiguration);
12173 } 12172 }
12174 if (context && context->isDocument() && ContextFeatures::featureNameEnabled( toDocument(context))) { 12173 if (context && context->isDocument() && ContextFeatures::featureNameEnabled( toDocument(context))) {
12175 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\ 12174 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration = {"perContextEnabledRuntimeEnabledLongAttribute", TestObjectV8Internal:: perContextEnabledRuntimeEnabledLongAttributeAttributeGetterCallback, TestObjectV 8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration: :OnInstance};
12176 {"perContextEnabledRuntimeEnabledLongAttribute", TestObjectV8Internal::p erContextEnabledRuntimeEnabledLongAttributeAttributeGetterCallback, TestObjectV8 Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeSetterCallback, 0 , 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAtt ribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration:: OnInstance};
12177 V8DOMConfiguration::installAttribute(isolate, instanceObject, prototypeO bject, attributeConfiguration); 12175 V8DOMConfiguration::installAttribute(isolate, instanceObject, prototypeO bject, attributeConfiguration);
12178 } 12176 }
12179 } 12177 }
12180 12178
12181 void V8TestObject::installConditionallyEnabledMethods(v8::Local<v8::Object> prot otypeObject, v8::Isolate* isolate) 12179 void V8TestObject::installConditionallyEnabledMethods(v8::Local<v8::Object> prot otypeObject, v8::Isolate* isolate)
12182 { 12180 {
12183 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT emplate(isolate)); 12181 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT emplate(isolate));
12184 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont ext()); 12182 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont ext());
12185 ASSERT(context); 12183 ASSERT(context);
12186 12184
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
12682 return false; 12680 return false;
12683 12681
12684 ScriptState::Scope scope(scriptState); 12682 ScriptState::Scope scope(scriptState);
12685 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate()); 12683 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
12686 12684
12687 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 12685 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ;
12688 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue)); 12686 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue));
12689 } 12687 }
12690 12688
12691 } // namespace blink 12689 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698