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 4780 matching lines...) Loading... |
4791 /** | 4791 /** |
4792 * Sets access check callback on the object template and enables access | 4792 * Sets access check callback on the object template and enables access |
4793 * checks. | 4793 * checks. |
4794 * | 4794 * |
4795 * When accessing properties on instances of this object template, | 4795 * When accessing properties on instances of this object template, |
4796 * the access check callback will be called to determine whether or | 4796 * the access check callback will be called to determine whether or |
4797 * not to allow cross-context access to the properties. | 4797 * not to allow cross-context access to the properties. |
4798 */ | 4798 */ |
4799 void SetAccessCheckCallback(AccessCheckCallback callback, | 4799 void SetAccessCheckCallback(AccessCheckCallback callback, |
4800 Local<Value> data = Local<Value>()); | 4800 Local<Value> data = Local<Value>()); |
| 4801 |
| 4802 /** |
| 4803 * Like SetAccessCheckCallback but invokes an interceptor on failed access |
| 4804 * checks instead of looking up all-can-read properties. You can only use |
| 4805 * either this method or SetAccessCheckCallback, but not both at the same |
| 4806 * time. |
| 4807 */ |
| 4808 void SetAccessCheckCallbackAndHandler( |
| 4809 AccessCheckCallback callback, |
| 4810 const NamedPropertyHandlerConfiguration& named_handler, |
| 4811 const IndexedPropertyHandlerConfiguration& indexed_handler, |
| 4812 Local<Value> data = Local<Value>()); |
| 4813 |
4801 /** | 4814 /** |
4802 * Gets the number of internal fields for objects generated from | 4815 * Gets the number of internal fields for objects generated from |
4803 * this template. | 4816 * this template. |
4804 */ | 4817 */ |
4805 int InternalFieldCount(); | 4818 int InternalFieldCount(); |
4806 | 4819 |
4807 /** | 4820 /** |
4808 * Sets the number of internal fields for objects generated from | 4821 * Sets the number of internal fields for objects generated from |
4809 * this template. | 4822 * this template. |
4810 */ | 4823 */ |
(...skipping 4064 matching lines...) Loading... |
8875 */ | 8888 */ |
8876 | 8889 |
8877 | 8890 |
8878 } // namespace v8 | 8891 } // namespace v8 |
8879 | 8892 |
8880 | 8893 |
8881 #undef TYPE_CHECK | 8894 #undef TYPE_CHECK |
8882 | 8895 |
8883 | 8896 |
8884 #endif // INCLUDE_V8_H_ | 8897 #endif // INCLUDE_V8_H_ |
OLD | NEW |