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 22 matching lines...) Expand all Loading... |
33 class {{v8_class_name}} { | 33 class {{v8_class_name}} { |
34 public: | 34 public: |
35 static bool HasInstance(v8::Handle<v8::Value>, v8::Isolate*, WrapperWorldTyp
e); | 35 static bool HasInstance(v8::Handle<v8::Value>, v8::Isolate*, WrapperWorldTyp
e); |
36 static bool HasInstanceInAnyWorld(v8::Handle<v8::Value>, v8::Isolate*); | 36 static bool HasInstanceInAnyWorld(v8::Handle<v8::Value>, v8::Isolate*); |
37 static v8::Handle<v8::FunctionTemplate> GetTemplate(v8::Isolate*, WrapperWor
ldType); | 37 static v8::Handle<v8::FunctionTemplate> GetTemplate(v8::Isolate*, WrapperWor
ldType); |
38 static {{cpp_class_name}}* toNative(v8::Handle<v8::Object> object) | 38 static {{cpp_class_name}}* toNative(v8::Handle<v8::Object> object) |
39 { | 39 { |
40 return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8
DOMWrapperObjectIndex)); | 40 return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8
DOMWrapperObjectIndex)); |
41 } | 41 } |
42 static void derefObject(void*); | 42 static void derefObject(void*); |
43 static WrapperTypeInfo info; | 43 static const WrapperTypeInfo info; |
44 {% for attribute in attributes %} | 44 {% for attribute in attributes %} |
45 {% if attribute.has_custom_getter %}{# FIXME: and not attribute.implemented_
by #} | 45 {% if attribute.has_custom_getter %}{# FIXME: and not attribute.implemented_
by #} |
46 {% filter conditional(attribute.conditional_string) %} | 46 {% filter conditional(attribute.conditional_string) %} |
47 static void {{attribute.name}}AttributeGetterCustom(v8::Local<v8::String> na
me, const v8::PropertyCallbackInfo<v8::Value>&); | 47 static void {{attribute.name}}AttributeGetterCustom(v8::Local<v8::String> na
me, const v8::PropertyCallbackInfo<v8::Value>&); |
48 {% endfilter %} | 48 {% endfilter %} |
49 {% endif %} | 49 {% endif %} |
50 {% if attribute.has_custom_setter %}{# FIXME: and not attribute.implemented_
by #} | 50 {% if attribute.has_custom_setter %}{# FIXME: and not attribute.implemented_
by #} |
51 {% filter conditional(attribute.conditional_string) %} | 51 {% filter conditional(attribute.conditional_string) %} |
52 static void {{attribute.name}}AttributeSetterCustom(v8::Local<v8::String> na
me, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&); | 52 static void {{attribute.name}}AttributeSetterCustom(v8::Local<v8::String> na
me, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&); |
53 {% endfilter %} | 53 {% endfilter %} |
(...skipping 15 matching lines...) Expand all Loading... |
69 static void installPerContextEnabledPrototypeProperties(v8::Handle<v8::Objec
t>, v8::Isolate*) { } | 69 static void installPerContextEnabledPrototypeProperties(v8::Handle<v8::Objec
t>, v8::Isolate*) { } |
70 | 70 |
71 private: | 71 private: |
72 friend v8::Handle<v8::Object> wrap({{cpp_class_name}}*, v8::Handle<v8::Objec
t> creationContext, v8::Isolate*); | 72 friend v8::Handle<v8::Object> wrap({{cpp_class_name}}*, v8::Handle<v8::Objec
t> creationContext, v8::Isolate*); |
73 static v8::Handle<v8::Object> createWrapper(PassRefPtr<{{cpp_class_name}}>,
v8::Handle<v8::Object> creationContext, v8::Isolate*); | 73 static v8::Handle<v8::Object> createWrapper(PassRefPtr<{{cpp_class_name}}>,
v8::Handle<v8::Object> creationContext, v8::Isolate*); |
74 }; | 74 }; |
75 | 75 |
76 template<> | 76 template<> |
77 class WrapperTypeTraits<{{cpp_class_name}} > { | 77 class WrapperTypeTraits<{{cpp_class_name}} > { |
78 public: | 78 public: |
79 static WrapperTypeInfo* info() { return &{{v8_class_name}}::info; } | 79 static const WrapperTypeInfo* info() { return &{{v8_class_name}}::info; } |
80 }; | 80 }; |
81 | 81 |
82 inline v8::Handle<v8::Object> wrap({{cpp_class_name}}* impl, v8::Handle<v8::Obje
ct> creationContext, v8::Isolate* isolate) | 82 inline v8::Handle<v8::Object> wrap({{cpp_class_name}}* impl, v8::Handle<v8::Obje
ct> creationContext, v8::Isolate* isolate) |
83 { | 83 { |
84 ASSERT(impl); | 84 ASSERT(impl); |
85 ASSERT(!DOMDataStore::containsWrapper<{{v8_class_name}}>(impl, isolate)); | 85 ASSERT(!DOMDataStore::containsWrapper<{{v8_class_name}}>(impl, isolate)); |
86 return {{v8_class_name}}::createWrapper(impl, creationContext, isolate); | 86 return {{v8_class_name}}::createWrapper(impl, creationContext, isolate); |
87 } | 87 } |
88 | 88 |
89 inline v8::Handle<v8::Value> toV8({{cpp_class_name}}* impl, v8::Handle<v8::Objec
t> creationContext, v8::Isolate* isolate) | 89 inline v8::Handle<v8::Value> toV8({{cpp_class_name}}* impl, v8::Handle<v8::Objec
t> creationContext, v8::Isolate* isolate) |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); | 159 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); |
160 } | 160 } |
161 | 161 |
162 } | 162 } |
163 {% if conditional_string %} | 163 {% if conditional_string %} |
164 | 164 |
165 #endif // {{conditional_string}} | 165 #endif // {{conditional_string}} |
166 {% endif %} | 166 {% endif %} |
167 | 167 |
168 #endif // {{v8_class_name}}_h | 168 #endif // {{v8_class_name}}_h |
OLD | NEW |