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

Unified Diff: tools/json_schema_compiler/h_generator.py

Issue 23549025: Clean up JSON Schema Compiler. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Removed enum test and added blank lines. Created 7 years, 3 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/json_schema_compiler/dart_test/enums.idl ('k') | tools/json_schema_compiler/idl_schema.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/json_schema_compiler/h_generator.py
diff --git a/tools/json_schema_compiler/h_generator.py b/tools/json_schema_compiler/h_generator.py
index 77356b2091fbada48c5cb683322c0047e085f775..0a2dc89003cb3d23f8f377f13bb2654a2d881e5c 100644
--- a/tools/json_schema_compiler/h_generator.py
+++ b/tools/json_schema_compiler/h_generator.py
@@ -3,7 +3,7 @@
# found in the LICENSE file.
from code import Code
-from model import PropertyType, Type
+from model import PropertyType
import cpp_util
import schema_util
@@ -17,6 +17,7 @@ class HGenerator(object):
self._type_generator,
self._cpp_namespace).Generate()
+
class _Generator(object):
"""A .h generator for a namespace.
"""
@@ -303,9 +304,8 @@ class _Generator(object):
c = Code()
# TODO(kalman): Use function.unix_name not Classname here.
function_namespace = cpp_util.Classname(function.name)
- """Windows has a #define for SendMessage, so to avoid any issues, we need
- to not use the name.
- """
+ # Windows has a #define for SendMessage, so to avoid any issues, we need
+ # to not use the name.
if function_namespace == 'SendMessage':
function_namespace = 'PassMessage'
(c.Append('namespace %s {' % function_namespace)
« no previous file with comments | « tools/json_schema_compiler/dart_test/enums.idl ('k') | tools/json_schema_compiler/idl_schema.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698