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

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

Issue 337373002: Add [TreatReturnedNullStringAs] support for ByteString. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add test Created 6 years, 6 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
« no previous file with comments | « Source/bindings/tests/idls/TestObject.idl ('k') | Source/core/testing/TypeConversions.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "HTMLNames.h" 10 #include "HTMLNames.h"
(...skipping 4094 matching lines...) Expand 10 before | Expand all | Expand 10 after
4105 impl->setTreatReturnedNullStringAsUndefinedStringAttribute(cppValue); 4105 impl->setTreatReturnedNullStringAsUndefinedStringAttribute(cppValue);
4106 } 4106 }
4107 4107
4108 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetterCall back(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCall backInfo<void>& info) 4108 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetterCall back(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCall backInfo<void>& info)
4109 { 4109 {
4110 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 4110 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
4111 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri buteSetter(v8Value, info); 4111 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri buteSetter(v8Value, info);
4112 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4112 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4113 } 4113 }
4114 4114
4115 static void treatReturnedNullStringAsNullByteStringAttributeAttributeGetter(cons t v8::PropertyCallbackInfo<v8::Value>& info)
4116 {
4117 v8::Handle<v8::Object> holder = info.Holder();
4118 TestObject* impl = V8TestObject::toNative(holder);
4119 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullByteSt ringAttribute(), info.GetIsolate());
4120 }
4121
4122 static void treatReturnedNullStringAsNullByteStringAttributeAttributeGetterCallb ack(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
4123 {
4124 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
4125 TestObjectV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttrib uteGetter(info);
4126 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4127 }
4128
4129 static void treatReturnedNullStringAsNullByteStringAttributeAttributeSetter(v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4130 {
4131 v8::Handle<v8::Object> holder = info.Holder();
4132 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN ullStringAsNullByteStringAttribute", "TestObject", holder, info.GetIsolate());
4133 TestObject* impl = V8TestObject::toNative(holder);
4134 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toByteString(v8Va lue, exceptionState), exceptionState);
4135 impl->setTreatReturnedNullStringAsNullByteStringAttribute(cppValue);
4136 }
4137
4138 static void treatReturnedNullStringAsNullByteStringAttributeAttributeSetterCallb ack(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info)
4139 {
4140 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
4141 TestObjectV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttrib uteSetter(v8Value, info);
4142 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4143 }
4144
4145 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetter (const v8::PropertyCallbackInfo<v8::Value>& info)
4146 {
4147 v8::Handle<v8::Object> holder = info.Holder();
4148 TestObject* impl = V8TestObject::toNative(holder);
4149 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef inedByteStringAttribute(), info.GetIsolate());
4150 }
4151
4152 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetter Callback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
4153 {
4154 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
4155 TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeA ttributeGetter(info);
4156 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4157 }
4158
4159 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeSetter (v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4160 {
4161 v8::Handle<v8::Object> holder = info.Holder();
4162 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN ullStringAsUndefinedByteStringAttribute", "TestObject", holder, info.GetIsolate( ));
4163 TestObject* impl = V8TestObject::toNative(holder);
4164 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toByteString(v8Va lue, exceptionState), exceptionState);
4165 impl->setTreatReturnedNullStringAsUndefinedByteStringAttribute(cppValue);
4166 }
4167
4168 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeSetter Callback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::Property CallbackInfo<void>& info)
4169 {
4170 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
4171 TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeA ttributeSetter(v8Value, info);
4172 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4173 }
4174
4115 static void typeCheckingInterfaceNullableStringFloatAttributeAttributeGetter(con st v8::PropertyCallbackInfo<v8::Value>& info) 4175 static void typeCheckingInterfaceNullableStringFloatAttributeAttributeGetter(con st v8::PropertyCallbackInfo<v8::Value>& info)
4116 { 4176 {
4117 v8::Handle<v8::Object> holder = info.Holder(); 4177 v8::Handle<v8::Object> holder = info.Holder();
4118 TestObject* impl = V8TestObject::toNative(holder); 4178 TestObject* impl = V8TestObject::toNative(holder);
4119 v8SetReturnValue(info, impl->typeCheckingInterfaceNullableStringFloatAttribu te()); 4179 v8SetReturnValue(info, impl->typeCheckingInterfaceNullableStringFloatAttribu te());
4120 } 4180 }
4121 4181
4122 static void typeCheckingInterfaceNullableStringFloatAttributeAttributeGetterCall back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4182 static void typeCheckingInterfaceNullableStringFloatAttributeAttributeGetterCall back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
4123 { 4183 {
4124 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 4184 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
(...skipping 4964 matching lines...) Expand 10 before | Expand all | Expand 10 after
9089 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef inedStringMethod(), info.GetIsolate()); 9149 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef inedStringMethod(), info.GetIsolate());
9090 } 9150 }
9091 9151
9092 static void treatReturnedNullStringAsUndefinedStringMethodMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info) 9152 static void treatReturnedNullStringAsUndefinedStringMethodMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info)
9093 { 9153 {
9094 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 9154 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
9095 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringMethodMethod(i nfo); 9155 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringMethodMethod(i nfo);
9096 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 9156 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
9097 } 9157 }
9098 9158
9159 static void treatReturnedNullStringAsNullByteStringMethodMethod(const v8::Functi onCallbackInfo<v8::Value>& info)
9160 {
9161 TestObject* impl = V8TestObject::toNative(info.Holder());
9162 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullByteSt ringMethod(), info.GetIsolate());
9163 }
9164
9165 static void treatReturnedNullStringAsNullByteStringMethodMethodCallback(const v8 ::FunctionCallbackInfo<v8::Value>& info)
9166 {
9167 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
9168 TestObjectV8Internal::treatReturnedNullStringAsNullByteStringMethodMethod(in fo);
9169 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
9170 }
9171
9172 static void treatReturnedNullStringAsUndefinedByteStringMethodMethod(const v8::F unctionCallbackInfo<v8::Value>& info)
9173 {
9174 TestObject* impl = V8TestObject::toNative(info.Holder());
9175 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef inedByteStringMethod(), info.GetIsolate());
9176 }
9177
9178 static void treatReturnedNullStringAsUndefinedByteStringMethodMethodCallback(con st v8::FunctionCallbackInfo<v8::Value>& info)
9179 {
9180 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
9181 TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringMethodMeth od(info);
9182 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
9183 }
9184
9099 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethod(const v8: :FunctionCallbackInfo<v8::Value>& info) 9185 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethod(const v8: :FunctionCallbackInfo<v8::Value>& info)
9100 { 9186 {
9101 if (UNLIKELY(info.Length() < 1)) { 9187 if (UNLIKELY(info.Length() < 1)) {
9102 throwMinimumArityTypeErrorForMethod("typeCheckingInterfaceVoidMethodTest InterfaceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate()); 9188 throwMinimumArityTypeErrorForMethod("typeCheckingInterfaceVoidMethodTest InterfaceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate());
9103 return; 9189 return;
9104 } 9190 }
9105 TestObject* impl = V8TestObject::toNative(info.Holder()); 9191 TestObject* impl = V8TestObject::toNative(info.Holder());
9106 TestInterfaceEmpty* testInterfaceEmptyArg; 9192 TestInterfaceEmpty* testInterfaceEmptyArg;
9107 { 9193 {
9108 v8::TryCatch block; 9194 v8::TryCatch block;
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
9442 {"limitedWithInvalidMissingDefaultAttribute", TestObjectV8Internal::limitedW ithInvalidMissingDefaultAttributeAttributeGetterCallback, TestObjectV8Internal:: limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback, 0, 0, 0, stati c_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::N one), 0 /* on instance */}, 9528 {"limitedWithInvalidMissingDefaultAttribute", TestObjectV8Internal::limitedW ithInvalidMissingDefaultAttributeAttributeGetterCallback, TestObjectV8Internal:: limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback, 0, 0, 0, stati c_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::N one), 0 /* on instance */},
9443 {"corsSettingAttribute", TestObjectV8Internal::corsSettingAttributeAttribute GetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_ cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 9529 {"corsSettingAttribute", TestObjectV8Internal::corsSettingAttributeAttribute GetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_ cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
9444 {"limitedWithEmptyMissingInvalidAttribute", TestObjectV8Internal::limitedWit hEmptyMissingInvalidAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8 ::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 / * on instance */}, 9530 {"limitedWithEmptyMissingInvalidAttribute", TestObjectV8Internal::limitedWit hEmptyMissingInvalidAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8 ::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 / * on instance */},
9445 {"replaceableReadonlyLongAttribute", TestObjectV8Internal::replaceableReadon lyLongAttributeAttributeGetterCallback, TestObjectV8Internal::TestObjectReplacea bleAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT) , static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 9531 {"replaceableReadonlyLongAttribute", TestObjectV8Internal::replaceableReadon lyLongAttributeAttributeGetterCallback, TestObjectV8Internal::TestObjectReplacea bleAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT) , static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
9446 {"locationReplaceable", TestObjectV8Internal::locationReplaceableAttributeGe tterCallback, TestObjectV8Internal::locationReplaceableAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), 0 /* on instance */}, 9532 {"locationReplaceable", TestObjectV8Internal::locationReplaceableAttributeGe tterCallback, TestObjectV8Internal::locationReplaceableAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), 0 /* on instance */},
9447 {"setterCallWithActiveWindowAndFirstWindowStringAttribute", TestObjectV8Inte rnal::setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGetterCall back, TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttrib uteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT) , static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 9533 {"setterCallWithActiveWindowAndFirstWindowStringAttribute", TestObjectV8Inte rnal::setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGetterCall back, TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttrib uteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT) , static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
9448 {"setterCallWithExecutionContextStringAttribute", TestObjectV8Internal::sett erCallWithExecutionContextStringAttributeAttributeGetterCallback, TestObjectV8In ternal::setterCallWithExecutionContextStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttr ibute>(v8::None), 0 /* on instance */}, 9534 {"setterCallWithExecutionContextStringAttribute", TestObjectV8Internal::sett erCallWithExecutionContextStringAttributeAttributeGetterCallback, TestObjectV8In ternal::setterCallWithExecutionContextStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttr ibute>(v8::None), 0 /* on instance */},
9449 {"treatNullAsNullStringStringAttribute", TestObjectV8Internal::treatNullAsNu llStringStringAttributeAttributeGetterCallback, TestObjectV8Internal::treatNullA sNullStringStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acce ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i nstance */}, 9535 {"treatNullAsNullStringStringAttribute", TestObjectV8Internal::treatNullAsNu llStringStringAttributeAttributeGetterCallback, TestObjectV8Internal::treatNullA sNullStringStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acce ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i nstance */},
9450 {"treatReturnedNullStringAsNullStringAttribute", TestObjectV8Internal::treat ReturnedNullStringAsNullStringAttributeAttributeGetterCallback, TestObjectV8Inte rnal::treatReturnedNullStringAsNullStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu te>(v8::None), 0 /* on instance */}, 9536 {"treatReturnedNullStringAsNullStringAttribute", TestObjectV8Internal::treat ReturnedNullStringAsNullStringAttributeAttributeGetterCallback, TestObjectV8Inte rnal::treatReturnedNullStringAsNullStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu te>(v8::None), 0 /* on instance */},
9451 {"treatReturnedNullStringAsUndefinedStringAttribute", TestObjectV8Internal:: treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCallback, TestOb jectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter Callback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8:: PropertyAttribute>(v8::None), 0 /* on instance */}, 9537 {"treatReturnedNullStringAsUndefinedStringAttribute", TestObjectV8Internal:: treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCallback, TestOb jectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter Callback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8:: PropertyAttribute>(v8::None), 0 /* on instance */},
9538 {"treatReturnedNullStringAsNullByteStringAttribute", TestObjectV8Internal::t reatReturnedNullStringAsNullByteStringAttributeAttributeGetterCallback, TestObje ctV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttributeSetterCal lback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pro pertyAttribute>(v8::None), 0 /* on instance */},
9539 {"treatReturnedNullStringAsUndefinedByteStringAttribute", TestObjectV8Intern al::treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetterCallback , TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeAtt ributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stat ic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
9452 {"typeCheckingInterfaceNullableStringFloatAttribute", TestObjectV8Internal:: typeCheckingInterfaceNullableStringFloatAttributeAttributeGetterCallback, TestOb jectV8Internal::typeCheckingInterfaceNullableStringFloatAttributeAttributeSetter Callback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8:: PropertyAttribute>(v8::None), 0 /* on instance */}, 9540 {"typeCheckingInterfaceNullableStringFloatAttribute", TestObjectV8Internal:: typeCheckingInterfaceNullableStringFloatAttributeAttributeGetterCallback, TestOb jectV8Internal::typeCheckingInterfaceNullableStringFloatAttributeAttributeSetter Callback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8:: PropertyAttribute>(v8::None), 0 /* on instance */},
9453 {"typeCheckingInterfaceTestInterfaceAttribute", TestObjectV8Internal::typeCh eckingInterfaceTestInterfaceAttributeAttributeGetterCallback, TestObjectV8Intern al::typeCheckingInterfaceTestInterfaceAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute> (v8::None), 0 /* on instance */}, 9541 {"typeCheckingInterfaceTestInterfaceAttribute", TestObjectV8Internal::typeCh eckingInterfaceTestInterfaceAttributeAttributeGetterCallback, TestObjectV8Intern al::typeCheckingInterfaceTestInterfaceAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute> (v8::None), 0 /* on instance */},
9454 {"typeCheckingNullableTestInterfaceOrNullAttribute", TestObjectV8Internal::t ypeCheckingNullableTestInterfaceOrNullAttributeAttributeGetterCallback, TestObje ctV8Internal::typeCheckingNullableTestInterfaceOrNullAttributeAttributeSetterCal lback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pro pertyAttribute>(v8::None), 0 /* on instance */}, 9542 {"typeCheckingNullableTestInterfaceOrNullAttribute", TestObjectV8Internal::t ypeCheckingNullableTestInterfaceOrNullAttributeAttributeGetterCallback, TestObje ctV8Internal::typeCheckingNullableTestInterfaceOrNullAttributeAttributeSetterCal lback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pro pertyAttribute>(v8::None), 0 /* on instance */},
9455 {"typeCheckingInterfaceNullableTestInterfaceOrNullAttribute", TestObjectV8In ternal::typeCheckingInterfaceNullableTestInterfaceOrNullAttributeAttributeGetter Callback, TestObjectV8Internal::typeCheckingInterfaceNullableTestInterfaceOrNull AttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DE FAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 9543 {"typeCheckingInterfaceNullableTestInterfaceOrNullAttribute", TestObjectV8In ternal::typeCheckingInterfaceNullableTestInterfaceOrNullAttributeAttributeGetter Callback, TestObjectV8Internal::typeCheckingInterfaceNullableTestInterfaceOrNull AttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DE FAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
9456 {"urlStringAttribute", TestObjectV8Internal::urlStringAttributeAttributeGett erCallback, TestObjectV8Internal::urlStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri bute>(v8::None), 0 /* on instance */}, 9544 {"urlStringAttribute", TestObjectV8Internal::urlStringAttributeAttributeGett erCallback, TestObjectV8Internal::urlStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri bute>(v8::None), 0 /* on instance */},
9457 {"urlStringAttribute", TestObjectV8Internal::urlStringAttributeAttributeGett erCallback, TestObjectV8Internal::urlStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri bute>(v8::None), 0 /* on instance */}, 9545 {"urlStringAttribute", TestObjectV8Internal::urlStringAttributeAttributeGett erCallback, TestObjectV8Internal::urlStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri bute>(v8::None), 0 /* on instance */},
9458 {"unforgeableLongAttribute", TestObjectV8Internal::unforgeableLongAttributeA ttributeGetterCallback, TestObjectV8Internal::unforgeableLongAttributeAttributeS etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::PROHIBITS_OVERWRITING ), static_cast<v8::PropertyAttribute>(v8::DontDelete), 0 /* on instance */}, 9546 {"unforgeableLongAttribute", TestObjectV8Internal::unforgeableLongAttributeA ttributeGetterCallback, TestObjectV8Internal::unforgeableLongAttributeAttributeS etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::PROHIBITS_OVERWRITING ), static_cast<v8::PropertyAttribute>(v8::DontDelete), 0 /* on instance */},
9459 {"activityLoggingSetterOnlyLogPreviousValueAttribute", TestObjectV8Internal: :activityLoggingSetterOnlyLogPreviousValueAttributeAttributeGetterCallback, Test ObjectV8Internal::activityLoggingSetterOnlyLogPreviousValueAttributeAttributeSet terCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v 8::PropertyAttribute>(v8::None), 0 /* on instance */}, 9547 {"activityLoggingSetterOnlyLogPreviousValueAttribute", TestObjectV8Internal: :activityLoggingSetterOnlyLogPreviousValueAttributeAttributeGetterCallback, Test ObjectV8Internal::activityLoggingSetterOnlyLogPreviousValueAttributeAttributeSet terCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v 8::PropertyAttribute>(v8::None), 0 /* on instance */},
9460 {"activityLoggingLogPreviousValueInterfaceAttribute", TestObjectV8Internal:: activityLoggingLogPreviousValueInterfaceAttributeAttributeGetterCallback, TestOb jectV8Internal::activityLoggingLogPreviousValueInterfaceAttributeAttributeSetter Callback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8:: PropertyAttribute>(v8::None), 0 /* on instance */}, 9548 {"activityLoggingLogPreviousValueInterfaceAttribute", TestObjectV8Internal:: activityLoggingLogPreviousValueInterfaceAttributeAttributeGetterCallback, TestOb jectV8Internal::activityLoggingLogPreviousValueInterfaceAttributeAttributeSetter Callback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8:: PropertyAttribute>(v8::None), 0 /* on instance */},
9461 {"testInterfaceAttribute", TestObjectV8Internal::testInterfaceAttributeAttri buteGetterCallback, TestObjectV8Internal::testInterfaceAttributeAttributeSetterC allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P ropertyAttribute>(v8::None), 0 /* on instance */}, 9549 {"testInterfaceAttribute", TestObjectV8Internal::testInterfaceAttributeAttri buteGetterCallback, TestObjectV8Internal::testInterfaceAttributeAttributeSetterC allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P ropertyAttribute>(v8::None), 0 /* on instance */},
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
9642 {"raisesExceptionVoidMethod", TestObjectV8Internal::raisesExceptionVoidMetho dMethodCallback, 0, 0}, 9730 {"raisesExceptionVoidMethod", TestObjectV8Internal::raisesExceptionVoidMetho dMethodCallback, 0, 0},
9643 {"raisesExceptionStringMethod", TestObjectV8Internal::raisesExceptionStringM ethodMethodCallback, 0, 0}, 9731 {"raisesExceptionStringMethod", TestObjectV8Internal::raisesExceptionStringM ethodMethodCallback, 0, 0},
9644 {"raisesExceptionVoidMethodOptionalLongArg", TestObjectV8Internal::raisesExc eptionVoidMethodOptionalLongArgMethodCallback, 0, 0}, 9732 {"raisesExceptionVoidMethodOptionalLongArg", TestObjectV8Internal::raisesExc eptionVoidMethodOptionalLongArgMethodCallback, 0, 0},
9645 {"raisesExceptionVoidMethodTestCallbackInterfaceArg", TestObjectV8Internal:: raisesExceptionVoidMethodTestCallbackInterfaceArgMethodCallback, 0, 1}, 9733 {"raisesExceptionVoidMethodTestCallbackInterfaceArg", TestObjectV8Internal:: raisesExceptionVoidMethodTestCallbackInterfaceArgMethodCallback, 0, 1},
9646 {"raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg", TestObjectV8In ternal::raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethodCallback, 0, 0}, 9734 {"raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg", TestObjectV8In ternal::raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethodCallback, 0, 0},
9647 {"raisesExceptionTestInterfaceEmptyVoidMethod", TestObjectV8Internal::raises ExceptionTestInterfaceEmptyVoidMethodMethodCallback, 0, 0}, 9735 {"raisesExceptionTestInterfaceEmptyVoidMethod", TestObjectV8Internal::raises ExceptionTestInterfaceEmptyVoidMethodMethodCallback, 0, 0},
9648 {"callWithExecutionContextRaisesExceptionVoidMethodLongArg", TestObjectV8Int ernal::callWithExecutionContextRaisesExceptionVoidMethodLongArgMethodCallback, 0 , 1}, 9736 {"callWithExecutionContextRaisesExceptionVoidMethodLongArg", TestObjectV8Int ernal::callWithExecutionContextRaisesExceptionVoidMethodLongArgMethodCallback, 0 , 1},
9649 {"partiallyRuntimeEnabledOverloadedVoidMethod", TestObjectV8Internal::partia llyRuntimeEnabledOverloadedVoidMethodMethodCallback, 0, 1}, 9737 {"partiallyRuntimeEnabledOverloadedVoidMethod", TestObjectV8Internal::partia llyRuntimeEnabledOverloadedVoidMethodMethodCallback, 0, 1},
9650 {"treatReturnedNullStringAsNullStringMethod", TestObjectV8Internal::treatRet urnedNullStringAsNullStringMethodMethodCallback, 0, 0}, 9738 {"treatReturnedNullStringAsNullStringMethod", TestObjectV8Internal::treatRet urnedNullStringAsNullStringMethodMethodCallback, 0, 0},
9651 {"treatReturnedNullStringAsUndefinedStringMethod", TestObjectV8Internal::tre atReturnedNullStringAsUndefinedStringMethodMethodCallback, 0, 0}, 9739 {"treatReturnedNullStringAsUndefinedStringMethod", TestObjectV8Internal::tre atReturnedNullStringAsUndefinedStringMethodMethodCallback, 0, 0},
9740 {"treatReturnedNullStringAsNullByteStringMethod", TestObjectV8Internal::trea tReturnedNullStringAsNullByteStringMethodMethodCallback, 0, 0},
9741 {"treatReturnedNullStringAsUndefinedByteStringMethod", TestObjectV8Internal: :treatReturnedNullStringAsUndefinedByteStringMethodMethodCallback, 0, 0},
9652 {"typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg", TestObjectV8Interna l::typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethodCallback, 0, 1}, 9742 {"typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg", TestObjectV8Interna l::typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethodCallback, 0, 1},
9653 {"typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArg", TestObjectV8In ternal::typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArgMethodCallback, 0, 1}, 9743 {"typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArg", TestObjectV8In ternal::typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArgMethodCallback, 0, 1},
9654 {"typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArg", TestO bjectV8Internal::typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNull ArgMethodCallback, 0, 1}, 9744 {"typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArg", TestO bjectV8Internal::typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNull ArgMethodCallback, 0, 1},
9655 {"typeCheckingUnrestrictedVoidMethodFloatArgDoubleArg", TestObjectV8Internal ::typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethodCallback, 0, 2}, 9745 {"typeCheckingUnrestrictedVoidMethodFloatArgDoubleArg", TestObjectV8Internal ::typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethodCallback, 0, 2},
9656 {"voidMethodTestInterfaceGarbageCollectedSequenceArg", TestObjectV8Internal: :voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback, 0, 1}, 9746 {"voidMethodTestInterfaceGarbageCollectedSequenceArg", TestObjectV8Internal: :voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback, 0, 1},
9657 {"voidMethodTestInterfaceGarbageCollectedArrayArg", TestObjectV8Internal::vo idMethodTestInterfaceGarbageCollectedArrayArgMethodCallback, 0, 1}, 9747 {"voidMethodTestInterfaceGarbageCollectedArrayArg", TestObjectV8Internal::vo idMethodTestInterfaceGarbageCollectedArrayArgMethodCallback, 0, 1},
9658 {"voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg", TestObjectV8Int ernal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallback, 0 , 1}, 9748 {"voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg", TestObjectV8Int ernal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallback, 0 , 1},
9659 {"voidMethodTestInterfaceWillBeGarbageCollectedArrayArg", TestObjectV8Intern al::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback, 0, 1}, 9749 {"voidMethodTestInterfaceWillBeGarbageCollectedArrayArg", TestObjectV8Intern al::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback, 0, 1},
9660 }; 9750 };
9661 9751
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
9831 fromInternalPointer(object)->deref(); 9921 fromInternalPointer(object)->deref();
9832 } 9922 }
9833 9923
9834 template<> 9924 template<>
9835 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate) 9925 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate)
9836 { 9926 {
9837 return toV8(impl, creationContext, isolate); 9927 return toV8(impl, creationContext, isolate);
9838 } 9928 }
9839 9929
9840 } // namespace WebCore 9930 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/idls/TestObject.idl ('k') | Source/core/testing/TypeConversions.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698