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

Unified Diff: third_party/WebKit/Source/build/scripts/name_utilities.py

Issue 2620883002: Convert Settings.in, CSSValueKeywords.in, SVGCSSValueKeywords.in to json5 (Closed)
Patch Set: Fix comment indent in data 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/name_utilities.py
diff --git a/third_party/WebKit/Source/build/scripts/name_utilities.py b/third_party/WebKit/Source/build/scripts/name_utilities.py
index 90b80ba8cc3f0b05d588a69e89144e8a7c79ca93..892d619bfc38e6528a434b7a80f5ab41027e5a32 100644
--- a/third_party/WebKit/Source/build/scripts/name_utilities.py
+++ b/third_party/WebKit/Source/build/scripts/name_utilities.py
@@ -93,6 +93,14 @@ def script_name(entry):
return os.path.basename(entry['name'])
+def cpp_bool(value):
+ if value is True:
+ return 'true'
+ if value is False:
+ return 'false'
+ return value
dcheng 2017/01/16 05:52:52 I'm a bit surprised that this isn't just: return
ktyliu 2017/01/16 06:19:56 Added comment pointing out it can be a platform-de
+
+
def cpp_name(entry):
return entry['ImplementedAs'] or script_name(entry)

Powered by Google App Engine
This is Rietveld 408576698