| OLD | NEW |
| 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 2975 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2986 | 2986 |
| 2987 /** | 2987 /** |
| 2988 * The superclass of object and function templates. | 2988 * The superclass of object and function templates. |
| 2989 */ | 2989 */ |
| 2990 class V8_EXPORT Template : public Data { | 2990 class V8_EXPORT Template : public Data { |
| 2991 public: | 2991 public: |
| 2992 /** Adds a property to each instance created by this template.*/ | 2992 /** Adds a property to each instance created by this template.*/ |
| 2993 void Set(Handle<String> name, Handle<Data> value, | 2993 void Set(Handle<String> name, Handle<Data> value, |
| 2994 PropertyAttribute attributes = None); | 2994 PropertyAttribute attributes = None); |
| 2995 V8_INLINE(void Set(const char* name, Handle<Data> value)); | 2995 V8_INLINE(void Set(const char* name, Handle<Data> value)); |
| 2996 |
| 2997 void SetAccessorProperty( |
| 2998 Local<String> name, |
| 2999 Local<FunctionTemplate> getter = Local<FunctionTemplate>(), |
| 3000 Local<FunctionTemplate> setter = Local<FunctionTemplate>(), |
| 3001 PropertyAttribute attribute = None, |
| 3002 AccessControl settings = DEFAULT); |
| 3003 |
| 2996 private: | 3004 private: |
| 2997 Template(); | 3005 Template(); |
| 2998 | 3006 |
| 2999 friend class ObjectTemplate; | 3007 friend class ObjectTemplate; |
| 3000 friend class FunctionTemplate; | 3008 friend class FunctionTemplate; |
| 3001 }; | 3009 }; |
| 3002 | 3010 |
| 3003 | 3011 |
| 3004 template<typename T> | 3012 template<typename T> |
| 3005 class ReturnValue { | 3013 class ReturnValue { |
| (...skipping 3596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6602 */ | 6610 */ |
| 6603 | 6611 |
| 6604 | 6612 |
| 6605 } // namespace v8 | 6613 } // namespace v8 |
| 6606 | 6614 |
| 6607 | 6615 |
| 6608 #undef TYPE_CHECK | 6616 #undef TYPE_CHECK |
| 6609 | 6617 |
| 6610 | 6618 |
| 6611 #endif // V8_H_ | 6619 #endif // V8_H_ |
| OLD | NEW |