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

Side by Side Diff: third_party/chrome/tools/json_schema_compiler/util_cc_helper.py

Issue 12300042: Update idlsync.py to pull in dependencies required for chrome api generation. (Closed) Base URL: git://github.com/dart-lang/bleeding_edge.git@master
Patch Set: From another checkout Created 7 years, 9 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 unified diff | Download patch
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 API_UTIL_NAMESPACE = 'json_schema_compiler::util' 5 API_UTIL_NAMESPACE = 'json_schema_compiler::util'
6 6
7 class UtilCCHelper(object): 7 class UtilCCHelper(object):
8 """A util class that generates code that uses 8 """A util class that generates code that uses
9 tools/json_schema_compiler/util.cc. 9 tools/json_schema_compiler/util.cc.
10 """ 10 """
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 if optional: 71 if optional:
72 val = '%(namespace)s::CreateValueFromOptionalArray(%(src)s)' 72 val = '%(namespace)s::CreateValueFromOptionalArray(%(src)s)'
73 else: 73 else:
74 val = '%(namespace)s::CreateValueFromArray(%(src)s)' 74 val = '%(namespace)s::CreateValueFromArray(%(src)s)'
75 75
76 return val % sub 76 return val % sub
77 77
78 def GetIncludePath(self): 78 def GetIncludePath(self):
79 return '#include "tools/json_schema_compiler/util.h"' 79 return '#include "tools/json_schema_compiler/util.h"'
OLDNEW
« no previous file with comments | « third_party/chrome/tools/json_schema_compiler/test/windows.json ('k') | third_party/chrome/tools/json_schema_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698