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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 Detailed explanation: https://codereview.chromium.org/139173012 | 147 Detailed explanation: https://codereview.chromium.org/139173012 |
148 FIXME: Remove this internal field, and share one field for either: | 148 FIXME: Remove this internal field, and share one field for either: |
149 * a persistent handle (if the object is in oilpan) or | 149 * a persistent handle (if the object is in oilpan) or |
150 * a C++ pointer to the DOM object (if the object is not in oilpan) #} | 150 * a C++ pointer to the DOM object (if the object is not in oilpan) #} |
151 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + {
{custom_internal_field_counter}}; | 151 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + {
{custom_internal_field_counter}}; |
152 {# End custom internal fields #} | 152 {# End custom internal fields #} |
153 {% if interface_name == 'Window' %} | 153 {% if interface_name == 'Window' %} |
154 static bool namedSecurityCheckCustom(v8::Local<v8::Object> host, v8::Local<v
8::Value> key, v8::AccessType, v8::Local<v8::Value> data); | 154 static bool namedSecurityCheckCustom(v8::Local<v8::Object> host, v8::Local<v
8::Value> key, v8::AccessType, v8::Local<v8::Value> data); |
155 static bool indexedSecurityCheckCustom(v8::Local<v8::Object> host, uint32_t
index, v8::AccessType, v8::Local<v8::Value> data); | 155 static bool indexedSecurityCheckCustom(v8::Local<v8::Object> host, uint32_t
index, v8::AccessType, v8::Local<v8::Value> data); |
156 {% endif %} | 156 {% endif %} |
157 static void installConditionallyEnabledProperties(v8::Handle<v8::Object>, v8
::Isolate*){% if has_conditional_attributes %}; | 157 static void installConditionallyEnabledProperties(v8::Local<v8::Object>, v8:
:Isolate*){% if has_conditional_attributes %}; |
158 {% else %} { } | 158 {% else %} { } |
159 {% endif %} | 159 {% endif %} |
160 static void installConditionallyEnabledMethods(v8::Handle<v8::Object>, v8::I
solate*){% if conditionally_enabled_methods %}; | 160 static void installConditionallyEnabledMethods(v8::Local<v8::Object>, v8::Is
olate*){% if conditionally_enabled_methods %}; |
161 {% else %} { } | 161 {% else %} { } |
162 {% endif %} | 162 {% endif %} |
163 {% if has_partial_interface %} | 163 {% if has_partial_interface %} |
164 static void updateWrapperTypeInfo(InstallTemplateFunction, InstallConditiona
llyEnabledMethodsFunction); | 164 static void updateWrapperTypeInfo(InstallTemplateFunction, InstallConditiona
llyEnabledMethodsFunction); |
165 static void install{{v8_class}}Template(v8::Handle<v8::FunctionTemplate>, v8
::Isolate*); | 165 static void install{{v8_class}}Template(v8::Handle<v8::FunctionTemplate>, v8
::Isolate*); |
166 {% for method in methods if method.overloads and method.overloads.has_partia
l_overloads %} | 166 {% for method in methods if method.overloads and method.overloads.has_partia
l_overloads %} |
167 static void register{{method.name | blink_capitalize}}MethodForPartialInterf
ace(void (*)(const v8::FunctionCallbackInfo<v8::Value>&)); | 167 static void register{{method.name | blink_capitalize}}MethodForPartialInterf
ace(void (*)(const v8::FunctionCallbackInfo<v8::Value>&)); |
168 {% endfor %} | 168 {% endfor %} |
169 {% endif %} | 169 {% endif %} |
170 {% if has_partial_interface %} | 170 {% if has_partial_interface %} |
(...skipping 24 matching lines...) Expand all Loading... |
195 | 195 |
196 {% endif %}{# has_custom_to_v8 #} | 196 {% endif %}{# has_custom_to_v8 #} |
197 {% if has_event_constructor %} | 197 {% if has_event_constructor %} |
198 bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionSta
te&, const v8::FunctionCallbackInfo<v8::Value>& info); | 198 bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionSta
te&, const v8::FunctionCallbackInfo<v8::Value>& info); |
199 | 199 |
200 {% endif %} | 200 {% endif %} |
201 } // namespace blink | 201 } // namespace blink |
202 {% endfilter %} | 202 {% endfilter %} |
203 | 203 |
204 #endif // {{v8_class}}_h | 204 #endif // {{v8_class}}_h |
OLD | NEW |