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

Unified Diff: mojo/public/bindings/parser/mojo_translate.py

Issue 60013007: Mojo: Add support for float and double types in IDL files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/bindings/parser/mojo_translate.py
diff --git a/mojo/public/bindings/parser/mojo_translate.py b/mojo/public/bindings/parser/mojo_translate.py
index c562b528661240878c37b337d7eef445ddf6aeb2..46aa071c487504392178dfaceb407b5c21e0a22b 100755
--- a/mojo/public/bindings/parser/mojo_translate.py
+++ b/mojo/public/bindings/parser/mojo_translate.py
@@ -10,7 +10,6 @@ import sys
def MapKind(kind):
- # todo: add more types
map_to_kind = { 'bool': 'b',
'int8': 'i8',
'int16': 'i16',
@@ -20,6 +19,8 @@ def MapKind(kind):
'uint16': 'u16',
'uint32': 'u32',
'uint64': 'u64',
+ 'float': 'f',
+ 'double': 'd',
'string': 's',
'handle': 'h' }
if kind.endswith('[]'):
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698