| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 1439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1450 V8EXPORT bool Delete(uint32_t index); | 1450 V8EXPORT bool Delete(uint32_t index); |
| 1451 | 1451 |
| 1452 V8EXPORT bool SetAccessor(Handle<String> name, | 1452 V8EXPORT bool SetAccessor(Handle<String> name, |
| 1453 AccessorGetter getter, | 1453 AccessorGetter getter, |
| 1454 AccessorSetter setter = 0, | 1454 AccessorSetter setter = 0, |
| 1455 Handle<Value> data = Handle<Value>(), | 1455 Handle<Value> data = Handle<Value>(), |
| 1456 AccessControl settings = DEFAULT, | 1456 AccessControl settings = DEFAULT, |
| 1457 PropertyAttribute attribute = None); | 1457 PropertyAttribute attribute = None); |
| 1458 | 1458 |
| 1459 /** | 1459 /** |
| 1460 * Defines the get/set properties of the property's |
| 1461 * AccessorDescriptor. |
| 1462 */ |
| 1463 V8EXPORT bool DefineGetter(Handle<String> name, Handle<Value> fun); |
| 1464 V8EXPORT bool DefineSetter(Handle<String> name, Handle<Value> fun); |
| 1465 |
| 1466 /** |
| 1467 * Returns a function which is binded to the property by the |
| 1468 * DefineGetter/Setter method. |
| 1469 * Returns undefined value if the AccessorDescriptor's get/set |
| 1470 * properties are not defined. |
| 1471 */ |
| 1472 V8EXPORT Local<Value> LookupGetter(Handle<String> name); |
| 1473 V8EXPORT Local<Value> LookupSetter(Handle<String> name); |
| 1474 |
| 1475 /** |
| 1460 * Returns an array containing the names of the enumerable properties | 1476 * Returns an array containing the names of the enumerable properties |
| 1461 * of this object, including properties from prototype objects. The | 1477 * of this object, including properties from prototype objects. The |
| 1462 * array returned by this method contains the same values as would | 1478 * array returned by this method contains the same values as would |
| 1463 * be enumerated by a for-in statement over this object. | 1479 * be enumerated by a for-in statement over this object. |
| 1464 */ | 1480 */ |
| 1465 V8EXPORT Local<Array> GetPropertyNames(); | 1481 V8EXPORT Local<Array> GetPropertyNames(); |
| 1466 | 1482 |
| 1467 /** | 1483 /** |
| 1468 * This function has the same functionality as GetPropertyNames but | 1484 * This function has the same functionality as GetPropertyNames but |
| 1469 * the returned array doesn't contain the names of properties from | 1485 * the returned array doesn't contain the names of properties from |
| (...skipping 2633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4103 | 4119 |
| 4104 | 4120 |
| 4105 } // namespace v8 | 4121 } // namespace v8 |
| 4106 | 4122 |
| 4107 | 4123 |
| 4108 #undef V8EXPORT | 4124 #undef V8EXPORT |
| 4109 #undef TYPE_CHECK | 4125 #undef TYPE_CHECK |
| 4110 | 4126 |
| 4111 | 4127 |
| 4112 #endif // V8_H_ | 4128 #endif // V8_H_ |
| OLD | NEW |