| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3 # for details. All rights reserved. Use of this source code is governed by a | 3 # for details. All rights reserved. Use of this source code is governed by a |
| 4 # BSD-style license that can be found in the LICENSE file. | 4 # BSD-style license that can be found in the LICENSE file. |
| 5 | 5 |
| 6 """This module provides shared functionality for the system to generate | 6 """This module provides shared functionality for the system to generate |
| 7 Dart:html APIs from the IDL database.""" | 7 Dart:html APIs from the IDL database.""" |
| 8 | 8 |
| 9 import emitter | 9 import emitter |
| 10 import monitored | 10 import monitored |
| 11 import os | 11 import os |
| 12 from generator import * | 12 from generator import * |
| 13 from htmldartgenerator import * | 13 from htmldartgenerator import * |
| 14 | 14 |
| 15 _js_custom_members = monitored.Set('systemhtml._js_custom_members', [ | 15 _js_custom_members = monitored.Set('systemhtml._js_custom_members', [ |
| 16 'ArrayBuffer.slice', | 16 'ArrayBuffer.slice', |
| 17 'AudioBufferSourceNode.start', | 17 'AudioBufferSourceNode.start', |
| 18 'AudioBufferSourceNode.stop', | 18 'AudioBufferSourceNode.stop', |
| 19 'AudioContext.createGain', | 19 'AudioContext.createGain', |
| 20 'AudioContext.createScriptProcessor', | 20 'AudioContext.createScriptProcessor', |
| 21 'CanvasRenderingContext2D.drawImage', |
| 21 'CanvasRenderingContext2D.lineDashOffset', | 22 'CanvasRenderingContext2D.lineDashOffset', |
| 22 'Console.memory', | 23 'Console.memory', |
| 23 'Console.profiles', | 24 'Console.profiles', |
| 24 'Console.assertCondition', | 25 'Console.assertCondition', |
| 25 'Console.count', | 26 'Console.count', |
| 26 'Console.debug', | 27 'Console.debug', |
| 27 'Console.dir', | 28 'Console.dir', |
| 28 'Console.dirxml', | 29 'Console.dirxml', |
| 29 'Console.error', | 30 'Console.error', |
| 30 'Console.group', | 31 'Console.group', |
| (...skipping 1105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1136 for library_name in libraries: | 1137 for library_name in libraries: |
| 1137 self._libraries[library_name] = DartLibrary( | 1138 self._libraries[library_name] = DartLibrary( |
| 1138 library_name, template_loader, library_type, output_dir) | 1139 library_name, template_loader, library_type, output_dir) |
| 1139 | 1140 |
| 1140 def AddFile(self, basename, library_name, path): | 1141 def AddFile(self, basename, library_name, path): |
| 1141 self._libraries[library_name].AddFile(path) | 1142 self._libraries[library_name].AddFile(path) |
| 1142 | 1143 |
| 1143 def Emit(self, emitter, auxiliary_dir): | 1144 def Emit(self, emitter, auxiliary_dir): |
| 1144 for lib in self._libraries.values(): | 1145 for lib in self._libraries.values(): |
| 1145 lib.Emit(emitter, auxiliary_dir) | 1146 lib.Emit(emitter, auxiliary_dir) |
| OLD | NEW |