| OLD | NEW |
| 1 /* | 1 /* |
| 2 This file is part of the Blink open source project. | 2 This file is part of the Blink open source project. |
| 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! | 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! |
| 4 | 4 |
| 5 This library is free software; you can redistribute it and/or | 5 This library is free software; you can redistribute it and/or |
| 6 modify it under the terms of the GNU Library General Public | 6 modify it under the terms of the GNU Library General Public |
| 7 License as published by the Free Software Foundation; either | 7 License as published by the Free Software Foundation; either |
| 8 version 2 of the License, or (at your option) any later version. | 8 version 2 of the License, or (at your option) any later version. |
| 9 | 9 |
| 10 This library is distributed in the hope that it will be useful, | 10 This library is distributed in the hope that it will be useful, |
| 11 but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 Library General Public License for more details. | 13 Library General Public License for more details. |
| 14 | 14 |
| 15 You should have received a copy of the GNU Library General Public License | 15 You should have received a copy of the GNU Library General Public License |
| 16 along with this library; see the file COPYING.LIB. If not, write to | 16 along with this library; see the file COPYING.LIB. If not, write to |
| 17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
| 18 Boston, MA 02111-1307, USA. | 18 Boston, MA 02111-1307, USA. |
| 19 */ | 19 */ |
| 20 | 20 |
| 21 #include "config.h" | 21 #include "config.h" |
| 22 #include "V8TestObject.h" | 22 #include "V8TestObject.h" |
| 23 | 23 |
| 24 #include "HTMLNames.h" | 24 #include "HTMLNames.h" |
| 25 #include "RuntimeEnabledFeatures.h" | 25 #include "RuntimeEnabledFeatures.h" |
| 26 #include "V8DOMStringList.h" | 26 #include "V8DOMStringList.h" |
| 27 #include "V8Document.h" | 27 #include "V8Document.h" |
| 28 #include "V8Float32Array.h" | 28 #include "V8Float32Array.h" |
| 29 #include "V8MessagePort.h" |
| 29 #include "V8Node.h" | 30 #include "V8Node.h" |
| 30 #include "V8SVGDocument.h" | 31 #include "V8SVGDocument.h" |
| 31 #include "V8SVGPoint.h" | 32 #include "V8SVGPoint.h" |
| 32 #include "V8ScriptProfile.h" | 33 #include "V8ScriptProfile.h" |
| 33 #include "V8TestCallback.h" | 34 #include "V8TestCallback.h" |
| 34 #include "V8TestNode.h" | 35 #include "V8TestNode.h" |
| 35 #include "V8TestObjectectA.h" | 36 #include "V8TestObjectectA.h" |
| 36 #include "V8TestObjectectB.h" | 37 #include "V8TestObjectectB.h" |
| 37 #include "V8TestObjectectC.h" | 38 #include "V8TestObjectectC.h" |
| 38 #include "V8TestSubObj.h" | 39 #include "V8TestSubObj.h" |
| (...skipping 1405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1444 V8TRYCATCH_VOID(Vector<double>, v, toNativeArray<double>(value)); | 1445 V8TRYCATCH_VOID(Vector<double>, v, toNativeArray<double>(value)); |
| 1445 imp->setDoubleArray(v); | 1446 imp->setDoubleArray(v); |
| 1446 return; | 1447 return; |
| 1447 } | 1448 } |
| 1448 | 1449 |
| 1449 static void doubleArrayAttrSetterCallback(v8::Local<v8::String> name, v8::Local<
v8::Value> value, const v8::AccessorInfo& info) | 1450 static void doubleArrayAttrSetterCallback(v8::Local<v8::String> name, v8::Local<
v8::Value> value, const v8::AccessorInfo& info) |
| 1450 { | 1451 { |
| 1451 TestObjV8Internal::doubleArrayAttrSetter(name, value, info); | 1452 TestObjV8Internal::doubleArrayAttrSetter(name, value, info); |
| 1452 } | 1453 } |
| 1453 | 1454 |
| 1455 static v8::Handle<v8::Value> messagePortArrayAttrGetter(v8::Local<v8::String> na
me, const v8::AccessorInfo& info) |
| 1456 { |
| 1457 TestObj* imp = V8TestObject::toNative(info.Holder()); |
| 1458 return v8Array(imp->messagePortArray(), info.GetIsolate()); |
| 1459 } |
| 1460 |
| 1461 static v8::Handle<v8::Value> messagePortArrayAttrGetterCallback(v8::Local<v8::St
ring> name, const v8::AccessorInfo& info) |
| 1462 { |
| 1463 return TestObjV8Internal::messagePortArrayAttrGetter(name, info); |
| 1464 } |
| 1465 |
| 1466 static void messagePortArrayAttrSetter(v8::Local<v8::String> name, v8::Local<v8:
:Value> value, const v8::AccessorInfo& info) |
| 1467 { |
| 1468 TestObj* imp = V8TestObject::toNative(info.Holder()); |
| 1469 V8TRYCATCH_VOID(Vector<RefPtr<MessagePort> >, v, (toRefPtrNativeArray<Messag
ePort, V8MessagePort>(value, info.GetIsolate()))); |
| 1470 imp->setMessagePortArray(v); |
| 1471 return; |
| 1472 } |
| 1473 |
| 1474 static void messagePortArrayAttrSetterCallback(v8::Local<v8::String> name, v8::L
ocal<v8::Value> value, const v8::AccessorInfo& info) |
| 1475 { |
| 1476 TestObjV8Internal::messagePortArrayAttrSetter(name, value, info); |
| 1477 } |
| 1478 |
| 1454 static v8::Handle<v8::Value> contentDocumentAttrGetter(v8::Local<v8::String> nam
e, const v8::AccessorInfo& info) | 1479 static v8::Handle<v8::Value> contentDocumentAttrGetter(v8::Local<v8::String> nam
e, const v8::AccessorInfo& info) |
| 1455 { | 1480 { |
| 1456 TestObj* imp = V8TestObject::toNative(info.Holder()); | 1481 TestObj* imp = V8TestObject::toNative(info.Holder()); |
| 1457 if (!BindingSecurity::shouldAllowAccessToNode(imp->contentDocument())) | 1482 if (!BindingSecurity::shouldAllowAccessToNode(imp->contentDocument())) |
| 1458 return v8::Handle<v8::Value>(v8Null(info.GetIsolate())); | 1483 return v8::Handle<v8::Value>(v8Null(info.GetIsolate())); |
| 1459 | 1484 |
| 1460 return toV8Fast(imp->contentDocument(), info, imp); | 1485 return toV8Fast(imp->contentDocument(), info, imp); |
| 1461 } | 1486 } |
| 1462 | 1487 |
| 1463 static v8::Handle<v8::Value> contentDocumentAttrGetterCallback(v8::Local<v8::Str
ing> name, const v8::AccessorInfo& info) | 1488 static v8::Handle<v8::Value> contentDocumentAttrGetterCallback(v8::Local<v8::Str
ing> name, const v8::AccessorInfo& info) |
| (...skipping 2597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4061 // Attribute 'cachedAttribute1' (Type: 'attribute' ExtAttr: '') | 4086 // Attribute 'cachedAttribute1' (Type: 'attribute' ExtAttr: '') |
| 4062 {"cachedAttribute1", TestObjV8Internal::cachedAttribute1AttrGetterCallback,
0, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_ca
st<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 4087 {"cachedAttribute1", TestObjV8Internal::cachedAttribute1AttrGetterCallback,
0, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_ca
st<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 4063 // Attribute 'cachedAttribute2' (Type: 'attribute' ExtAttr: '') | 4088 // Attribute 'cachedAttribute2' (Type: 'attribute' ExtAttr: '') |
| 4064 {"cachedAttribute2", TestObjV8Internal::cachedAttribute2AttrGetterCallback,
0, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_ca
st<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 4089 {"cachedAttribute2", TestObjV8Internal::cachedAttribute2AttrGetterCallback,
0, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_ca
st<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 4065 // Attribute 'anyAttribute' (Type: 'attribute' ExtAttr: '') | 4090 // Attribute 'anyAttribute' (Type: 'attribute' ExtAttr: '') |
| 4066 {"anyAttribute", TestObjV8Internal::anyAttributeAttrGetterCallback, TestObjV
8Internal::anyAttributeAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8
::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /
* on instance */}, | 4091 {"anyAttribute", TestObjV8Internal::anyAttributeAttrGetterCallback, TestObjV
8Internal::anyAttributeAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8
::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /
* on instance */}, |
| 4067 // Attribute 'floatArray' (Type: 'attribute' ExtAttr: '') | 4092 // Attribute 'floatArray' (Type: 'attribute' ExtAttr: '') |
| 4068 {"floatArray", TestObjV8Internal::floatArrayAttrGetterCallback, TestObjV8Int
ernal::floatArrayAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i
nstance */}, | 4093 {"floatArray", TestObjV8Internal::floatArrayAttrGetterCallback, TestObjV8Int
ernal::floatArrayAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i
nstance */}, |
| 4069 // Attribute 'doubleArray' (Type: 'attribute' ExtAttr: '') | 4094 // Attribute 'doubleArray' (Type: 'attribute' ExtAttr: '') |
| 4070 {"doubleArray", TestObjV8Internal::doubleArrayAttrGetterCallback, TestObjV8I
nternal::doubleArrayAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::A
ccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* o
n instance */}, | 4095 {"doubleArray", TestObjV8Internal::doubleArrayAttrGetterCallback, TestObjV8I
nternal::doubleArrayAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::A
ccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* o
n instance */}, |
| 4096 // Attribute 'messagePortArray' (Type: 'attribute' ExtAttr: '') |
| 4097 {"messagePortArray", TestObjV8Internal::messagePortArrayAttrGetterCallback,
TestObjV8Internal::messagePortArrayAttrSetterCallback, 0, 0, 0 /* no data */, st
atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8
::None), 0 /* on instance */}, |
| 4071 // Attribute 'contentDocument' (Type: 'attribute' ExtAttr: 'CheckSecurityFor
Node') | 4098 // Attribute 'contentDocument' (Type: 'attribute' ExtAttr: 'CheckSecurityFor
Node') |
| 4072 {"contentDocument", TestObjV8Internal::contentDocumentAttrGetterCallback, 0,
0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast
<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 4099 {"contentDocument", TestObjV8Internal::contentDocumentAttrGetterCallback, 0,
0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast
<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 4073 // Attribute 'mutablePoint' (Type: 'attribute' ExtAttr: '') | 4100 // Attribute 'mutablePoint' (Type: 'attribute' ExtAttr: '') |
| 4074 {"mutablePoint", TestObjV8Internal::mutablePointAttrGetterCallback, TestObjV
8Internal::mutablePointAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8
::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /
* on instance */}, | 4101 {"mutablePoint", TestObjV8Internal::mutablePointAttrGetterCallback, TestObjV
8Internal::mutablePointAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8
::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /
* on instance */}, |
| 4075 // Attribute 'immutablePoint' (Type: 'attribute' ExtAttr: 'Immutable') | 4102 // Attribute 'immutablePoint' (Type: 'attribute' ExtAttr: 'Immutable') |
| 4076 {"immutablePoint", TestObjV8Internal::immutablePointAttrGetterCallback, Test
ObjV8Internal::immutablePointAttrSetterCallback, 0, 0, 0 /* no data */, static_c
ast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None
), 0 /* on instance */}, | 4103 {"immutablePoint", TestObjV8Internal::immutablePointAttrGetterCallback, Test
ObjV8Internal::immutablePointAttrSetterCallback, 0, 0, 0 /* no data */, static_c
ast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None
), 0 /* on instance */}, |
| 4077 // Attribute 'strawberry' (Type: 'attribute' ExtAttr: 'ImplementedAs') | 4104 // Attribute 'strawberry' (Type: 'attribute' ExtAttr: 'ImplementedAs') |
| 4078 {"strawberry", TestObjV8Internal::strawberryAttrGetterCallback, TestObjV8Int
ernal::strawberryAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i
nstance */}, | 4105 {"strawberry", TestObjV8Internal::strawberryAttrGetterCallback, TestObjV8Int
ernal::strawberryAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i
nstance */}, |
| 4079 // Attribute 'strictFloat' (Type: 'attribute' ExtAttr: 'StrictTypeChecking') | 4106 // Attribute 'strictFloat' (Type: 'attribute' ExtAttr: 'StrictTypeChecking') |
| 4080 {"strictFloat", TestObjV8Internal::strictFloatAttrGetterCallback, TestObjV8I
nternal::strictFloatAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::A
ccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* o
n instance */}, | 4107 {"strictFloat", TestObjV8Internal::strictFloatAttrGetterCallback, TestObjV8I
nternal::strictFloatAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::A
ccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* o
n instance */}, |
| (...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4447 installPerContextProperties(wrapper, impl.get(), isolate); | 4474 installPerContextProperties(wrapper, impl.get(), isolate); |
| 4448 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap
perConfiguration::Independent); | 4475 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap
perConfiguration::Independent); |
| 4449 return wrapper; | 4476 return wrapper; |
| 4450 } | 4477 } |
| 4451 void V8TestObject::derefObject(void* object) | 4478 void V8TestObject::derefObject(void* object) |
| 4452 { | 4479 { |
| 4453 static_cast<TestObj*>(object)->deref(); | 4480 static_cast<TestObj*>(object)->deref(); |
| 4454 } | 4481 } |
| 4455 | 4482 |
| 4456 } // namespace WebCore | 4483 } // namespace WebCore |
| OLD | NEW |