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

Side by Side Diff: include/v8.h

Issue 22903012: js accessor creation on Template (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: grokdump Created 7 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 | Annotate | Revision Log
« 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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 2964 matching lines...) Expand 10 before | Expand all | Expand 10 after
2975 2975
2976 /** 2976 /**
2977 * The superclass of object and function templates. 2977 * The superclass of object and function templates.
2978 */ 2978 */
2979 class V8_EXPORT Template : public Data { 2979 class V8_EXPORT Template : public Data {
2980 public: 2980 public:
2981 /** Adds a property to each instance created by this template.*/ 2981 /** Adds a property to each instance created by this template.*/
2982 void Set(Handle<String> name, Handle<Data> value, 2982 void Set(Handle<String> name, Handle<Data> value,
2983 PropertyAttribute attributes = None); 2983 PropertyAttribute attributes = None);
2984 V8_INLINE(void Set(const char* name, Handle<Data> value)); 2984 V8_INLINE(void Set(const char* name, Handle<Data> value));
2985
2986 void SetAccessorProperty(
2987 Local<String> name,
2988 Local<FunctionTemplate> getter = Local<FunctionTemplate>(),
2989 Local<FunctionTemplate> setter = Local<FunctionTemplate>(),
2990 PropertyAttribute attribute = None,
2991 AccessControl settings = DEFAULT);
2992
2985 private: 2993 private:
2986 Template(); 2994 Template();
2987 2995
2988 friend class ObjectTemplate; 2996 friend class ObjectTemplate;
2989 friend class FunctionTemplate; 2997 friend class FunctionTemplate;
2990 }; 2998 };
2991 2999
2992 3000
2993 template<typename T> 3001 template<typename T>
2994 class ReturnValue { 3002 class ReturnValue {
(...skipping 3597 matching lines...) Expand 10 before | Expand all | Expand 10 after
6592 */ 6600 */
6593 6601
6594 6602
6595 } // namespace v8 6603 } // namespace v8
6596 6604
6597 6605
6598 #undef TYPE_CHECK 6606 #undef TYPE_CHECK
6599 6607
6600 6608
6601 #endif // V8_H_ 6609 #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