| 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 {% if parent_interface %} | 154 {% if parent_interface %} |
| 155 return static_cast<{{cpp_class}}*>(V8{{parent_interface}}::fromInternalP
ointer(object)); | 155 return static_cast<{{cpp_class}}*>(V8{{parent_interface}}::fromInternalP
ointer(object)); |
| 156 {% else %} | 156 {% else %} |
| 157 return static_cast<{{cpp_class}}*>(object); | 157 return static_cast<{{cpp_class}}*>(object); |
| 158 {% endif %} | 158 {% endif %} |
| 159 } | 159 } |
| 160 {% if interface_name == 'Window' %} | 160 {% if interface_name == 'Window' %} |
| 161 static bool namedSecurityCheckCustom(v8::Local<v8::Object> host, v8::Local<v
8::Value> key, v8::AccessType, v8::Local<v8::Value> data); | 161 static bool namedSecurityCheckCustom(v8::Local<v8::Object> host, v8::Local<v
8::Value> key, v8::AccessType, v8::Local<v8::Value> data); |
| 162 static bool indexedSecurityCheckCustom(v8::Local<v8::Object> host, uint32_t
index, v8::AccessType, v8::Local<v8::Value> data); | 162 static bool indexedSecurityCheckCustom(v8::Local<v8::Object> host, uint32_t
index, v8::AccessType, v8::Local<v8::Value> data); |
| 163 {% endif %} | 163 {% endif %} |
| 164 static void installConditionallyEnabledProperties(v8::Handle<v8::Object>, v8
::Isolate*){% if has_conditional_attributes %}; | 164 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, {{cpp
_class}}*, v8::Isolate*){% if has_per_context_enabled_attributes %}; |
| 165 {% else %} { } | 165 {% else %} { } |
| 166 {% endif %} | 166 {% endif %} |
| 167 static void installConditionallyEnabledMethods(v8::Handle<v8::Object>, v8::I
solate*){% if conditionally_enabled_methods %}; | 167 static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isol
ate*){% if per_context_enabled_methods %}; |
| 168 {% else %} { } | 168 {% else %} { } |
| 169 {% endif %} | 169 {% endif %} |
| 170 {# Element wrappers #} | 170 {# Element wrappers #} |
| 171 {% if interface_name == 'HTMLElement' %} | 171 {% if interface_name == 'HTMLElement' %} |
| 172 friend v8::Handle<v8::Object> createV8HTMLWrapper(HTMLElement*, v8::Handle<v
8::Object> creationContext, v8::Isolate*); | 172 friend v8::Handle<v8::Object> createV8HTMLWrapper(HTMLElement*, v8::Handle<v
8::Object> creationContext, v8::Isolate*); |
| 173 friend v8::Handle<v8::Object> createV8HTMLDirectWrapper(HTMLElement*, v8::Ha
ndle<v8::Object> creationContext, v8::Isolate*); | 173 friend v8::Handle<v8::Object> createV8HTMLDirectWrapper(HTMLElement*, v8::Ha
ndle<v8::Object> creationContext, v8::Isolate*); |
| 174 {% elif interface_name == 'SVGElement' %} | 174 {% elif interface_name == 'SVGElement' %} |
| 175 friend v8::Handle<v8::Object> createV8SVGWrapper(SVGElement*, v8::Handle<v8:
:Object> creationContext, v8::Isolate*); | 175 friend v8::Handle<v8::Object> createV8SVGWrapper(SVGElement*, v8::Handle<v8:
:Object> creationContext, v8::Isolate*); |
| 176 friend v8::Handle<v8::Object> createV8SVGDirectWrapper(SVGElement*, v8::Hand
le<v8::Object> creationContext, v8::Isolate*); | 176 friend v8::Handle<v8::Object> createV8SVGDirectWrapper(SVGElement*, v8::Hand
le<v8::Object> creationContext, v8::Isolate*); |
| 177 friend v8::Handle<v8::Object> createV8SVGFallbackWrapper(SVGElement*, v8::Ha
ndle<v8::Object> creationContext, v8::Isolate*); | 177 friend v8::Handle<v8::Object> createV8SVGFallbackWrapper(SVGElement*, v8::Ha
ndle<v8::Object> creationContext, v8::Isolate*); |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); | 287 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); |
| 288 } | 288 } |
| 289 | 289 |
| 290 {% if has_event_constructor %} | 290 {% if has_event_constructor %} |
| 291 bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionSta
te&, const v8::FunctionCallbackInfo<v8::Value>& info, const String& = ""); | 291 bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionSta
te&, const v8::FunctionCallbackInfo<v8::Value>& info, const String& = ""); |
| 292 | 292 |
| 293 {% endif %} | 293 {% endif %} |
| 294 } | 294 } |
| 295 {% endfilter %} | 295 {% endfilter %} |
| 296 #endif // {{v8_class}}_h | 296 #endif // {{v8_class}}_h |
| OLD | NEW |