Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(621)

Unified Diff: mojo/public/bindings/generators/cpp_templates/module.cc.tmpl

Issue 226263002: Mojo: Move mojo/public/bindings to mojo/public/tools/bindings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/public/bindings/generators/cpp_templates/module.cc.tmpl
diff --git a/mojo/public/bindings/generators/cpp_templates/module.cc.tmpl b/mojo/public/bindings/generators/cpp_templates/module.cc.tmpl
deleted file mode 100644
index d99a3e2424ac921fff19a65197fc9a6c98ba7165..0000000000000000000000000000000000000000
--- a/mojo/public/bindings/generators/cpp_templates/module.cc.tmpl
+++ /dev/null
@@ -1,68 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#if defined(__clang__)
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored "-Wunused-private-field"
-#endif
-
-#include "{{module.path}}.h"
-
-#include "mojo/public/cpp/bindings/lib/bindings_serialization.h"
-#include "mojo/public/cpp/bindings/lib/message_builder.h"
-
-{%- if namespace %}
-namespace {{namespace}} {
-{%- endif %}
-namespace internal {
-namespace {
-
-#pragma pack(push, 1)
-
-{#--- Interface parameter definitions #}
-{%- for interface in interfaces %}
-{%- for method in interface.methods %}
-{%- set method_name = "k%s_%s_Name"|format(interface.name, method.name) %}
-const uint32_t {{method_name}} = {{method.ordinal}};
-{% set struct = interface|struct_from_method(method) %}
-{%- include "params_definition.tmpl" %}
-{%- if method.response_parameters != None %}
-{%- set struct = interface|response_struct_from_method(method) %}
-{%- include "params_definition.tmpl" %}
-{%- endif %}
-{%- endfor %}
-{%- endfor %}
-
-#pragma pack(pop)
-
-} // namespace
-
-{#--- Struct destructors #}
-{%- for struct in structs %}
-{%- include "struct_destructor.tmpl" %}
-{%- endfor %}
-
-{#--- Struct definitions #}
-{% for struct in structs %}
-{%- include "struct_definition.tmpl" %}
-{%- endfor %}
-
-} // namespace internal
-
-{#--- Struct builder definitions #}
-{%- for struct in structs %}
-{%- include "struct_builder_definition.tmpl" %}
-{%- endfor %}
-
-{#--- Interface definitions #}
-{%- for interface in interfaces %}
-{%- include "interface_definition.tmpl" %}
-{%- endfor %}
-{%- if namespace %}
-} // namespace {{namespace}}
-{%- endif %}
-
-#if defined(__clang__)
-#pragma clang diagnostic pop
-#endif

Powered by Google App Engine
This is Rietveld 408576698