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

Side by Side Diff: include/v8.h

Issue 2302133003: [api] Minor improvement to documentation for kNonMasking. (Closed)
Patch Set: Created 4 years, 3 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 | test/cctest/test-api-interceptors.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 4974 matching lines...) Expand 10 before | Expand all | Expand 10 after
4985 * template. 4985 * template.
4986 */ 4986 */
4987 bool HasInstance(Local<Value> object); 4987 bool HasInstance(Local<Value> object);
4988 4988
4989 private: 4989 private:
4990 FunctionTemplate(); 4990 FunctionTemplate();
4991 friend class Context; 4991 friend class Context;
4992 friend class ObjectTemplate; 4992 friend class ObjectTemplate;
4993 }; 4993 };
4994 4994
4995
4996 enum class PropertyHandlerFlags { 4995 enum class PropertyHandlerFlags {
4997 kNone = 0, 4996 kNone = 0,
4998 // See ALL_CAN_READ above. 4997 // See ALL_CAN_READ above.
4999 kAllCanRead = 1, 4998 kAllCanRead = 1,
5000 // Will not call into interceptor for properties on the receiver or prototype 4999 // Will not call into interceptor for properties on the receiver or prototype
5001 // chain. Currently only valid for named interceptors. 5000 // chain, i.e., only call into interceptor for properties that do not exist.
5001 // Currently only valid for named interceptors.
5002 kNonMasking = 1 << 1, 5002 kNonMasking = 1 << 1,
5003 // Will not call into interceptor for symbol lookup. Only meaningful for 5003 // Will not call into interceptor for symbol lookup. Only meaningful for
5004 // named interceptors. 5004 // named interceptors.
5005 kOnlyInterceptStrings = 1 << 2, 5005 kOnlyInterceptStrings = 1 << 2,
5006 }; 5006 };
5007 5007
5008
5009 struct NamedPropertyHandlerConfiguration { 5008 struct NamedPropertyHandlerConfiguration {
5010 NamedPropertyHandlerConfiguration( 5009 NamedPropertyHandlerConfiguration(
5011 /** Note: getter is required **/ 5010 /** Note: getter is required **/
5012 GenericNamedPropertyGetterCallback getter = 0, 5011 GenericNamedPropertyGetterCallback getter = 0,
5013 GenericNamedPropertySetterCallback setter = 0, 5012 GenericNamedPropertySetterCallback setter = 0,
5014 GenericNamedPropertyQueryCallback query = 0, 5013 GenericNamedPropertyQueryCallback query = 0,
5015 GenericNamedPropertyDeleterCallback deleter = 0, 5014 GenericNamedPropertyDeleterCallback deleter = 0,
5016 GenericNamedPropertyEnumeratorCallback enumerator = 0, 5015 GenericNamedPropertyEnumeratorCallback enumerator = 0,
5017 Local<Value> data = Local<Value>(), 5016 Local<Value> data = Local<Value>(),
5018 PropertyHandlerFlags flags = PropertyHandlerFlags::kNone) 5017 PropertyHandlerFlags flags = PropertyHandlerFlags::kNone)
(...skipping 4414 matching lines...) Expand 10 before | Expand all | Expand 10 after
9433 */ 9432 */
9434 9433
9435 9434
9436 } // namespace v8 9435 } // namespace v8
9437 9436
9438 9437
9439 #undef TYPE_CHECK 9438 #undef TYPE_CHECK
9440 9439
9441 9440
9442 #endif // INCLUDE_V8_H_ 9441 #endif // INCLUDE_V8_H_
OLDNEW
« no previous file with comments | « no previous file | test/cctest/test-api-interceptors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698