| OLD | NEW |
| 1 {# FIXME: update copyright and license header #} | 1 {# FIXME: update copyright and license header #} |
| 2 /* | 2 /* |
| 3 This file is part of the Blink open source project. | 3 This file is part of the Blink open source project. |
| 4 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! | 4 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! |
| 5 | 5 |
| 6 This library is free software; you can redistribute it and/or | 6 This library is free software; you can redistribute it and/or |
| 7 modify it under the terms of the GNU Library General Public | 7 modify it under the terms of the GNU Library General Public |
| 8 License as published by the Free Software Foundation; either | 8 License as published by the Free Software Foundation; either |
| 9 version 2 of the License, or (at your option) any later version. | 9 version 2 of the License, or (at your option) any later version. |
| 10 | 10 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 {% for filename in cpp_includes %} | 28 {% for filename in cpp_includes %} |
| 29 #include "{{filename}}" | 29 #include "{{filename}}" |
| 30 {% endfor %} | 30 {% endfor %} |
| 31 | 31 |
| 32 namespace WebCore { | 32 namespace WebCore { |
| 33 | 33 |
| 34 static void initializeScriptWrappableForInterface({{cpp_class_name}}* object) | 34 static void initializeScriptWrappableForInterface({{cpp_class_name}}* object) |
| 35 { | 35 { |
| 36 if (ScriptWrappable::wrapperCanBeStoredInObject(object)) | 36 if (ScriptWrappable::wrapperCanBeStoredInObject(object)) |
| 37 ScriptWrappable::setTypeInfoInObject(object, &{{v8_class_name}}::info); | 37 ScriptWrappable::setTypeInfoInObject(object, &{{v8_class_name}}::wrapper
TypeInfo); |
| 38 else | 38 else |
| 39 ASSERT_NOT_REACHED(); | 39 ASSERT_NOT_REACHED(); |
| 40 } | 40 } |
| 41 | 41 |
| 42 } // namespace WebCore | 42 } // namespace WebCore |
| 43 | 43 |
| 44 // In ScriptWrappable::init, the use of a local function declaration has an issu
e on Windows: | 44 // In ScriptWrappable::init, the use of a local function declaration has an issu
e on Windows: |
| 45 // the local declaration does not pick up the surrounding namespace. Therefore,
we provide this function | 45 // the local declaration does not pick up the surrounding namespace. Therefore,
we provide this function |
| 46 // in the global namespace. | 46 // in the global namespace. |
| 47 // (More info on the MSVC bug here: http://connect.microsoft.com/VisualStudio/fe
edback/details/664619/the-namespace-of-local-function-declarations-in-c) | 47 // (More info on the MSVC bug here: http://connect.microsoft.com/VisualStudio/fe
edback/details/664619/the-namespace-of-local-function-declarations-in-c) |
| 48 void webCoreInitializeScriptWrappableForInterface(WebCore::{{cpp_class_name}}* o
bject) | 48 void webCoreInitializeScriptWrappableForInterface(WebCore::{{cpp_class_name}}* o
bject) |
| 49 { | 49 { |
| 50 WebCore::initializeScriptWrappableForInterface(object); | 50 WebCore::initializeScriptWrappableForInterface(object); |
| 51 } | 51 } |
| 52 | 52 |
| 53 namespace WebCore { | 53 namespace WebCore { |
| 54 const WrapperTypeInfo {{v8_class_name}}::info = { {{v8_class_name}}::GetTemplate
, {{v8_class_name}}::derefObject, 0, 0, 0, {{v8_class_name}}::installPerContextE
nabledPrototypeProperties, 0, WrapperTypeObjectPrototype }; | 54 const WrapperTypeInfo {{v8_class_name}}::wrapperTypeInfo = { {{v8_class_name}}::
GetTemplate, {{v8_class_name}}::derefObject, 0, 0, 0, {{v8_class_name}}::install
PerContextEnabledPrototypeProperties, 0, WrapperTypeObjectPrototype }; |
| 55 | 55 |
| 56 namespace {{cpp_class_name}}V8Internal { | 56 namespace {{cpp_class_name}}V8Internal { |
| 57 | 57 |
| 58 template <typename T> void V8_USE(T) { } | 58 template <typename T> void V8_USE(T) { } |
| 59 | 59 |
| 60 {% from 'attributes.cpp' import attribute_getter, attribute_getter_callback, | 60 {% from 'attributes.cpp' import attribute_getter, attribute_getter_callback, |
| 61 attribute_setter, attribute_setter_callback | 61 attribute_setter, attribute_setter_callback |
| 62 with context %} | 62 with context %} |
| 63 {% for attribute in attributes if not attribute.is_constructor %} | 63 {% for attribute in attributes if not attribute.is_constructor %} |
| 64 {% for world_suffix in attribute.world_suffixes %} | 64 {% for world_suffix in attribute.world_suffixes %} |
| (...skipping 17 matching lines...) Expand all Loading... |
| 82 {% block configure_class_template %}{% endblock %} | 82 {% block configure_class_template %}{% endblock %} |
| 83 {% block get_template %}{% endblock %} | 83 {% block get_template %}{% endblock %} |
| 84 {% block has_instance_and_has_instance_in_any_world %}{% endblock %} | 84 {% block has_instance_and_has_instance_in_any_world %}{% endblock %} |
| 85 {% block install_per_context_attributes %}{% endblock %} | 85 {% block install_per_context_attributes %}{% endblock %} |
| 86 {% block create_wrapper_and_deref_object %}{% endblock %} | 86 {% block create_wrapper_and_deref_object %}{% endblock %} |
| 87 } // namespace WebCore | 87 } // namespace WebCore |
| 88 {% if conditional_string %} | 88 {% if conditional_string %} |
| 89 | 89 |
| 90 #endif // {{conditional_string}} | 90 #endif // {{conditional_string}} |
| 91 {% endif %} | 91 {% endif %} |
| OLD | NEW |