| Index: Source/bindings/templates/callback_interface.cpp
|
| diff --git a/Source/bindings/templates/callback_interface.cpp b/Source/bindings/templates/callback_interface.cpp
|
| index 21a8969f9e0cbb249e993aca5cac66928f84a3ea..d8461bbef8da9b28cf4f03bb06fdb268e0fb95f9 100644
|
| --- a/Source/bindings/templates/callback_interface.cpp
|
| +++ b/Source/bindings/templates/callback_interface.cpp
|
| @@ -1,4 +1,24 @@
|
| /*
|
| + This file is part of the Blink open source project.
|
| + This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY!
|
| +
|
| + This library is free software; you can redistribute it and/or
|
| + modify it under the terms of the GNU Library General Public
|
| + License as published by the Free Software Foundation; either
|
| + version 2 of the License, or (at your option) any later version.
|
| +
|
| + This library is distributed in the hope that it will be useful,
|
| + but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
| + Library General Public License for more details.
|
| +
|
| + You should have received a copy of the GNU Library General Public License
|
| + along with this library; see the file COPYING.LIB. If not, write to
|
| + the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
| + Boston, MA 02111-1307, USA.
|
| +*/
|
| +{# FIXME: Update license header
|
| +/*
|
| * Copyright (C) 2013 Google Inc. All rights reserved.
|
| *
|
| * Redistribution and use in source and binary forms, with or without
|
| @@ -29,6 +49,7 @@
|
| */
|
|
|
| // This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY!
|
| +#}
|
|
|
| #include "config.h"
|
| {% if conditional_string %}
|
| @@ -52,6 +73,8 @@ namespace WebCore {
|
| {
|
| }
|
|
|
| +// Functions
|
| +
|
| {% for method in methods %}
|
| {% if not method.custom %}
|
| {{method.return_cpp_type}} {{v8_class_name}}::{{method.name}}({{method.argument_declaration}})
|
| @@ -69,15 +92,18 @@ namespace WebCore {
|
| v8::Context::Scope scope(v8Context);
|
|
|
| {% for argument in method.arguments %}
|
| - {{argument.cpp_to_js_conversion | indent(4)}}
|
| + {{argument.cpp_to_js_conversion | indent}}
|
| if ({{argument.name}}Handle.IsEmpty()) {
|
| if (!isScriptControllerTerminating())
|
| CRASH();
|
| return true;
|
| }
|
| {% endfor %}
|
| -{% if method.arguments | length > 0 %}
|
| - v8::Handle<v8::Value> argv[] = { {{method.handles}} };
|
| +
|
| +{% if method.arguments %}
|
| + v8::Handle<v8::Value> argv[] = {
|
| + {{method.handles | indent(8)}}
|
| + };
|
| {% else %}
|
| v8::Handle<v8::Value> *argv = 0;
|
| {% endif %}
|
| @@ -87,9 +113,10 @@ namespace WebCore {
|
| }
|
|
|
| {% endif %}
|
| -{% endfor %}{# for method in methods #}
|
| +{% endfor %}
|
| } // namespace WebCore
|
|
|
| {% if conditional_string %}
|
| #endif // {{conditional_string}}
|
| {% endif %}
|
| +
|
|
|