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

Unified Diff: mojo/public/bindings/generators/cpp_templates/module-internal.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
« no previous file with comments | « no previous file | mojo/public/bindings/generators/cpp_templates/module.cc.tmpl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/bindings/generators/cpp_templates/module-internal.h.tmpl
diff --git a/mojo/public/bindings/generators/cpp_templates/module-internal.h.tmpl b/mojo/public/bindings/generators/cpp_templates/module-internal.h.tmpl
index d298cc3f2a473a2649910fd208382da7b47434b9..e804fc638d7bf50f3014728f97923c7537986dbc 100644
--- a/mojo/public/bindings/generators/cpp_templates/module-internal.h.tmpl
+++ b/mojo/public/bindings/generators/cpp_templates/module-internal.h.tmpl
@@ -13,7 +13,9 @@
#include "{{import.module.path}}-internal.h"
{%- endfor %}
+{%- if namespace %}
namespace {{namespace}} {
+{%- endif %}
{#--- Wrapper forward declarations #}
{% for struct in structs %}
@@ -32,6 +34,8 @@ namespace internal {
#pragma pack(pop)
} // namespace internal
+{%- if namespace %}
} // namespace {{namespace}}
+{%- endif %}
#endif // {{header_guard}}
« no previous file with comments | « no previous file | mojo/public/bindings/generators/cpp_templates/module.cc.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698