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

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

Issue 224873002: Makes it so mojom files don't need a module (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove viewmanager hack 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
index 33bd46bcd0c79a5b1d93a3abc50887da06465bf1..d99a3e2424ac921fff19a65197fc9a6c98ba7165 100644
--- a/mojo/public/bindings/generators/cpp_templates/module.cc.tmpl
+++ b/mojo/public/bindings/generators/cpp_templates/module.cc.tmpl
@@ -12,7 +12,9 @@
#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 {
@@ -57,7 +59,9 @@ const uint32_t {{method_name}} = {{method.ordinal}};
{%- for interface in interfaces %}
{%- include "interface_definition.tmpl" %}
{%- endfor %}
+{%- if namespace %}
} // namespace {{namespace}}
+{%- endif %}
#if defined(__clang__)
#pragma clang diagnostic pop

Powered by Google App Engine
This is Rietveld 408576698