| 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 | 10 |
| 11 from systembase import * | 11 from systembase import * |
| 12 from systeminterface import * | |
| 13 | 12 |
| 14 _js_custom_members = set([ | 13 _js_custom_members = set([ |
| 15 'CSSStyleDeclaration.setProperty', | 14 'CSSStyleDeclaration.setProperty', |
| 16 'Element.insertAdjacentElement', | 15 'Element.insertAdjacentElement', |
| 17 'Element.insertAdjacentHTML', | 16 'Element.insertAdjacentHTML', |
| 18 'Element.insertAdjacentText', | 17 'Element.insertAdjacentText', |
| 19 'Element.remove', | 18 'Element.remove', |
| 20 'ElementEvents.mouseWheel', | 19 'ElementEvents.mouseWheel', |
| 21 'IDBDatabase.transaction', | 20 'IDBDatabase.transaction', |
| 22 'IFrameElement.contentWindow', | 21 'IFrameElement.contentWindow', |
| (...skipping 1315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1338 | 1337 |
| 1339 library_emitter = self._emitters.FileEmitter(library_file_path) | 1338 library_emitter = self._emitters.FileEmitter(library_file_path) |
| 1340 library_file_dir = os.path.dirname(library_file_path) | 1339 library_file_dir = os.path.dirname(library_file_path) |
| 1341 auxiliary_dir = os.path.relpath(auxiliary_dir, library_file_dir) | 1340 auxiliary_dir = os.path.relpath(auxiliary_dir, library_file_dir) |
| 1342 imports_emitter = library_emitter.Emit( | 1341 imports_emitter = library_emitter.Emit( |
| 1343 self._template, AUXILIARY_DIR=massage_path(auxiliary_dir)) | 1342 self._template, AUXILIARY_DIR=massage_path(auxiliary_dir)) |
| 1344 for path in sorted(self._dart_sources_list): | 1343 for path in sorted(self._dart_sources_list): |
| 1345 relpath = os.path.relpath(path, library_file_dir) | 1344 relpath = os.path.relpath(path, library_file_dir) |
| 1346 imports_emitter.Emit( | 1345 imports_emitter.Emit( |
| 1347 "#source('$PATH');\n", PATH=massage_path(relpath)) | 1346 "#source('$PATH');\n", PATH=massage_path(relpath)) |
| OLD | NEW |