OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium 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 // This file has been auto-generated by {{code_generator}}. DO NOT MODIFY! | 5 // This file has been auto-generated by {{code_generator}}. DO NOT MODIFY! |
6 | 6 |
7 #ifndef {{v8_class}}_h | 7 #ifndef {{v8_class}}_h |
8 #define {{v8_class}}_h | 8 #define {{v8_class}}_h |
9 | 9 |
10 {% filter conditional(conditional_string) %} | 10 {% filter conditional(conditional_string) %} |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 } | 54 } |
55 {% endif %} | 55 {% endif %} |
56 static {{cpp_class}}* toImplWithTypeCheck(v8::Isolate*, v8::Local<v8::Value>
); | 56 static {{cpp_class}}* toImplWithTypeCheck(v8::Isolate*, v8::Local<v8::Value>
); |
57 {% if has_partial_interface %} | 57 {% if has_partial_interface %} |
58 static WrapperTypeInfo wrapperTypeInfo; | 58 static WrapperTypeInfo wrapperTypeInfo; |
59 {% else %} | 59 {% else %} |
60 static const WrapperTypeInfo wrapperTypeInfo; | 60 static const WrapperTypeInfo wrapperTypeInfo; |
61 {% endif %} | 61 {% endif %} |
62 static void refObject(ScriptWrappable*); | 62 static void refObject(ScriptWrappable*); |
63 static void derefObject(ScriptWrappable*); | 63 static void derefObject(ScriptWrappable*); |
64 static void trace(Visitor* visitor, ScriptWrappable* scriptWrappable) | 64 template<typename VisitorDispatcher> |
| 65 static void trace(VisitorDispatcher visitor, ScriptWrappable* scriptWrappabl
e) |
65 { | 66 { |
66 {% if gc_type == 'GarbageCollectedObject' %} | 67 {% if gc_type == 'GarbageCollectedObject' %} |
67 visitor->trace(scriptWrappable->toImpl<{{cpp_class}}>()); | 68 visitor->trace(scriptWrappable->toImpl<{{cpp_class}}>()); |
68 {% elif gc_type == 'WillBeGarbageCollectedObject' %} | 69 {% elif gc_type == 'WillBeGarbageCollectedObject' %} |
69 #if ENABLE(OILPAN) | 70 #if ENABLE(OILPAN) |
70 visitor->trace(scriptWrappable->toImpl<{{cpp_class}}>()); | 71 visitor->trace(scriptWrappable->toImpl<{{cpp_class}}>()); |
71 #endif | 72 #endif |
72 {% endif %} | 73 {% endif %} |
73 } | 74 } |
74 {% if has_visit_dom_wrapper %} | 75 {% if has_visit_dom_wrapper %} |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 | 196 |
196 {% endif %}{# has_custom_to_v8 #} | 197 {% endif %}{# has_custom_to_v8 #} |
197 {% if has_event_constructor %} | 198 {% if has_event_constructor %} |
198 bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionSta
te&, const v8::FunctionCallbackInfo<v8::Value>& info); | 199 bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionSta
te&, const v8::FunctionCallbackInfo<v8::Value>& info); |
199 | 200 |
200 {% endif %} | 201 {% endif %} |
201 } // namespace blink | 202 } // namespace blink |
202 {% endfilter %} | 203 {% endfilter %} |
203 | 204 |
204 #endif // {{v8_class}}_h | 205 #endif // {{v8_class}}_h |
OLD | NEW |