OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 972 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
983 } | 983 } |
984 | 984 |
985 static void limitedToOnlyOtherAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 985 static void limitedToOnlyOtherAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
986 { | 986 { |
987 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 987 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
988 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 988 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
989 TestObjV8Internal::limitedToOnlyOtherAttributeAttributeSetter(jsValue, info)
; | 989 TestObjV8Internal::limitedToOnlyOtherAttributeAttributeSetter(jsValue, info)
; |
990 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 990 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
991 } | 991 } |
992 | 992 |
| 993 static void limitedWithMissingDefaultAttributeAttributeGetter(const v8::Property
CallbackInfo<v8::Value>& info) |
| 994 { |
| 995 TestObj* imp = V8TestObject::toNative(info.Holder()); |
| 996 String resultValue = imp->fastGetAttribute(HTMLNames::limitedwithmissingdefa
ultattributeAttr); |
| 997 if (resultValue.isEmpty()) { |
| 998 resultValue = "rsa"; |
| 999 } else if (equalIgnoringCase(resultValue, "rsa")) { |
| 1000 resultValue = "rsa"; |
| 1001 } else if (equalIgnoringCase(resultValue, "dsa")) { |
| 1002 resultValue = "dsa"; |
| 1003 } else { |
| 1004 resultValue = ""; |
| 1005 } |
| 1006 v8SetReturnValueString(info, resultValue, info.GetIsolate()); |
| 1007 } |
| 1008 |
| 1009 static void limitedWithMissingDefaultAttributeAttributeGetterCallback(v8::Local<
v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1010 { |
| 1011 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1012 TestObjV8Internal::limitedWithMissingDefaultAttributeAttributeGetter(info); |
| 1013 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1014 } |
| 1015 |
| 1016 static void limitedWithMissingDefaultAttributeAttributeSetter(v8::Local<v8::Valu
e> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1017 { |
| 1018 TestObj* imp = V8TestObject::toNative(info.Holder()); |
| 1019 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
| 1020 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 1021 imp->setAttribute(HTMLNames::limitedwithmissingdefaultattributeAttr, cppValu
e); |
| 1022 } |
| 1023 |
| 1024 static void limitedWithMissingDefaultAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>&
info) |
| 1025 { |
| 1026 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1027 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 1028 TestObjV8Internal::limitedWithMissingDefaultAttributeAttributeSetter(jsValue
, info); |
| 1029 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1030 } |
| 1031 |
| 1032 static void limitedWithInvalidMissingDefaultAttributeAttributeGetter(const v8::P
ropertyCallbackInfo<v8::Value>& info) |
| 1033 { |
| 1034 TestObj* imp = V8TestObject::toNative(info.Holder()); |
| 1035 String resultValue = imp->fastGetAttribute(HTMLNames::limitedwithinvalidmiss
ingdefaultattributeAttr); |
| 1036 if (resultValue.isEmpty()) { |
| 1037 resultValue = "auto"; |
| 1038 } else if (equalIgnoringCase(resultValue, "ltr")) { |
| 1039 resultValue = "ltr"; |
| 1040 } else if (equalIgnoringCase(resultValue, "rtl")) { |
| 1041 resultValue = "rtl"; |
| 1042 } else if (equalIgnoringCase(resultValue, "auto")) { |
| 1043 resultValue = "auto"; |
| 1044 } else { |
| 1045 resultValue = "ltr"; |
| 1046 } |
| 1047 v8SetReturnValueString(info, resultValue, info.GetIsolate()); |
| 1048 } |
| 1049 |
| 1050 static void limitedWithInvalidMissingDefaultAttributeAttributeGetterCallback(v8:
:Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1051 { |
| 1052 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1053 TestObjV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeGetter(
info); |
| 1054 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1055 } |
| 1056 |
| 1057 static void limitedWithInvalidMissingDefaultAttributeAttributeSetter(v8::Local<v
8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1058 { |
| 1059 TestObj* imp = V8TestObject::toNative(info.Holder()); |
| 1060 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
| 1061 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 1062 imp->setAttribute(HTMLNames::limitedwithinvalidmissingdefaultattributeAttr,
cppValue); |
| 1063 } |
| 1064 |
| 1065 static void limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback(v8:
:Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo
<void>& info) |
| 1066 { |
| 1067 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1068 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 1069 TestObjV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeSetter(
jsValue, info); |
| 1070 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1071 } |
| 1072 |
| 1073 static void limitedWithInvalidAndMissingDefaultAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) |
| 1074 { |
| 1075 TestObj* imp = V8TestObject::toNative(info.Holder()); |
| 1076 String resultValue = imp->fastGetAttribute(HTMLNames::limitedwithinvalidandm
issingdefaultattributeAttr); |
| 1077 if (resultValue.isEmpty()) { |
| 1078 resultValue = "left"; |
| 1079 } else if (equalIgnoringCase(resultValue, "left")) { |
| 1080 resultValue = "left"; |
| 1081 } else if (equalIgnoringCase(resultValue, "right")) { |
| 1082 resultValue = "right"; |
| 1083 } else { |
| 1084 resultValue = "left"; |
| 1085 } |
| 1086 v8SetReturnValueString(info, resultValue, info.GetIsolate()); |
| 1087 } |
| 1088 |
| 1089 static void limitedWithInvalidAndMissingDefaultAttributeAttributeGetterCallback(
v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1090 { |
| 1091 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1092 TestObjV8Internal::limitedWithInvalidAndMissingDefaultAttributeAttributeGett
er(info); |
| 1093 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1094 } |
| 1095 |
| 1096 static void limitedWithInvalidAndMissingDefaultAttributeAttributeSetter(v8::Loca
l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1097 { |
| 1098 TestObj* imp = V8TestObject::toNative(info.Holder()); |
| 1099 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
| 1100 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 1101 imp->setAttribute(HTMLNames::limitedwithinvalidandmissingdefaultattributeAtt
r, cppValue); |
| 1102 } |
| 1103 |
| 1104 static void limitedWithInvalidAndMissingDefaultAttributeAttributeSetterCallback(
v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackI
nfo<void>& info) |
| 1105 { |
| 1106 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1107 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 1108 TestObjV8Internal::limitedWithInvalidAndMissingDefaultAttributeAttributeSett
er(jsValue, info); |
| 1109 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1110 } |
| 1111 |
993 static void typedArrayAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) | 1112 static void typedArrayAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) |
994 { | 1113 { |
995 TestObj* imp = V8TestObject::toNative(info.Holder()); | 1114 TestObj* imp = V8TestObject::toNative(info.Holder()); |
996 v8SetReturnValueFast(info, imp->typedArrayAttr(), imp); | 1115 v8SetReturnValueFast(info, imp->typedArrayAttr(), imp); |
997 } | 1116 } |
998 | 1117 |
999 static void typedArrayAttrAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) | 1118 static void typedArrayAttrAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) |
1000 { | 1119 { |
1001 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1120 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1002 TestObjV8Internal::typedArrayAttrAttributeGetter(info); | 1121 TestObjV8Internal::typedArrayAttrAttributeGetter(info); |
(...skipping 4248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5251 {"reflectedBooleanAttr", TestObjV8Internal::reflectedBooleanAttrAttributeGet
terCallback, TestObjV8Internal::reflectedBooleanAttrAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri
bute>(v8::None), 0 /* on instance */}, | 5370 {"reflectedBooleanAttr", TestObjV8Internal::reflectedBooleanAttrAttributeGet
terCallback, TestObjV8Internal::reflectedBooleanAttrAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri
bute>(v8::None), 0 /* on instance */}, |
5252 {"reflectedURLAttr", TestObjV8Internal::reflectedURLAttrAttributeGetterCallb
ack, TestObjV8Internal::reflectedURLAttrAttributeSetterCallback, 0, 0, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), 0 /* on instance */}, | 5371 {"reflectedURLAttr", TestObjV8Internal::reflectedURLAttrAttributeGetterCallb
ack, TestObjV8Internal::reflectedURLAttrAttributeSetterCallback, 0, 0, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), 0 /* on instance */}, |
5253 {"reflectedStringAttr", TestObjV8Internal::reflectedStringAttrAttributeGette
rCallback, TestObjV8Internal::reflectedStringAttrAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut
e>(v8::None), 0 /* on instance */}, | 5372 {"reflectedStringAttr", TestObjV8Internal::reflectedStringAttrAttributeGette
rCallback, TestObjV8Internal::reflectedStringAttrAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut
e>(v8::None), 0 /* on instance */}, |
5254 {"reflectedCustomIntegralAttr", TestObjV8Internal::reflectedCustomIntegralAt
trAttributeGetterCallback, TestObjV8Internal::reflectedCustomIntegralAttrAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 5373 {"reflectedCustomIntegralAttr", TestObjV8Internal::reflectedCustomIntegralAt
trAttributeGetterCallback, TestObjV8Internal::reflectedCustomIntegralAttrAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
5255 {"reflectedCustomBooleanAttr", TestObjV8Internal::reflectedCustomBooleanAttr
AttributeGetterCallback, TestObjV8Internal::reflectedCustomBooleanAttrAttributeS
etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast
<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 5374 {"reflectedCustomBooleanAttr", TestObjV8Internal::reflectedCustomBooleanAttr
AttributeGetterCallback, TestObjV8Internal::reflectedCustomBooleanAttrAttributeS
etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast
<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
5256 {"reflectedCustomURLAttr", TestObjV8Internal::reflectedCustomURLAttrAttribut
eGetterCallback, TestObjV8Internal::reflectedCustomURLAttrAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), 0 /* on instance */}, | 5375 {"reflectedCustomURLAttr", TestObjV8Internal::reflectedCustomURLAttrAttribut
eGetterCallback, TestObjV8Internal::reflectedCustomURLAttrAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), 0 /* on instance */}, |
5257 {"animatedReflectedAttribute", TestObjV8Internal::animatedReflectedAttribute
AttributeGetterCallback, TestObjV8Internal::animatedReflectedAttributeAttributeS
etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast
<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 5376 {"animatedReflectedAttribute", TestObjV8Internal::animatedReflectedAttribute
AttributeGetterCallback, TestObjV8Internal::animatedReflectedAttributeAttributeS
etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast
<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
5258 {"limitedToOnlyOneAttribute", TestObjV8Internal::limitedToOnlyOneAttributeAt
tributeGetterCallback, TestObjV8Internal::limitedToOnlyOneAttributeAttributeSett
erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8
::PropertyAttribute>(v8::None), 0 /* on instance */}, | 5377 {"limitedToOnlyOneAttribute", TestObjV8Internal::limitedToOnlyOneAttributeAt
tributeGetterCallback, TestObjV8Internal::limitedToOnlyOneAttributeAttributeSett
erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8
::PropertyAttribute>(v8::None), 0 /* on instance */}, |
5259 {"limitedToOnlyAttribute", TestObjV8Internal::limitedToOnlyAttributeAttribut
eGetterCallback, TestObjV8Internal::limitedToOnlyAttributeAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), 0 /* on instance */}, | 5378 {"limitedToOnlyAttribute", TestObjV8Internal::limitedToOnlyAttributeAttribut
eGetterCallback, TestObjV8Internal::limitedToOnlyAttributeAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), 0 /* on instance */}, |
5260 {"limitedToOnlyOtherAttribute", TestObjV8Internal::limitedToOnlyOtherAttribu
teAttributeGetterCallback, TestObjV8Internal::limitedToOnlyOtherAttributeAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 5379 {"limitedToOnlyOtherAttribute", TestObjV8Internal::limitedToOnlyOtherAttribu
teAttributeGetterCallback, TestObjV8Internal::limitedToOnlyOtherAttributeAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 5380 {"limitedWithMissingDefaultAttribute", TestObjV8Internal::limitedWithMissing
DefaultAttributeAttributeGetterCallback, TestObjV8Internal::limitedWithMissingDe
faultAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v
8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 5381 {"limitedWithInvalidMissingDefaultAttribute", TestObjV8Internal::limitedWith
InvalidMissingDefaultAttributeAttributeGetterCallback, TestObjV8Internal::limite
dWithInvalidMissingDefaultAttributeAttributeSetterCallback, 0, 0, 0, static_cast
<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None),
0 /* on instance */}, |
| 5382 {"limitedWithInvalidAndMissingDefaultAttribute", TestObjV8Internal::limitedW
ithInvalidAndMissingDefaultAttributeAttributeGetterCallback, TestObjV8Internal::
limitedWithInvalidAndMissingDefaultAttributeAttributeSetterCallback, 0, 0, 0, st
atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8
::None), 0 /* on instance */}, |
5261 {"typedArrayAttr", TestObjV8Internal::typedArrayAttrAttributeGetterCallback,
TestObjV8Internal::typedArrayAttrAttributeSetterCallback, 0, 0, 0, static_cast<
v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0
/* on instance */}, | 5383 {"typedArrayAttr", TestObjV8Internal::typedArrayAttrAttributeGetterCallback,
TestObjV8Internal::typedArrayAttrAttributeSetterCallback, 0, 0, 0, static_cast<
v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0
/* on instance */}, |
5262 {"attrWithGetterException", TestObjV8Internal::attrWithGetterExceptionAttrib
uteGetterCallback, TestObjV8Internal::attrWithGetterExceptionAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), 0 /* on instance */}, | 5384 {"attrWithGetterException", TestObjV8Internal::attrWithGetterExceptionAttrib
uteGetterCallback, TestObjV8Internal::attrWithGetterExceptionAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), 0 /* on instance */}, |
5263 {"attrWithSetterException", TestObjV8Internal::attrWithSetterExceptionAttrib
uteGetterCallback, TestObjV8Internal::attrWithSetterExceptionAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), 0 /* on instance */}, | 5385 {"attrWithSetterException", TestObjV8Internal::attrWithSetterExceptionAttrib
uteGetterCallback, TestObjV8Internal::attrWithSetterExceptionAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), 0 /* on instance */}, |
5264 {"stringAttrWithGetterException", TestObjV8Internal::stringAttrWithGetterExc
eptionAttributeGetterCallback, TestObjV8Internal::stringAttrWithGetterExceptionA
ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 5386 {"stringAttrWithGetterException", TestObjV8Internal::stringAttrWithGetterExc
eptionAttributeGetterCallback, TestObjV8Internal::stringAttrWithGetterExceptionA
ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
5265 {"stringAttrWithSetterException", TestObjV8Internal::stringAttrWithSetterExc
eptionAttributeGetterCallback, TestObjV8Internal::stringAttrWithSetterExceptionA
ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 5387 {"stringAttrWithSetterException", TestObjV8Internal::stringAttrWithSetterExc
eptionAttributeGetterCallback, TestObjV8Internal::stringAttrWithSetterExceptionA
ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
5266 {"customAttr", TestObjV8Internal::customAttrAttributeGetterCallback, TestObj
V8Internal::customAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCo
ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on insta
nce */}, | 5388 {"customAttr", TestObjV8Internal::customAttrAttributeGetterCallback, TestObj
V8Internal::customAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCo
ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on insta
nce */}, |
5267 {"withScriptStateAttribute", TestObjV8Internal::withScriptStateAttributeAttr
ibuteGetterCallback, TestObjV8Internal::withScriptStateAttributeAttributeSetterC
allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P
ropertyAttribute>(v8::None), 0 /* on instance */}, | 5389 {"withScriptStateAttribute", TestObjV8Internal::withScriptStateAttributeAttr
ibuteGetterCallback, TestObjV8Internal::withScriptStateAttributeAttributeSetterC
allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P
ropertyAttribute>(v8::None), 0 /* on instance */}, |
5268 {"withExecutionContextAttribute", TestObjV8Internal::withExecutionContextAtt
ributeAttributeGetterCallback, TestObjV8Internal::withExecutionContextAttributeA
ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 5390 {"withExecutionContextAttribute", TestObjV8Internal::withExecutionContextAtt
ributeAttributeGetterCallback, TestObjV8Internal::withExecutionContextAttributeA
ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
5269 {"withActiveWindowAndFirstWindowAttribute", TestObjV8Internal::withActiveWin
dowAndFirstWindowAttributeAttributeGetterCallback, TestObjV8Internal::withActive
WindowAndFirstWindowAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::A
ccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* o
n instance */}, | 5391 {"withActiveWindowAndFirstWindowAttribute", TestObjV8Internal::withActiveWin
dowAndFirstWindowAttributeAttributeGetterCallback, TestObjV8Internal::withActive
WindowAndFirstWindowAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::A
ccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* o
n instance */}, |
5270 {"withScriptStateAttributeRaises", TestObjV8Internal::withScriptStateAttribu
teRaisesAttributeGetterCallback, TestObjV8Internal::withScriptStateAttributeRais
esAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT),
static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 5392 {"withScriptStateAttributeRaises", TestObjV8Internal::withScriptStateAttribu
teRaisesAttributeGetterCallback, TestObjV8Internal::withScriptStateAttributeRais
esAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT),
static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5563 fromInternalPointer(object)->deref(); | 5685 fromInternalPointer(object)->deref(); |
5564 } | 5686 } |
5565 | 5687 |
5566 template<> | 5688 template<> |
5567 v8::Handle<v8::Value> toV8NoInline(TestObj* impl, v8::Handle<v8::Object> creatio
nContext, v8::Isolate* isolate) | 5689 v8::Handle<v8::Value> toV8NoInline(TestObj* impl, v8::Handle<v8::Object> creatio
nContext, v8::Isolate* isolate) |
5568 { | 5690 { |
5569 return toV8(impl, creationContext, isolate); | 5691 return toV8(impl, creationContext, isolate); |
5570 } | 5692 } |
5571 | 5693 |
5572 } // namespace WebCore | 5694 } // namespace WebCore |
OLD | NEW |