Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(786)

Side by Side Diff: include/v8.h

Issue 2268673002: [api] Improve documentation for SetNamedPropertyHandler(). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 4744 matching lines...) Expand 10 before | Expand all | Expand 10 after
4755 AccessControl settings = DEFAULT, PropertyAttribute attribute = None, 4755 AccessControl settings = DEFAULT, PropertyAttribute attribute = None,
4756 Local<AccessorSignature> signature = Local<AccessorSignature>()); 4756 Local<AccessorSignature> signature = Local<AccessorSignature>());
4757 4757
4758 /** 4758 /**
4759 * Sets a named property handler on the object template. 4759 * Sets a named property handler on the object template.
4760 * 4760 *
4761 * Whenever a property whose name is a string is accessed on objects created 4761 * Whenever a property whose name is a string is accessed on objects created
4762 * from this object template, the provided callback is invoked instead of 4762 * from this object template, the provided callback is invoked instead of
4763 * accessing the property directly on the JavaScript object. 4763 * accessing the property directly on the JavaScript object.
4764 * 4764 *
4765 * Note that new code should use the second version that can intercept 4765 * SetNamedPropertyHandler() is different from SetHandler(), in
4766 * symbol-named properties as well as string-named properties. 4766 * that the latter can intercept symbol-named properties as well as
4767 * string-named properties when called with a
4768 * NamedPropertyHandlerConfiguration. New code should use SetHandler().
4767 * 4769 *
4768 * \param getter The callback to invoke when getting a property. 4770 * \param getter The callback to invoke when getting a property.
4769 * \param setter The callback to invoke when setting a property. 4771 * \param setter The callback to invoke when setting a property.
4770 * \param query The callback to invoke to check if a property is present, 4772 * \param query The callback to invoke to check if a property is present,
4771 * and if present, get its attributes. 4773 * and if present, get its attributes.
4772 * \param deleter The callback to invoke when deleting a property. 4774 * \param deleter The callback to invoke when deleting a property.
4773 * \param enumerator The callback to invoke to enumerate all the named 4775 * \param enumerator The callback to invoke to enumerate all the named
4774 * properties of an object. 4776 * properties of an object.
4775 * \param data A piece of data that will be passed to the callbacks 4777 * \param data A piece of data that will be passed to the callbacks
4776 * whenever they are invoked. 4778 * whenever they are invoked.
(...skipping 4209 matching lines...) Expand 10 before | Expand all | Expand 10 after
8986 */ 8988 */
8987 8989
8988 8990
8989 } // namespace v8 8991 } // namespace v8
8990 8992
8991 8993
8992 #undef TYPE_CHECK 8994 #undef TYPE_CHECK
8993 8995
8994 8996
8995 #endif // INCLUDE_V8_H_ 8997 #endif // INCLUDE_V8_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698