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

Side by Side Diff: third_party/chrome/tools/json_schema_compiler/h_generator.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 from code import Code 5 from code import Code
6 from model import PropertyType, Type 6 from model import PropertyType, Type
7 import cpp_util 7 import cpp_util
8 import schema_util 8 import schema_util
9 9
10 class HGenerator(object): 10 class HGenerator(object):
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 def _GenerateFunctionResults(self, callback): 359 def _GenerateFunctionResults(self, callback):
360 """Generates namespace for passing a function's result back. 360 """Generates namespace for passing a function's result back.
361 """ 361 """
362 c = Code() 362 c = Code()
363 (c.Append('namespace Results {') 363 (c.Append('namespace Results {')
364 .Append() 364 .Append()
365 .Concat(self._GenerateCreateCallbackArguments(callback)) 365 .Concat(self._GenerateCreateCallbackArguments(callback))
366 .Append('} // namespace Results') 366 .Append('} // namespace Results')
367 ) 367 )
368 return c 368 return c
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698