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

Unified Diff: third_party/WebKit/Source/bindings/templates/web_module_interface.h.tmpl

Issue 2684773003: [WebAgent API]: Implement name style handling. (Closed)
Patch Set: Feedback addressed. Created 3 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
Index: third_party/WebKit/Source/bindings/templates/web_module_interface.h.tmpl
diff --git a/third_party/WebKit/Source/bindings/templates/web_module_interface.h.tmpl b/third_party/WebKit/Source/bindings/templates/web_module_interface.h.tmpl
index 4ffb1978e5c8ae65aa0c7794ad2f5225c93ac259..068070842c10f66c3bab7887976e2ff087cb29ff 100644
--- a/third_party/WebKit/Source/bindings/templates/web_module_interface.h.tmpl
+++ b/third_party/WebKit/Source/bindings/templates/web_module_interface.h.tmpl
@@ -3,8 +3,8 @@
{% include 'copyright_block.txt' %}
// TODO(dglazkov): Use chromium-style path.
-#ifndef {{class_name}}_h
-#define {{class_name}}_h
+#ifndef {{class_name.macro_case}}_H
+#define {{class_name.macro_case}}_H
{% for include_file in header_includes %}
#include "{{include_file}}"
@@ -13,13 +13,13 @@
namespace blink {
namespace api {
-class {{class_name}}{{inherits_expression}} {
+class {{class_name.upper_camel_case}}{{inherits_expression}} {
};
} // namespace api
} // namespace blink
-#endif // {{class_name}}_h
+#endif // {{class_name.macro_case}}_H
{% endfilter %}

Powered by Google App Engine
This is Rietveld 408576698