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

Unified Diff: mojo/public/bindings/generators/cpp_templates/module.h.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.h.tmpl
diff --git a/mojo/public/bindings/generators/cpp_templates/module.h.tmpl b/mojo/public/bindings/generators/cpp_templates/module.h.tmpl
index 1912d5cd0cd8730abb54ae1d524a9332d02d64b5..c2233861c33c2aa05ec4813c15f7b3748a604985 100644
--- a/mojo/public/bindings/generators/cpp_templates/module.h.tmpl
+++ b/mojo/public/bindings/generators/cpp_templates/module.h.tmpl
@@ -16,7 +16,9 @@
#include "{{import.module.path}}.h"
{%- endfor %}
+{%- if namespace %}
namespace {{namespace}} {
+{%- endif %}
{#--- Enums #}
{% for enum in enums %}
@@ -43,6 +45,8 @@ namespace {{namespace}} {
{% include "interface_stub_declaration.tmpl" %}
{%- endfor %}
+{%- if namespace %}
} // namespace {{namespace}}
+{%- endif %}
#endif // {{header_guard}}
« no previous file with comments | « mojo/public/bindings/generators/cpp_templates/module.cc.tmpl ('k') | mojo/public/bindings/pylib/parse/mojo_parser.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698