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

Unified Diff: third_party/WebKit/Source/build/scripts/templates/SettingsMacros.h.tmpl

Issue 2589143003: Add 'get' prefix for Settings.in generated code. (Closed)
Patch Set: Only get prefix and no capitalization. Created 3 years, 11 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/build/scripts/templates/SettingsMacros.h.tmpl
diff --git a/third_party/WebKit/Source/build/scripts/templates/SettingsMacros.h.tmpl b/third_party/WebKit/Source/build/scripts/templates/SettingsMacros.h.tmpl
index b97ad0c742f24eb88419745a3823c7d18a818e3b..60677760d3ee31c5dcba3633a73d13e341bb2fe6 100644
--- a/third_party/WebKit/Source/build/scripts/templates/SettingsMacros.h.tmpl
+++ b/third_party/WebKit/Source/build/scripts/templates/SettingsMacros.h.tmpl
@@ -6,7 +6,7 @@
#define SETTINGS_GETTERS_AND_SETTERS \
{% for setting in settings %}
- {{setting.type|to_passing_type}} {{setting.name}}() const { return m_{{setting.name}}; } \
+ {{setting.type|to_passing_type}} get{{setting.name|upper_first}}() const { return m_{{setting.name}}; } \
void set{{setting.name|upper_first}}({{setting.type|to_passing_type}} {{setting.name}}); \
{% endfor %}
void setFromStrings(const String& name, const String& value);

Powered by Google App Engine
This is Rietveld 408576698