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

Side by Side Diff: include/v8.h

Issue 1427443002: Add optional data parameter to SetAccessCheckCallback (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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 | src/api.cc » ('j') | 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 4656 matching lines...) Expand 10 before | Expand all | Expand 10 after
4667 void MarkAsUndetectable(); 4667 void MarkAsUndetectable();
4668 4668
4669 /** 4669 /**
4670 * Sets access check callback on the object template and enables access 4670 * Sets access check callback on the object template and enables access
4671 * checks. 4671 * checks.
4672 * 4672 *
4673 * When accessing properties on instances of this object template, 4673 * When accessing properties on instances of this object template,
4674 * the access check callback will be called to determine whether or 4674 * the access check callback will be called to determine whether or
4675 * not to allow cross-context access to the properties. 4675 * not to allow cross-context access to the properties.
4676 */ 4676 */
4677 void SetAccessCheckCallback(AccessCheckCallback callback); 4677 void SetAccessCheckCallback(AccessCheckCallback callback,
4678 Local<Value> data = Local<Value>());
4678 4679
4679 V8_DEPRECATE_SOON( 4680 V8_DEPRECATE_SOON(
4680 "Use SetAccessCheckCallback instead", 4681 "Use SetAccessCheckCallback instead",
4681 void SetAccessCheckCallbacks(NamedSecurityCallback named_handler, 4682 void SetAccessCheckCallbacks(NamedSecurityCallback named_handler,
4682 IndexedSecurityCallback indexed_handler, 4683 IndexedSecurityCallback indexed_handler,
4683 Local<Value> data = Local<Value>())); 4684 Local<Value> data = Local<Value>()));
4684 4685
4685 /** 4686 /**
4686 * Gets the number of internal fields for objects generated from 4687 * Gets the number of internal fields for objects generated from
4687 * this template. 4688 * this template.
(...skipping 3720 matching lines...) Expand 10 before | Expand all | Expand 10 after
8408 */ 8409 */
8409 8410
8410 8411
8411 } // namespace v8 8412 } // namespace v8
8412 8413
8413 8414
8414 #undef TYPE_CHECK 8415 #undef TYPE_CHECK
8415 8416
8416 8417
8417 #endif // V8_H_ 8418 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698