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
3 // found in the LICENSE file.
5 // This file has been auto-generated by {{code_generator}}. DO NOT MODIFY!
7 #ifndef {{v8_class_or_partial}}_h
8 #define {{v8_class_or_partial}}_h
10 {% for filename in header_includes %}
11 #include "{{filename}}"
16 class {{v8_class_or_partial}} {
18 static void initialize();
19 {% for method in methods if method.is_custom %}
20 {% filter conditional(method.conditional_string) %}
21 static void {{method.name}}MethodCustom(const v8::FunctionCallbackInfo<v8::Value>&);
24 {% for attribute in attributes %}
25 {% if attribute.has_custom_getter %}{# FIXME: and not attribute.implemented_by #}
26 {% filter conditional(attribute.conditional_string) %}
27 static void {{attribute.name}}AttributeGetterCustom(const v8::PropertyCallbackInfo<v8::Value>&);
30 {% if attribute.has_custom_setter %}{# FIXME: and not attribute.implemented_by #}
31 {% filter conditional(attribute.conditional_string) %}
32 static void {{attribute.name}}AttributeSetterCustom(v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&);
36 {# Custom internal fields #}
37 static void installConditionallyEnabledMethods(v8::Handle<v8::Object>, v8::Isolate*);
39 static void install{{v8_class}}Template(v8::Handle<v8::FunctionTemplate>, v8::Isolate*);
42 #endif // {{v8_class_or_partial}}_h