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

Unified Diff: tools/json_schema_compiler/cpp_util.py

Issue 10824002: JSON Schema Compiler supports functions as PropertyTypes. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 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: tools/json_schema_compiler/cpp_util.py
diff --git a/tools/json_schema_compiler/cpp_util.py b/tools/json_schema_compiler/cpp_util.py
index e58ff1d045da13434beecb8fa470172818d78351..fd13235e8bd7e8800273345f4072d46fabf7e6c6 100644
--- a/tools/json_schema_compiler/cpp_util.py
+++ b/tools/json_schema_compiler/cpp_util.py
@@ -55,6 +55,7 @@ def GetValueType(type_):
PropertyType.DOUBLE: 'Value::TYPE_DOUBLE',
PropertyType.ENUM: 'Value::TYPE_STRING',
PropertyType.OBJECT: 'Value::TYPE_DICTIONARY',
+ PropertyType.FUNCTION: 'Value::TYPE_DICTIONARY',
PropertyType.ARRAY: 'Value::TYPE_LIST',
PropertyType.BINARY: 'Value::TYPE_BINARY',
}[type_]

Powered by Google App Engine
This is Rietveld 408576698