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

Unified Diff: mojo/public/bindings/generators/cpp_templates/module-internal.h.tmpl

Issue 177183002: Mojo: Include "path/to/foo.mojom.h" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unnecessary abspath Created 6 years, 10 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 | « mojo/mojo_public.gypi ('k') | mojo/public/bindings/generators/cpp_templates/module.h.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
similarity index 84%
rename from mojo/public/bindings/generators/cpp_templates/module_internal.h.tmpl
rename to mojo/public/bindings/generators/cpp_templates/module-internal.h.tmpl
index 6d483dfe2a1611d63756c8e4122370af0c217f5b..22236c033eb5b100b871d619a151baa4494df7a1 100644
--- a/mojo/public/bindings/generators/cpp_templates/module_internal.h.tmpl
+++ b/mojo/public/bindings/generators/cpp_templates/module-internal.h.tmpl
@@ -2,15 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-{%- set header_guard = "MOJO_GENERATED_BINDINGS_%s_%s_INTERNAL_H_"|
- format(module_name|upper, module_name|upper) %}
+{%- set header_guard = "%s_INTERNAL_H_"|
+ format(module_name|upper|replace("/","_")|replace(".","_")) %}
#ifndef {{header_guard}}
#define {{header_guard}}
#include "mojo/public/bindings/lib/bindings_internal.h"
{%- for import in imports %}
-#include "{{include_prefix}}{{import.module_name|camel_to_underscores}}_internal.h"
+#include "{{include_prefix}}{{import.module_name|camel_to_underscores}}-internal.h"
{%- endfor %}
namespace {{namespace}} {
« no previous file with comments | « mojo/mojo_public.gypi ('k') | mojo/public/bindings/generators/cpp_templates/module.h.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698