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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 #include "core/dom/ContextFeatures.h" | 66 #include "core/dom/ContextFeatures.h" |
67 #include "core/dom/Document.h" | 67 #include "core/dom/Document.h" |
68 #include "core/dom/custom/CustomElementCallbackDispatcher.h" | 68 #include "core/dom/custom/CustomElementCallbackDispatcher.h" |
69 #include "core/frame/DOMWindow.h" | 69 #include "core/frame/DOMWindow.h" |
70 #include "core/frame/UseCounter.h" | 70 #include "core/frame/UseCounter.h" |
71 #include "core/svg/properties/SVGPropertyTearOff.h" | 71 #include "core/svg/properties/SVGPropertyTearOff.h" |
72 #include "core/svg/properties/SVGStaticPropertyTearOff.h" | 72 #include "core/svg/properties/SVGStaticPropertyTearOff.h" |
73 #include "platform/TraceEvent.h" | 73 #include "platform/TraceEvent.h" |
74 #include "wtf/GetPtr.h" | 74 #include "wtf/GetPtr.h" |
75 #include "wtf/RefPtr.h" | 75 #include "wtf/RefPtr.h" |
| 76 #include "wtf/text/WTFString.h" |
76 | 77 |
77 namespace WebCore { | 78 namespace WebCore { |
78 | 79 |
79 static void initializeScriptWrappableForInterface(TestObj* object) | 80 static void initializeScriptWrappableForInterface(TestObj* object) |
80 { | 81 { |
81 if (ScriptWrappable::wrapperCanBeStoredInObject(object)) | 82 if (ScriptWrappable::wrapperCanBeStoredInObject(object)) |
82 ScriptWrappable::setTypeInfoInObject(object, &V8TestObject::wrapperTypeI
nfo); | 83 ScriptWrappable::setTypeInfoInObject(object, &V8TestObject::wrapperTypeI
nfo); |
83 else | 84 else |
84 ASSERT_NOT_REACHED(); | 85 ASSERT_NOT_REACHED(); |
85 } | 86 } |
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
866 } | 867 } |
867 | 868 |
868 static void animatedReflectedAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 869 static void animatedReflectedAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
869 { | 870 { |
870 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 871 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
871 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 872 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
872 TestObjV8Internal::animatedReflectedAttributeAttributeSetter(jsValue, info); | 873 TestObjV8Internal::animatedReflectedAttributeAttributeSetter(jsValue, info); |
873 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 874 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
874 } | 875 } |
875 | 876 |
| 877 static void limitedToOnlyOneAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) |
| 878 { |
| 879 TestObj* imp = V8TestObject::toNative(info.Holder()); |
| 880 String resultValue = imp->fastGetAttribute(HTMLNames::limitedtoonlyoneattrib
uteAttr); |
| 881 if (!resultValue.isEmpty()) { |
| 882 if (equalIgnoringCase(resultValue, "unique")) { |
| 883 resultValue = "unique"; |
| 884 } else { |
| 885 resultValue = ""; |
| 886 } |
| 887 } |
| 888 v8SetReturnValueString(info, resultValue, info.GetIsolate()); |
| 889 } |
| 890 |
| 891 static void limitedToOnlyOneAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 892 { |
| 893 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 894 TestObjV8Internal::limitedToOnlyOneAttributeAttributeGetter(info); |
| 895 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 896 } |
| 897 |
| 898 static void limitedToOnlyOneAttributeAttributeSetter(v8::Local<v8::Value> jsValu
e, const v8::PropertyCallbackInfo<void>& info) |
| 899 { |
| 900 TestObj* imp = V8TestObject::toNative(info.Holder()); |
| 901 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
| 902 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 903 imp->setAttribute(HTMLNames::limitedtoonlyoneattributeAttr, cppValue); |
| 904 } |
| 905 |
| 906 static void limitedToOnlyOneAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 907 { |
| 908 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 909 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 910 TestObjV8Internal::limitedToOnlyOneAttributeAttributeSetter(jsValue, info); |
| 911 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 912 } |
| 913 |
| 914 static void limitedToOnlyAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) |
| 915 { |
| 916 TestObj* imp = V8TestObject::toNative(info.Holder()); |
| 917 String resultValue = imp->fastGetAttribute(HTMLNames::limitedtoonlyattribute
Attr); |
| 918 if (!resultValue.isEmpty()) { |
| 919 if (equalIgnoringCase(resultValue, "Per")) { |
| 920 resultValue = "Per"; |
| 921 } else if (equalIgnoringCase(resultValue, "Paal")) { |
| 922 resultValue = "Paal"; |
| 923 } else if (equalIgnoringCase(resultValue, "Espen")) { |
| 924 resultValue = "Espen"; |
| 925 } else { |
| 926 resultValue = ""; |
| 927 } |
| 928 } |
| 929 v8SetReturnValueString(info, resultValue, info.GetIsolate()); |
| 930 } |
| 931 |
| 932 static void limitedToOnlyAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
| 933 { |
| 934 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 935 TestObjV8Internal::limitedToOnlyAttributeAttributeGetter(info); |
| 936 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 937 } |
| 938 |
| 939 static void limitedToOnlyAttributeAttributeSetter(v8::Local<v8::Value> jsValue,
const v8::PropertyCallbackInfo<void>& info) |
| 940 { |
| 941 TestObj* imp = V8TestObject::toNative(info.Holder()); |
| 942 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
| 943 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 944 imp->setAttribute(HTMLNames::limitedtoonlyattributeAttr, cppValue); |
| 945 } |
| 946 |
| 947 static void limitedToOnlyAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 948 { |
| 949 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 950 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 951 TestObjV8Internal::limitedToOnlyAttributeAttributeSetter(jsValue, info); |
| 952 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 953 } |
| 954 |
| 955 static void limitedToOnlyOtherAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) |
| 956 { |
| 957 TestObj* imp = V8TestObject::toNative(info.Holder()); |
| 958 String resultValue = imp->fastGetAttribute(HTMLNames::OtherAttr); |
| 959 if (!resultValue.isEmpty()) { |
| 960 if (equalIgnoringCase(resultValue, "Value1")) { |
| 961 resultValue = "Value1"; |
| 962 } else if (equalIgnoringCase(resultValue, "Value2")) { |
| 963 resultValue = "Value2"; |
| 964 } else { |
| 965 resultValue = ""; |
| 966 } |
| 967 } |
| 968 v8SetReturnValueString(info, resultValue, info.GetIsolate()); |
| 969 } |
| 970 |
| 971 static void limitedToOnlyOtherAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 972 { |
| 973 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 974 TestObjV8Internal::limitedToOnlyOtherAttributeAttributeGetter(info); |
| 975 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 976 } |
| 977 |
| 978 static void limitedToOnlyOtherAttributeAttributeSetter(v8::Local<v8::Value> jsVa
lue, const v8::PropertyCallbackInfo<void>& info) |
| 979 { |
| 980 TestObj* imp = V8TestObject::toNative(info.Holder()); |
| 981 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
| 982 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 983 imp->setAttribute(HTMLNames::OtherAttr, cppValue); |
| 984 } |
| 985 |
| 986 static void limitedToOnlyOtherAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 987 { |
| 988 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 989 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 990 TestObjV8Internal::limitedToOnlyOtherAttributeAttributeSetter(jsValue, info)
; |
| 991 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 992 } |
| 993 |
876 static void typedArrayAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) | 994 static void typedArrayAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) |
877 { | 995 { |
878 TestObj* imp = V8TestObject::toNative(info.Holder()); | 996 TestObj* imp = V8TestObject::toNative(info.Holder()); |
879 v8SetReturnValueFast(info, imp->typedArrayAttr(), imp); | 997 v8SetReturnValueFast(info, imp->typedArrayAttr(), imp); |
880 } | 998 } |
881 | 999 |
882 static void typedArrayAttrAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) | 1000 static void typedArrayAttrAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) |
883 { | 1001 { |
884 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1002 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
885 TestObjV8Internal::typedArrayAttrAttributeGetter(info); | 1003 TestObjV8Internal::typedArrayAttrAttributeGetter(info); |
(...skipping 4245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5131 {"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 */}, | 5249 {"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 */}, |
5132 {"reflectedIntegralAttr", TestObjV8Internal::reflectedIntegralAttrAttributeG
etterCallback, TestObjV8Internal::reflectedIntegralAttrAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), 0 /* on instance */}, | 5250 {"reflectedIntegralAttr", TestObjV8Internal::reflectedIntegralAttrAttributeG
etterCallback, TestObjV8Internal::reflectedIntegralAttrAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), 0 /* on instance */}, |
5133 {"reflectedUnsignedIntegralAttr", TestObjV8Internal::reflectedUnsignedIntegr
alAttrAttributeGetterCallback, TestObjV8Internal::reflectedUnsignedIntegralAttrA
ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 5251 {"reflectedUnsignedIntegralAttr", TestObjV8Internal::reflectedUnsignedIntegr
alAttrAttributeGetterCallback, TestObjV8Internal::reflectedUnsignedIntegralAttrA
ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
5134 {"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 {"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 */}, |
5135 {"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 {"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 */}, |
5136 {"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 {"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 */}, |
5137 {"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 {"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 */}, |
5138 {"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 {"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 */}, |
5139 {"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 {"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 */}, |
5140 {"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 {"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 */}, |
| 5259 {"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 */}, |
| 5260 {"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 */}, |
| 5261 {"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 */}, |
5141 {"typedArrayAttr", TestObjV8Internal::typedArrayAttrAttributeGetterCallback,
TestObjV8Internal::typedArrayAttrAttributeSetterCallback, 0, 0, 0, static_cast<
v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0
/* on instance */}, | 5262 {"typedArrayAttr", TestObjV8Internal::typedArrayAttrAttributeGetterCallback,
TestObjV8Internal::typedArrayAttrAttributeSetterCallback, 0, 0, 0, static_cast<
v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0
/* on instance */}, |
5142 {"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 {"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 */}, |
5143 {"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 {"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 */}, |
5144 {"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 {"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 */}, |
5145 {"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 {"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 */}, |
5146 {"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 {"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 */}, |
5147 {"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 {"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 */}, |
5148 {"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 {"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 */}, |
5149 {"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 {"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 */}, |
5150 {"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 */}, | 5271 {"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... |
5443 fromInternalPointer(object)->deref(); | 5564 fromInternalPointer(object)->deref(); |
5444 } | 5565 } |
5445 | 5566 |
5446 template<> | 5567 template<> |
5447 v8::Handle<v8::Value> toV8NoInline(TestObj* impl, v8::Handle<v8::Object> creatio
nContext, v8::Isolate* isolate) | 5568 v8::Handle<v8::Value> toV8NoInline(TestObj* impl, v8::Handle<v8::Object> creatio
nContext, v8::Isolate* isolate) |
5448 { | 5569 { |
5449 return toV8(impl, creationContext, isolate); | 5570 return toV8(impl, creationContext, isolate); |
5450 } | 5571 } |
5451 | 5572 |
5452 } // namespace WebCore | 5573 } // namespace WebCore |
OLD | NEW |