OLD | NEW |
---|---|
1 {% filter format_blink_cpp_source_code %} | 1 {% filter format_blink_cpp_source_code %} |
2 | 2 |
3 {% include 'copyright_block.txt' %} | 3 {% include 'copyright_block.txt' %} |
4 #ifndef {{v8_class}}_h | 4 #ifndef {{v8_class}}_h |
5 #define {{v8_class}}_h | 5 #define {{v8_class}}_h |
6 | 6 |
7 {% for filename in header_includes %} | 7 {% for filename in header_includes %} |
8 #include "{{filename}}" | 8 #include "{{filename}}" |
9 {% endfor %} | 9 {% endfor %} |
10 | 10 |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
141 {{exported}}static void preparePrototypeAndInterfaceObject(v8::Local<v8::Conte xt>, const DOMWrapperWorld&, v8::Local<v8::Object> prototypeObject, v8::Local<v8 ::Function> interfaceObject, v8::Local<v8::FunctionTemplate> interfaceTemplate); | 141 {{exported}}static void preparePrototypeAndInterfaceObject(v8::Local<v8::Conte xt>, const DOMWrapperWorld&, v8::Local<v8::Object> prototypeObject, v8::Local<v8 ::Function> interfaceObject, v8::Local<v8::FunctionTemplate> interfaceTemplate); |
142 {% endif %} | 142 {% endif %} |
143 {% if has_partial_interface %} | 143 {% if has_partial_interface %} |
144 {{exported}}static void updateWrapperTypeInfo(InstallTemplateFunction, Prepare PrototypeAndInterfaceObjectFunction); | 144 {{exported}}static void updateWrapperTypeInfo(InstallTemplateFunction, Prepare PrototypeAndInterfaceObjectFunction); |
145 {{exported}}static void install{{v8_class}}Template(v8::Isolate*, const DOMWra pperWorld&, v8::Local<v8::FunctionTemplate> interfaceTemplate); | 145 {{exported}}static void install{{v8_class}}Template(v8::Isolate*, const DOMWra pperWorld&, v8::Local<v8::FunctionTemplate> interfaceTemplate); |
146 {% for method in methods if method.overloads and method.overloads.has_partial_ overloads %} | 146 {% for method in methods if method.overloads and method.overloads.has_partial_ overloads %} |
147 {{exported}}static void register{{method.name | blink_capitalize}}MethodForPar tialInterface(void (*)(const v8::FunctionCallbackInfo<v8::Value>&)); | 147 {{exported}}static void register{{method.name | blink_capitalize}}MethodForPar tialInterface(void (*)(const v8::FunctionCallbackInfo<v8::Value>&)); |
148 {% endfor %} | 148 {% endfor %} |
149 {% endif %} | 149 {% endif %} |
150 | 150 |
151 {% if needs_runtime_enabled_installer %} | |
152 static void installRuntimeEnabledFeatures(v8::Isolate*, const DOMWrapperWorld& , v8::Local<v8::Object>, v8::Local<v8::Object>, v8::Local<v8::Function>, v8::Loc al<v8::FunctionTemplate>); | |
Yuki
2017/01/11 11:30:57
Could you write argument names for non-trivial cas
peria
2017/01/11 12:41:16
Done.
| |
153 {% endif %} | |
154 | |
151 {% for feature in origin_trial_features %} | 155 {% for feature in origin_trial_features %} |
152 | 156 |
153 static void install{{feature.name}}(v8::Isolate*, const DOMWrapperWorld&, v8:: Local<v8::Object> instance, v8::Local<v8::Object> prototype, v8::Local<v8::Funct ion> interface); | 157 static void install{{feature.name}}(v8::Isolate*, const DOMWrapperWorld&, v8:: Local<v8::Object> instance, v8::Local<v8::Object> prototype, v8::Local<v8::Funct ion> interface); |
154 static void install{{feature.name}}(ScriptState*, v8::Local<v8::Object> instan ce); | 158 static void install{{feature.name}}(ScriptState*, v8::Local<v8::Object> instan ce); |
155 {% if not feature.needs_instance %} | 159 {% if not feature.needs_instance %} |
156 static void install{{feature.name}}(ScriptState*); | 160 static void install{{feature.name}}(ScriptState*); |
157 {% endif %} | 161 {% endif %} |
158 {% endfor %} | 162 {% endfor %} |
159 {% if has_partial_interface %} | 163 {% if has_partial_interface %} |
160 | 164 |
161 private: | 165 private: |
162 static InstallTemplateFunction install{{v8_class}}TemplateFunction; | 166 static InstallTemplateFunction install{{v8_class}}TemplateFunction; |
163 {% endif %} | 167 {% endif %} |
164 }; | 168 }; |
165 | 169 |
166 {% if has_event_constructor %} | 170 {% if has_event_constructor %} |
167 {{exported}}bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionState&, const v8::FunctionCallbackInfo<v8::Value>& info); | 171 {{exported}}bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionState&, const v8::FunctionCallbackInfo<v8::Value>& info); |
168 | 172 |
169 {% endif %} | 173 {% endif %} |
170 template <> | 174 template <> |
171 struct V8TypeOf<{{cpp_class}}> { | 175 struct V8TypeOf<{{cpp_class}}> { |
172 typedef {{v8_class}} Type; | 176 typedef {{v8_class}} Type; |
173 }; | 177 }; |
174 | 178 |
175 } // namespace blink | 179 } // namespace blink |
176 | 180 |
177 #endif // {{v8_class}}_h | 181 #endif // {{v8_class}}_h |
178 | 182 |
179 {% endfilter %}{# format_blink_cpp_source_code #} | 183 {% endfilter %}{# format_blink_cpp_source_code #} |
OLD | NEW |