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

Side by Side Diff: include/v8.h

Issue 1128553002: Add ObjectTemplate::New() taking FunctionTemplate. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add ObjectTemplate::New() taking FunctionTemplate. Created 5 years, 7 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 | 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 4256 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
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