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

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

Issue 1008353002: bindings: Reduces the binary size by reducing # of callback functions. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 #include "core/html/HTMLTableRowsCollection.h" 65 #include "core/html/HTMLTableRowsCollection.h"
66 #include "core/inspector/ScriptArguments.h" 66 #include "core/inspector/ScriptArguments.h"
67 #include "platform/RuntimeEnabledFeatures.h" 67 #include "platform/RuntimeEnabledFeatures.h"
68 #include "platform/ScriptForbiddenScope.h" 68 #include "platform/ScriptForbiddenScope.h"
69 #include "platform/TraceEvent.h" 69 #include "platform/TraceEvent.h"
70 #include "wtf/GetPtr.h" 70 #include "wtf/GetPtr.h"
71 #include "wtf/RefPtr.h" 71 #include "wtf/RefPtr.h"
72 72
73 namespace blink { 73 namespace blink {
74 74
75 const WrapperTypeInfo V8TestObject::wrapperTypeInfo = { gin::kEmbedderBlink, V8T estObject::domTemplate, V8TestObject::refObject, V8TestObject::derefObject, V8Te stObject::trace, 0, 0, V8TestObject::installConditionallyEnabledMethods, V8TestO bject::installConditionallyEnabledProperties, 0, WrapperTypeInfo::WrapperTypeObj ectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::NotInheritFromEve ntTarget, WrapperTypeInfo::Independent, WrapperTypeInfo::RefCountedObject }; 75 const WrapperTypeInfo V8TestObject::wrapperTypeInfo = { gin::kEmbedderBlink, V8T estObject::domTemplate, V8TestObject::refObject, V8TestObject::derefObject, V8Te stObject::trace, 0, 0, V8TestObject::installConditionallyEnabledMethods, V8TestO bject::installConditionallyEnabledProperties, "TestObject", 0, WrapperTypeInfo:: WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::Not InheritFromEventTarget, WrapperTypeInfo::Independent, WrapperTypeInfo::RefCounte dObject };
76 76
77 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestObject.h . 77 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestObject.h .
78 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in 78 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in
79 // bindings/core/v8/ScriptWrappable.h. 79 // bindings/core/v8/ScriptWrappable.h.
80 const WrapperTypeInfo& TestObject::s_wrapperTypeInfo = V8TestObject::wrapperType Info; 80 const WrapperTypeInfo& TestObject::s_wrapperTypeInfo = V8TestObject::wrapperType Info;
81 81
82 namespace TestObjectV8Internal { 82 namespace TestObjectV8Internal {
83 83
84 static void DEPRECATED_CONSTANTConstantGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 84 static void DEPRECATED_CONSTANTConstantGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
85 { 85 {
(...skipping 11 matching lines...) Expand all
97 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 97 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
98 } 98 }
99 99
100 template<class CallbackInfo> 100 template<class CallbackInfo>
101 static void TestObjectForceSetAttributeOnThis(v8::Local<v8::Name> name, v8::Loca l<v8::Value> v8Value, const CallbackInfo& info) 101 static void TestObjectForceSetAttributeOnThis(v8::Local<v8::Name> name, v8::Loca l<v8::Value> v8Value, const CallbackInfo& info)
102 { 102 {
103 ASSERT(info.This()->IsObject()); 103 ASSERT(info.This()->IsObject());
104 v8::Local<v8::Object>::Cast(info.This())->ForceSet(name, v8Value); 104 v8::Local<v8::Object>::Cast(info.This())->ForceSet(name, v8Value);
105 } 105 }
106 106
107 static void TestObjectConstructorAttributeSetterCallback(v8::Local<v8::Name>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
108 {
109 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
110 do {
111 v8::Local<v8::Value> data = info.Data();
112 ASSERT(data->IsExternal());
113 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()- >CreationContext());
114 if (!perContextData)
115 break;
116 const WrapperTypeInfo* wrapperTypeInfo = WrapperTypeInfo::unwrap(data);
117 if (!wrapperTypeInfo)
118 break;
119 TestObjectForceSetAttributeOnThis(v8String(info.GetIsolate(), wrapperTyp eInfo->interfaceName), v8Value, info);
120 } while (false); // do ... while (false) just for use of break
121 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
122 }
123
107 static void stringifierAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 124 static void stringifierAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info)
108 { 125 {
109 v8::Local<v8::Object> holder = info.Holder(); 126 v8::Local<v8::Object> holder = info.Holder();
110 TestObject* impl = V8TestObject::toImpl(holder); 127 TestObject* impl = V8TestObject::toImpl(holder);
111 v8SetReturnValueString(info, impl->stringifierAttribute(), info.GetIsolate() ); 128 v8SetReturnValueString(info, impl->stringifierAttribute(), info.GetIsolate() );
112 } 129 }
113 130
114 static void stringifierAttributeAttributeGetterCallback(v8::Local<v8::Name>, con st v8::PropertyCallbackInfo<v8::Value>& info) 131 static void stringifierAttributeAttributeGetterCallback(v8::Local<v8::Name>, con st v8::PropertyCallbackInfo<v8::Value>& info)
115 { 132 {
116 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 133 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
(...skipping 5404 matching lines...) Expand 10 before | Expand all | Expand 10 after
5521 { 5538 {
5522 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5539 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5523 TestObjectV8Internal::enumForPrivateScriptAttributeSetter(v8Value, info); 5540 TestObjectV8Internal::enumForPrivateScriptAttributeSetter(v8Value, info);
5524 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5541 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5525 } 5542 }
5526 5543
5527 static void testInterfaceEmptyConstructorAttributeConstructorGetterCallback(v8:: Local<v8::Name> property, const v8::PropertyCallbackInfo<v8::Value>& info) 5544 static void testInterfaceEmptyConstructorAttributeConstructorGetterCallback(v8:: Local<v8::Name> property, const v8::PropertyCallbackInfo<v8::Value>& info)
5528 { 5545 {
5529 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5546 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5530 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::deprecatedTestInterfaceEmptyConstr uctorAttribute); 5547 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::deprecatedTestInterfaceEmptyConstr uctorAttribute);
5531 v8ConstructorAttributeGetterAsProperty(property, info); 5548 v8ConstructorAttributeGetter(property, info);
5532 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5549 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5533 } 5550 }
5534 5551
5535 static void measureAsFeatureNameTestInterfaceEmptyConstructorAttributeConstructo rGetterCallback(v8::Local<v8::Name> property, const v8::PropertyCallbackInfo<v8: :Value>& info) 5552 static void measureAsFeatureNameTestInterfaceEmptyConstructorAttributeConstructo rGetterCallback(v8::Local<v8::Name> property, const v8::PropertyCallbackInfo<v8: :Value>& info)
5536 { 5553 {
5537 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5554 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5538 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::FeatureName); 5555 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::FeatureName);
5539 v8ConstructorAttributeGetterAsProperty(property, info); 5556 v8ConstructorAttributeGetter(property, info);
5540 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5557 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5541 } 5558 }
5542 5559
5543 static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 5560 static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
5544 { 5561 {
5545 TestObject* impl = V8TestObject::toImpl(info.Holder()); 5562 TestObject* impl = V8TestObject::toImpl(info.Holder());
5546 impl->voidMethod(); 5563 impl->voidMethod();
5547 } 5564 }
5548 5565
5549 static void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 5566 static void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
(...skipping 6585 matching lines...) Expand 10 before | Expand all | Expand 10 after
12135 {"cachedAttributeAnyAttribute", TestObjectV8Internal::cachedAttributeAnyAttr ibuteAttributeGetterCallback, TestObjectV8Internal::cachedAttributeAnyAttributeA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri pts, V8DOMConfiguration::OnInstance}, 12152 {"cachedAttributeAnyAttribute", TestObjectV8Internal::cachedAttributeAnyAttr ibuteAttributeGetterCallback, TestObjectV8Internal::cachedAttributeAnyAttributeA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri pts, V8DOMConfiguration::OnInstance},
12136 {"cachedArrayAttribute", TestObjectV8Internal::cachedArrayAttributeAttribute GetterCallback, TestObjectV8Internal::cachedArrayAttributeAttributeSetterCallbac k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati on::OnInstance}, 12153 {"cachedArrayAttribute", TestObjectV8Internal::cachedArrayAttributeAttribute GetterCallback, TestObjectV8Internal::cachedArrayAttributeAttributeSetterCallbac k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati on::OnInstance},
12137 {"cachedStringOrNoneAttribute", TestObjectV8Internal::cachedStringOrNoneAttr ibuteAttributeGetterCallback, TestObjectV8Internal::cachedStringOrNoneAttributeA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri pts, V8DOMConfiguration::OnInstance}, 12154 {"cachedStringOrNoneAttribute", TestObjectV8Internal::cachedStringOrNoneAttr ibuteAttributeGetterCallback, TestObjectV8Internal::cachedStringOrNoneAttributeA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri pts, V8DOMConfiguration::OnInstance},
12138 {"callWithExecutionContextAnyAttribute", TestObjectV8Internal::callWithExecu tionContextAnyAttributeAttributeGetterCallback, TestObjectV8Internal::callWithEx ecutionContextAnyAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acce ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConf iguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, 12155 {"callWithExecutionContextAnyAttribute", TestObjectV8Internal::callWithExecu tionContextAnyAttributeAttributeGetterCallback, TestObjectV8Internal::callWithEx ecutionContextAnyAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acce ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConf iguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
12139 {"callWithScriptStateAnyAttribute", TestObjectV8Internal::callWithScriptStat eAnyAttributeAttributeGetterCallback, TestObjectV8Internal::callWithScriptStateA nyAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8:: DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expo sedToAllScripts, V8DOMConfiguration::OnInstance}, 12156 {"callWithScriptStateAnyAttribute", TestObjectV8Internal::callWithScriptStat eAnyAttributeAttributeGetterCallback, TestObjectV8Internal::callWithScriptStateA nyAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8:: DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expo sedToAllScripts, V8DOMConfiguration::OnInstance},
12140 {"callWithExecutionContextAndScriptStateAnyAttribute", TestObjectV8Internal: :callWithExecutionContextAndScriptStateAnyAttributeAttributeGetterCallback, Test ObjectV8Internal::callWithExecutionContextAndScriptStateAnyAttributeAttributeSet terCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v 8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMC onfiguration::OnInstance}, 12157 {"callWithExecutionContextAndScriptStateAnyAttribute", TestObjectV8Internal: :callWithExecutionContextAndScriptStateAnyAttributeAttributeGetterCallback, Test ObjectV8Internal::callWithExecutionContextAndScriptStateAnyAttributeAttributeSet terCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v 8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMC onfiguration::OnInstance},
12141 {"checkSecurityForNodeReadonlyDocumentAttribute", TestObjectV8Internal::chec kSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback, 0, 0, 0, 0, st atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8 ::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance }, 12158 {"checkSecurityForNodeReadonlyDocumentAttribute", TestObjectV8Internal::chec kSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback, 0, 0, 0, 0, st atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8 ::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance },
12142 #if ENABLE(CONDITION) 12159 #if ENABLE(CONDITION)
12143 {"conditionalLongAttribute", TestObjectV8Internal::conditionalLongAttributeA ttributeGetterCallback, TestObjectV8Internal::conditionalLongAttributeAttributeS etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast <v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DO MConfiguration::OnInstance}, 12160 {"conditionalLongAttribute", TestObjectV8Internal::conditionalLongAttributeA ttributeGetterCallback, TestObjectV8Internal::conditionalLongAttributeAttributeS etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast <v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DO MConfiguration::OnInstance},
12144 #endif // ENABLE(CONDITION) 12161 #endif // ENABLE(CONDITION)
12145 {"testInterfaceEmptyConstructorAttribute", v8ConstructorAttributeGetterAsPro perty, TestObjectV8Internal::testInterfaceEmptyConstructorAttributeAttributeSett erCallback, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestInterfaceEmpty::wrapperTyp eInfo), static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAtt ribute>(v8::DontEnum), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati on::OnInstance}, 12162 {"testInterfaceEmptyConstructorAttribute", v8ConstructorAttributeGetter, Tes tObjectV8Internal::testInterfaceEmptyConstructorAttributeAttributeSetterCallback , 0, 0, const_cast<WrapperTypeInfo*>(&V8TestInterfaceEmpty::wrapperTypeInfo), st atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8 ::DontEnum), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInst ance},
12146 {"testInterfaceEmptyConstructorAttribute", TestObjectV8Internal::testInterfa ceEmptyConstructorAttributeConstructorGetterCallback, TestObjectV8Internal::test InterfaceEmptyConstructorAttributeAttributeSetterCallback, 0, 0, const_cast<Wrap perTypeInfo*>(&V8TestInterfaceEmpty::wrapperTypeInfo), static_cast<v8::AccessCon trol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfi guration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, 12163 {"testInterfaceEmptyConstructorAttribute", TestObjectV8Internal::testInterfa ceEmptyConstructorAttributeConstructorGetterCallback, TestObjectV8Internal::test InterfaceEmptyConstructorAttributeAttributeSetterCallback, 0, 0, const_cast<Wrap perTypeInfo*>(&V8TestInterfaceEmpty::wrapperTypeInfo), static_cast<v8::AccessCon trol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfi guration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
12147 {"measureAsFeatureNameTestInterfaceEmptyConstructorAttribute", TestObjectV8I nternal::measureAsFeatureNameTestInterfaceEmptyConstructorAttributeConstructorGe tterCallback, TestObjectV8Internal::measureAsFeatureNameTestInterfaceEmptyConstr uctorAttributeAttributeSetterCallback, 0, 0, const_cast<WrapperTypeInfo*>(&V8Tes tInterfaceEmpty::wrapperTypeInfo), static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::ExposedToA llScripts, V8DOMConfiguration::OnInstance}, 12164 {"measureAsFeatureNameTestInterfaceEmptyConstructorAttribute", TestObjectV8I nternal::measureAsFeatureNameTestInterfaceEmptyConstructorAttributeConstructorGe tterCallback, TestObjectV8Internal::measureAsFeatureNameTestInterfaceEmptyConstr uctorAttributeAttributeSetterCallback, 0, 0, const_cast<WrapperTypeInfo*>(&V8Tes tInterfaceEmpty::wrapperTypeInfo), static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::ExposedToA llScripts, V8DOMConfiguration::OnInstance},
12148 {"customObjectAttribute", TestObjectV8Internal::customObjectAttributeAttribu teGetterCallback, TestObjectV8Internal::customObjectAttributeAttributeSetterCall back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigur ation::OnInstance}, 12165 {"customObjectAttribute", TestObjectV8Internal::customObjectAttributeAttribu teGetterCallback, TestObjectV8Internal::customObjectAttributeAttributeSetterCall back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigur ation::OnInstance},
12149 {"customGetterLongAttribute", TestObjectV8Internal::customGetterLongAttribut eAttributeGetterCallback, TestObjectV8Internal::customGetterLongAttributeAttribu teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V 8DOMConfiguration::OnInstance}, 12166 {"customGetterLongAttribute", TestObjectV8Internal::customGetterLongAttribut eAttributeGetterCallback, TestObjectV8Internal::customGetterLongAttributeAttribu teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V 8DOMConfiguration::OnInstance},
12150 {"customGetterReadonlyObjectAttribute", TestObjectV8Internal::customGetterRe adonlyObjectAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Access Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfig uration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, 12167 {"customGetterReadonlyObjectAttribute", TestObjectV8Internal::customGetterRe adonlyObjectAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Access Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfig uration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
12151 {"customSetterLongAttribute", TestObjectV8Internal::customSetterLongAttribut eAttributeGetterCallback, TestObjectV8Internal::customSetterLongAttributeAttribu teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V 8DOMConfiguration::OnInstance}, 12168 {"customSetterLongAttribute", TestObjectV8Internal::customSetterLongAttribut eAttributeGetterCallback, TestObjectV8Internal::customSetterLongAttributeAttribu teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V 8DOMConfiguration::OnInstance},
12152 #if ENABLE(CONDITION) 12169 #if ENABLE(CONDITION)
12153 {"customLongAttribute", TestObjectV8Internal::customLongAttributeAttributeGe tterCallback, TestObjectV8Internal::customLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration: :OnInstance}, 12170 {"customLongAttribute", TestObjectV8Internal::customLongAttributeAttributeGe tterCallback, TestObjectV8Internal::customLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration: :OnInstance},
12154 #endif // ENABLE(CONDITION) 12171 #endif // ENABLE(CONDITION)
12155 {"customElementsCallbacksReadonlyLongAttribute", TestObjectV8Internal::custo mElementsCallbacksReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, stat ic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8:: None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, 12172 {"customElementsCallbacksReadonlyLongAttribute", TestObjectV8Internal::custo mElementsCallbacksReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, stat ic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8:: None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
(...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after
13156 return false; 13173 return false;
13157 13174
13158 ScriptState::Scope scope(scriptState); 13175 ScriptState::Scope scope(scriptState);
13159 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate()); 13176 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
13160 13177
13161 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 13178 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ;
13162 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue)); 13179 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue));
13163 } 13180 }
13164 13181
13165 } // namespace blink 13182 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/core/V8TestNode.cpp ('k') | Source/bindings/tests/results/core/V8TestSpecialOperations.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698