OLD | NEW |
1 {# http://www.chromium.org/blink/coding-style#TOC-License #} | 1 {# http://www.chromium.org/blink/coding-style#TOC-License #} |
2 /* | 2 /* |
3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 static void visitDOMWrapper(void*, const v8::Persistent<v8::Object>&, v8::Is
olate*); | 57 static void visitDOMWrapper(void*, const v8::Persistent<v8::Object>&, v8::Is
olate*); |
58 {% endif %} | 58 {% endif %} |
59 {% if is_active_dom_object %} | 59 {% if is_active_dom_object %} |
60 static ActiveDOMObject* toActiveDOMObject(v8::Handle<v8::Object>); | 60 static ActiveDOMObject* toActiveDOMObject(v8::Handle<v8::Object>); |
61 {% endif %} | 61 {% endif %} |
62 {% for method in methods if method.is_custom %} | 62 {% for method in methods if method.is_custom %} |
63 {% filter conditional(method.conditional_string) %} | 63 {% filter conditional(method.conditional_string) %} |
64 static void {{method.name}}MethodCustom(const v8::FunctionCallbackInfo<v8::V
alue>&); | 64 static void {{method.name}}MethodCustom(const v8::FunctionCallbackInfo<v8::V
alue>&); |
65 {% endfilter %} | 65 {% endfilter %} |
66 {% endfor %} | 66 {% endfor %} |
| 67 {% if has_constructor %} |
| 68 static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
| 69 {% endif %} |
67 {% for attribute in attributes %} | 70 {% for attribute in attributes %} |
68 {% if attribute.has_custom_getter %}{# FIXME: and not attribute.implemented_
by #} | 71 {% if attribute.has_custom_getter %}{# FIXME: and not attribute.implemented_
by #} |
69 {% filter conditional(attribute.conditional_string) %} | 72 {% filter conditional(attribute.conditional_string) %} |
70 static void {{attribute.name}}AttributeGetterCustom(const v8::PropertyCallba
ckInfo<v8::Value>&); | 73 static void {{attribute.name}}AttributeGetterCustom(const v8::PropertyCallba
ckInfo<v8::Value>&); |
71 {% endfilter %} | 74 {% endfilter %} |
72 {% endif %} | 75 {% endif %} |
73 {% if attribute.has_custom_setter %}{# FIXME: and not attribute.implemented_
by #} | 76 {% if attribute.has_custom_setter %}{# FIXME: and not attribute.implemented_
by #} |
74 {% filter conditional(attribute.conditional_string) %} | 77 {% filter conditional(attribute.conditional_string) %} |
75 static void {{attribute.name}}AttributeSetterCustom(v8::Local<v8::Value>, co
nst v8::PropertyCallbackInfo<void>&); | 78 static void {{attribute.name}}AttributeSetterCustom(v8::Local<v8::Value>, co
nst v8::PropertyCallbackInfo<void>&); |
76 {% endfilter %} | 79 {% endfilter %} |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 | 215 |
213 template<class CallbackInfo, class Wrappable> | 216 template<class CallbackInfo, class Wrappable> |
214 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<{{
cpp_class}} > impl, Wrappable* wrappable) | 217 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<{{
cpp_class}} > impl, Wrappable* wrappable) |
215 { | 218 { |
216 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); | 219 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); |
217 } | 220 } |
218 | 221 |
219 } | 222 } |
220 {% endfilter %} | 223 {% endfilter %} |
221 #endif // {{v8_class}}_h | 224 #endif // {{v8_class}}_h |
OLD | NEW |