OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project 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 /** \mainpage V8 API Reference Guide | 5 /** \mainpage V8 API Reference Guide |
6 * | 6 * |
7 * V8 is Google's open source JavaScript engine. | 7 * V8 is Google's open source JavaScript engine. |
8 * | 8 * |
9 * This set of documents provides reference material generated from the | 9 * This set of documents provides reference material generated from the |
10 * V8 header file, include/v8.h. | 10 * V8 header file, include/v8.h. |
(...skipping 4066 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4077 PropertyAttribute attributes = None); | 4077 PropertyAttribute attributes = None); |
4078 V8_INLINE void Set(Isolate* isolate, const char* name, Local<Data> value); | 4078 V8_INLINE void Set(Isolate* isolate, const char* name, Local<Data> value); |
4079 | 4079 |
4080 void SetAccessorProperty( | 4080 void SetAccessorProperty( |
4081 Local<Name> name, | 4081 Local<Name> name, |
4082 Local<FunctionTemplate> getter = Local<FunctionTemplate>(), | 4082 Local<FunctionTemplate> getter = Local<FunctionTemplate>(), |
4083 Local<FunctionTemplate> setter = Local<FunctionTemplate>(), | 4083 Local<FunctionTemplate> setter = Local<FunctionTemplate>(), |
4084 PropertyAttribute attribute = None, | 4084 PropertyAttribute attribute = None, |
4085 AccessControl settings = DEFAULT); | 4085 AccessControl settings = DEFAULT); |
4086 | 4086 |
4087 #ifdef V8_JS_ACCESSORS | |
4088 void SetAccessorProperty(Local<Name> name, | |
4089 Local<Function> getter = Local<Function>(), | |
4090 Local<Function> setter = Local<Function>(), | |
4091 PropertyAttribute attribute = None); | |
4092 #endif // V8_JS_ACCESSORS | |
4093 | |
4094 /** | 4087 /** |
4095 * Whenever the property with the given name is accessed on objects | 4088 * Whenever the property with the given name is accessed on objects |
4096 * created from this Template the getter and setter callbacks | 4089 * created from this Template the getter and setter callbacks |
4097 * are called instead of getting and setting the property directly | 4090 * are called instead of getting and setting the property directly |
4098 * on the JavaScript object. | 4091 * on the JavaScript object. |
4099 * | 4092 * |
4100 * \param name The name of the property for which an accessor is added. | 4093 * \param name The name of the property for which an accessor is added. |
4101 * \param getter The callback to invoke when getting the property. | 4094 * \param getter The callback to invoke when getting the property. |
4102 * \param setter The callback to invoke when setting the property. | 4095 * \param setter The callback to invoke when setting the property. |
4103 * \param data A piece of data that will be passed to the getter and setter | 4096 * \param data A piece of data that will be passed to the getter and setter |
(...skipping 4380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8484 */ | 8477 */ |
8485 | 8478 |
8486 | 8479 |
8487 } // namespace v8 | 8480 } // namespace v8 |
8488 | 8481 |
8489 | 8482 |
8490 #undef TYPE_CHECK | 8483 #undef TYPE_CHECK |
8491 | 8484 |
8492 | 8485 |
8493 #endif // V8_H_ | 8486 #endif // V8_H_ |
OLD | NEW |