| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |