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 4784 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4795 * | 4795 * |
4796 * \param getter The callback to invoke when getting a property. | 4796 * \param getter The callback to invoke when getting a property. |
4797 * \param setter The callback to invoke when setting a property. | 4797 * \param setter The callback to invoke when setting a property. |
4798 * \param query The callback to invoke to check if an object has a property. | 4798 * \param query The callback to invoke to check if an object has a property. |
4799 * \param deleter The callback to invoke when deleting a property. | 4799 * \param deleter The callback to invoke when deleting a property. |
4800 * \param enumerator The callback to invoke to enumerate all the indexed | 4800 * \param enumerator The callback to invoke to enumerate all the indexed |
4801 * properties of an object. | 4801 * properties of an object. |
4802 * \param data A piece of data that will be passed to the callbacks | 4802 * \param data A piece of data that will be passed to the callbacks |
4803 * whenever they are invoked. | 4803 * whenever they are invoked. |
4804 */ | 4804 */ |
4805 void SetHandler(const IndexedPropertyHandlerConfiguration& configuration); | |
4806 // TODO(dcarney): deprecate | 4805 // TODO(dcarney): deprecate |
4807 void SetIndexedPropertyHandler( | 4806 void SetIndexedPropertyHandler( |
4808 IndexedPropertyGetterCallback getter, | 4807 IndexedPropertyGetterCallback getter, |
4809 IndexedPropertySetterCallback setter = 0, | 4808 IndexedPropertySetterCallback setter = 0, |
4810 IndexedPropertyQueryCallback query = 0, | 4809 IndexedPropertyQueryCallback query = 0, |
4811 IndexedPropertyDeleterCallback deleter = 0, | 4810 IndexedPropertyDeleterCallback deleter = 0, |
4812 IndexedPropertyEnumeratorCallback enumerator = 0, | 4811 IndexedPropertyEnumeratorCallback enumerator = 0, |
4813 Local<Value> data = Local<Value>()) { | 4812 Local<Value> data = Local<Value>()) { |
4814 SetHandler(IndexedPropertyHandlerConfiguration(getter, setter, query, | 4813 SetHandler(IndexedPropertyHandlerConfiguration(getter, setter, query, |
4815 deleter, enumerator, data)); | 4814 deleter, enumerator, data)); |
4816 } | 4815 } |
| 4816 void SetHandler(const IndexedPropertyHandlerConfiguration& configuration); |
| 4817 |
4817 /** | 4818 /** |
4818 * Sets the callback to be used when calling instances created from | 4819 * Sets the callback to be used when calling instances created from |
4819 * this template as a function. If no callback is set, instances | 4820 * this template as a function. If no callback is set, instances |
4820 * behave like normal JavaScript objects that cannot be called as a | 4821 * behave like normal JavaScript objects that cannot be called as a |
4821 * function. | 4822 * function. |
4822 */ | 4823 */ |
4823 void SetCallAsFunctionHandler(FunctionCallback callback, | 4824 void SetCallAsFunctionHandler(FunctionCallback callback, |
4824 Local<Value> data = Local<Value>()); | 4825 Local<Value> data = Local<Value>()); |
4825 | 4826 |
4826 /** | 4827 /** |
(...skipping 4161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8988 */ | 8989 */ |
8989 | 8990 |
8990 | 8991 |
8991 } // namespace v8 | 8992 } // namespace v8 |
8992 | 8993 |
8993 | 8994 |
8994 #undef TYPE_CHECK | 8995 #undef TYPE_CHECK |
8995 | 8996 |
8996 | 8997 |
8997 #endif // INCLUDE_V8_H_ | 8998 #endif // INCLUDE_V8_H_ |
OLD | NEW |