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 4256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4267 | 4267 |
4268 /** | 4268 /** |
4269 * An ObjectTemplate is used to create objects at runtime. | 4269 * An ObjectTemplate is used to create objects at runtime. |
4270 * | 4270 * |
4271 * Properties added to an ObjectTemplate are added to each object | 4271 * Properties added to an ObjectTemplate are added to each object |
4272 * created from the ObjectTemplate. | 4272 * created from the ObjectTemplate. |
4273 */ | 4273 */ |
4274 class V8_EXPORT ObjectTemplate : public Template { | 4274 class V8_EXPORT ObjectTemplate : public Template { |
4275 public: | 4275 public: |
4276 /** Creates an ObjectTemplate. */ | 4276 /** Creates an ObjectTemplate. */ |
4277 static Local<ObjectTemplate> New(Isolate* isolate); | 4277 static Local<ObjectTemplate> New( |
| 4278 Isolate* isolate, |
| 4279 Handle<FunctionTemplate> constructor = Handle<FunctionTemplate>()); |
4278 static V8_DEPRECATE_SOON("Use isolate version", Local<ObjectTemplate> New()); | 4280 static V8_DEPRECATE_SOON("Use isolate version", Local<ObjectTemplate> New()); |
4279 | 4281 |
4280 /** Creates a new instance of this template.*/ | 4282 /** Creates a new instance of this template.*/ |
4281 V8_DEPRECATE_SOON("Use maybe version", Local<Object> NewInstance()); | 4283 V8_DEPRECATE_SOON("Use maybe version", Local<Object> NewInstance()); |
4282 V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(Local<Context> context); | 4284 V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(Local<Context> context); |
4283 | 4285 |
4284 /** | 4286 /** |
4285 * Sets an accessor on the object template. | 4287 * Sets an accessor on the object template. |
4286 * | 4288 * |
4287 * Whenever the property with the given name is accessed on objects | 4289 * Whenever the property with the given name is accessed on objects |
(...skipping 3731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8019 */ | 8021 */ |
8020 | 8022 |
8021 | 8023 |
8022 } // namespace v8 | 8024 } // namespace v8 |
8023 | 8025 |
8024 | 8026 |
8025 #undef TYPE_CHECK | 8027 #undef TYPE_CHECK |
8026 | 8028 |
8027 | 8029 |
8028 #endif // V8_H_ | 8030 #endif // V8_H_ |
OLD | NEW |