| OLD | NEW |
| 1 /* | 1 /* |
| 2 This file is part of the Blink open source project. | 2 This file is part of the Blink open source project. |
| 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! | 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! |
| 4 | 4 |
| 5 This library is free software; you can redistribute it and/or | 5 This library is free software; you can redistribute it and/or |
| 6 modify it under the terms of the GNU Library General Public | 6 modify it under the terms of the GNU Library General Public |
| 7 License as published by the Free Software Foundation; either | 7 License as published by the Free Software Foundation; either |
| 8 version 2 of the License, or (at your option) any later version. | 8 version 2 of the License, or (at your option) any later version. |
| 9 | 9 |
| 10 This library is distributed in the hope that it will be useful, | 10 This library is distributed in the hope that it will be useful, |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0
; | 51 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0
; |
| 52 static inline void* toInternalPointer({{cpp_class_name}}* impl) | 52 static inline void* toInternalPointer({{cpp_class_name}}* impl) |
| 53 { | 53 { |
| 54 return impl; | 54 return impl; |
| 55 } | 55 } |
| 56 | 56 |
| 57 static inline {{cpp_class_name}}* fromInternalPointer(void* object) | 57 static inline {{cpp_class_name}}* fromInternalPointer(void* object) |
| 58 { | 58 { |
| 59 return static_cast<{{cpp_class_name}}*>(object); | 59 return static_cast<{{cpp_class_name}}*>(object); |
| 60 } | 60 } |
| 61 static void installPerContextProperties(v8::Handle<v8::Object>, {{cpp_class_
name}}*, v8::Isolate*) { } | 61 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, {{cpp
_class_name}}*, v8::Isolate*){% if has_per_context_enabled_attributes %}; |
| 62 static void installPerContextPrototypeProperties(v8::Handle<v8::Object>, v8:
:Isolate*) { } | 62 {% else %} { } |
| 63 {% endif %} |
| 64 static void installPerContextEnabledPrototypeProperties(v8::Handle<v8::Objec
t>, v8::Isolate*) { } |
| 63 | 65 |
| 64 private: | 66 private: |
| 65 friend v8::Handle<v8::Object> wrap({{cpp_class_name}}*, v8::Handle<v8::Objec
t> creationContext, v8::Isolate*); | 67 friend v8::Handle<v8::Object> wrap({{cpp_class_name}}*, v8::Handle<v8::Objec
t> creationContext, v8::Isolate*); |
| 66 static v8::Handle<v8::Object> createWrapper(PassRefPtr<{{cpp_class_name}}>,
v8::Handle<v8::Object> creationContext, v8::Isolate*); | 68 static v8::Handle<v8::Object> createWrapper(PassRefPtr<{{cpp_class_name}}>,
v8::Handle<v8::Object> creationContext, v8::Isolate*); |
| 67 }; | 69 }; |
| 68 | 70 |
| 69 template<> | 71 template<> |
| 70 class WrapperTypeTraits<{{cpp_class_name}} > { | 72 class WrapperTypeTraits<{{cpp_class_name}} > { |
| 71 public: | 73 public: |
| 72 static WrapperTypeInfo* info() { return &{{v8_class_name}}::info; } | 74 static WrapperTypeInfo* info() { return &{{v8_class_name}}::info; } |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); | 154 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); |
| 153 } | 155 } |
| 154 | 156 |
| 155 } | 157 } |
| 156 {% if conditional_string %} | 158 {% if conditional_string %} |
| 157 | 159 |
| 158 #endif // {{conditional_string}} | 160 #endif // {{conditional_string}} |
| 159 {% endif %} | 161 {% endif %} |
| 160 | 162 |
| 161 #endif // {{v8_class_name}}_h | 163 #endif // {{v8_class_name}}_h |
| OLD | NEW |