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

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

Issue 2329463004: ABANDONED CL: Changes needed to make things compile after running rewrite_to_chrome_style tool. (Closed)
Patch Set: More fixes - things build fine at this point. Created 3 years, 8 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 c21f1b65b4465418fc796c59f930e24e84aea64b..18e5f9cca31a51b1793109bcdef5ab96d061f882 100644
--- a/third_party/WebKit/Source/build/scripts/templates/SettingsMacros.h.tmpl
+++ b/third_party/WebKit/Source/build/scripts/templates/SettingsMacros.h.tmpl
@@ -6,8 +6,8 @@
#define SETTINGS_GETTERS_AND_SETTERS \
{% for setting in settings %}
- {{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}}); \
+ {{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);
// End of SETTINGS_GETTERS_AND_SETTERS.
@@ -32,31 +32,31 @@
#define SETTINGS_SETTER_BODIES \
{% for setting in settings %}
-void Settings::set{{setting.name|upper_first}}({{setting.type|to_passing_type}} {{setting.name}}) { \
+void Settings::Set{{setting.name|upper_first}}({{setting.type|to_passing_type}} {{setting.name}}) { \
if (m_{{setting.name}} == {{setting.name}}) \
return; \
m_{{setting.name}} = {{setting.name}}; \
{% if setting.invalidate %}
- invalidate(SettingsDelegate::{{setting.invalidate}}Change); \
+ Invalidate(SettingsDelegate::k{{setting.invalidate}}Change); \
{% endif %}
} \
{% endfor %}
void Settings::setFromStrings(const String& name, const String& value) { \
{% for setting in settings %}
if (name == "{{setting.name}}") { \
- set{{setting.name|upper_first}}( \
+ Set{{setting.name|upper_first}}( \
{% if setting.type == 'String' %}
value \
{% elif setting.type == 'bool' %}
- value.isEmpty() || value == "true" \
+ value.IsEmpty() || value == "true" \
{% elif setting.type == 'int' %}
- value.toInt() \
+ value.ToInt() \
{% elif setting.type == 'float' %}
- value.toFloat() \
+ value.ToFloat() \
{% elif setting.type == 'double' %}
- value.toDouble() \
+ value.ToDouble() \
{% else %}
- static_cast<{{setting.type}}>(value.toInt()) \
+ static_cast<{{setting.type}}>(value.ToInt()) \
{% endif %}
); \
return; \

Powered by Google App Engine
This is Rietveld 408576698