| 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 #include "config.h" | 7 #include "config.h" | 
| 8 {% filter conditional(conditional_string) %} | 8 {% filter conditional(conditional_string) %} | 
| 9 #include "{{v8_class}}.h" | 9 #include "{{v8_class}}.h" | 
| 10 | 10 | 
| (...skipping 19 matching lines...) Expand all  Loading... | 
| 30 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in {{cpp_class}
     }.h. | 30 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in {{cpp_class}
     }.h. | 
| 31 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in | 31 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in | 
| 32 // bindings/core/v8/ScriptWrappable.h. | 32 // bindings/core/v8/ScriptWrappable.h. | 
| 33 const WrapperTypeInfo& {{cpp_class}}::s_wrapperTypeInfo = {{v8_class}}::wrapperT
     ypeInfo; | 33 const WrapperTypeInfo& {{cpp_class}}::s_wrapperTypeInfo = {{v8_class}}::wrapperT
     ypeInfo; | 
| 34 | 34 | 
| 35 {% endif %} | 35 {% endif %} | 
| 36 namespace {{cpp_class}}V8Internal { | 36 namespace {{cpp_class}}V8Internal { | 
| 37 | 37 | 
| 38 template <typename T> void V8_USE(T) { } | 38 template <typename T> void V8_USE(T) { } | 
| 39 | 39 | 
|  | 40 {# Constants #} | 
|  | 41 {% from 'constants.cpp' import constant_getter_callback | 
|  | 42        with context %} | 
|  | 43 {% for constant in special_getter_constants %} | 
|  | 44 {{constant_getter_callback(constant)}} | 
|  | 45 {% endfor %} | 
| 40 {# Attributes #} | 46 {# Attributes #} | 
| 41 {% from 'attributes.cpp' import constructor_getter_callback, | 47 {% from 'attributes.cpp' import constructor_getter_callback, | 
| 42        attribute_getter, attribute_getter_callback, | 48        attribute_getter, attribute_getter_callback, | 
| 43        attribute_setter, attribute_setter_callback, | 49        attribute_setter, attribute_setter_callback, | 
| 44        attribute_getter_implemented_in_private_script, | 50        attribute_getter_implemented_in_private_script, | 
| 45        attribute_setter_implemented_in_private_script | 51        attribute_setter_implemented_in_private_script | 
| 46        with context %} | 52        with context %} | 
| 47 {% for attribute in attributes if not attribute.constructor_type %} | 53 {% for attribute in attributes if not attribute.constructor_type %} | 
| 48 {% if attribute.should_be_exposed_to_script %} | 54 {% if attribute.should_be_exposed_to_script %} | 
| 49 {% for world_suffix in attribute.world_suffixes %} | 55 {% for world_suffix in attribute.world_suffixes %} | 
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 147 {{method_implemented_in_private_script(method)}} | 153 {{method_implemented_in_private_script(method)}} | 
| 148 {% endfor %} | 154 {% endfor %} | 
| 149 {% for attribute in attributes if attribute.is_implemented_in_private_script %} | 155 {% for attribute in attributes if attribute.is_implemented_in_private_script %} | 
| 150 {{attribute_getter_implemented_in_private_script(attribute)}} | 156 {{attribute_getter_implemented_in_private_script(attribute)}} | 
| 151 {% if not attribute.is_read_only or attribute.put_forwards %} | 157 {% if not attribute.is_read_only or attribute.put_forwards %} | 
| 152 {{attribute_setter_implemented_in_private_script(attribute)}} | 158 {{attribute_setter_implemented_in_private_script(attribute)}} | 
| 153 {% endif %} | 159 {% endif %} | 
| 154 {% endfor %} | 160 {% endfor %} | 
| 155 } // namespace blink | 161 } // namespace blink | 
| 156 {% endfilter %} | 162 {% endfilter %} | 
| OLD | NEW | 
|---|