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

Unified Diff: tools/dom/scripts/databasebuilder.py

Issue 13704011: Map enums to strings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
« no previous file with comments | « tools/dom/scripts/database.py ('k') | tools/dom/scripts/generator.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/databasebuilder.py
diff --git a/tools/dom/scripts/databasebuilder.py b/tools/dom/scripts/databasebuilder.py
index 96e724d513256fd98215d7c6faae8f1669619ddd..60565a11f3ca7a810f09cf5b9f8ab0f8ffc508a0 100755
--- a/tools/dom/scripts/databasebuilder.py
+++ b/tools/dom/scripts/databasebuilder.py
@@ -459,6 +459,9 @@ class DatabaseBuilder(object):
for implStmt in idl_file.implementsStatements:
self._impl_stmts.append((implStmt, import_options))
+ for enum in idl_file.enums:
+ self._database.AddEnum(enum)
+
def _is_node_enabled(self, node, idl_defines):
if not 'Conditional' in node.ext_attrs:
« no previous file with comments | « tools/dom/scripts/database.py ('k') | tools/dom/scripts/generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698