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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 visitor->trace(scriptWrappableBase->toImpl<{{cpp_class}}>()); | 70 visitor->trace(scriptWrappableBase->toImpl<{{cpp_class}}>()); |
71 #endif | 71 #endif |
72 {% endif %} | 72 {% endif %} |
73 } | 73 } |
74 {% if has_visit_dom_wrapper %} | 74 {% if has_visit_dom_wrapper %} |
75 static void visitDOMWrapper(v8::Isolate*, ScriptWrappableBase*, const v8::Pe
rsistent<v8::Object>&); | 75 static void visitDOMWrapper(v8::Isolate*, ScriptWrappableBase*, const v8::Pe
rsistent<v8::Object>&); |
76 {% endif %} | 76 {% endif %} |
77 {% if is_active_dom_object %} | 77 {% if is_active_dom_object %} |
78 static ActiveDOMObject* toActiveDOMObject(v8::Handle<v8::Object>); | 78 static ActiveDOMObject* toActiveDOMObject(v8::Handle<v8::Object>); |
79 {% endif %} | 79 {% endif %} |
80 {% if is_event_target %} | |
81 static EventTarget* toEventTarget(v8::Handle<v8::Object>); | |
82 {% endif %} | |
83 {% if interface_name == 'Window' %} | 80 {% if interface_name == 'Window' %} |
84 static v8::Handle<v8::ObjectTemplate> getShadowObjectTemplate(v8::Isolate*); | 81 static v8::Handle<v8::ObjectTemplate> getShadowObjectTemplate(v8::Isolate*); |
85 {% endif %} | 82 {% endif %} |
86 {% for method in methods %} | 83 {% for method in methods %} |
87 {% if method.is_custom %} | 84 {% if method.is_custom %} |
88 {% filter conditional(method.conditional_string) %} | 85 {% filter conditional(method.conditional_string) %} |
89 static void {{method.name}}MethodCustom(const v8::FunctionCallbackInfo<v8::V
alue>&); | 86 static void {{method.name}}MethodCustom(const v8::FunctionCallbackInfo<v8::V
alue>&); |
90 {% endfilter %} | 87 {% endfilter %} |
91 {% endif %} | 88 {% endif %} |
92 {% endfor %} | 89 {% endfor %} |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 | 201 |
205 {% endif %}{# has_custom_to_v8 #} | 202 {% endif %}{# has_custom_to_v8 #} |
206 {% if has_event_constructor %} | 203 {% if has_event_constructor %} |
207 bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionSta
te&, const v8::FunctionCallbackInfo<v8::Value>& info); | 204 bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionSta
te&, const v8::FunctionCallbackInfo<v8::Value>& info); |
208 | 205 |
209 {% endif %} | 206 {% endif %} |
210 } // namespace blink | 207 } // namespace blink |
211 {% endfilter %} | 208 {% endfilter %} |
212 | 209 |
213 #endif // {{v8_class}}_h | 210 #endif // {{v8_class}}_h |
OLD | NEW |