| 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 os | 10 import os |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 'SelectElement.selectedOptions', | 28 'SelectElement.selectedOptions', |
| 29 'TableElement.createTBody', | 29 'TableElement.createTBody', |
| 30 'LocalWindow.cancelAnimationFrame', | 30 'LocalWindow.cancelAnimationFrame', |
| 31 'LocalWindow.document', | 31 'LocalWindow.document', |
| 32 'LocalWindow.indexedDB', | 32 'LocalWindow.indexedDB', |
| 33 'LocalWindow.location', | 33 'LocalWindow.location', |
| 34 'LocalWindow.open', | 34 'LocalWindow.open', |
| 35 'LocalWindow.requestAnimationFrame', | 35 'LocalWindow.requestAnimationFrame', |
| 36 'LocalWindow.webkitCancelAnimationFrame', | 36 'LocalWindow.webkitCancelAnimationFrame', |
| 37 'LocalWindow.webkitRequestAnimationFrame', | 37 'LocalWindow.webkitRequestAnimationFrame', |
| 38 'Url.createObjectURL', |
| 39 'Url.revokeObjectURL', |
| 38 'WheelEvent.wheelDeltaX', | 40 'WheelEvent.wheelDeltaX', |
| 39 'WheelEvent.wheelDeltaY', | 41 'WheelEvent.wheelDeltaY', |
| 40 ]) | 42 ]) |
| 41 | 43 |
| 42 | 44 |
| 43 # Types that are accessible cross-frame in a limited fashion. | 45 # Types that are accessible cross-frame in a limited fashion. |
| 44 # In these cases, the base type (e.g., Window) provides restricted access | 46 # In these cases, the base type (e.g., Window) provides restricted access |
| 45 # while the subtype (e.g., LocalWindow) provides full access to the | 47 # while the subtype (e.g., LocalWindow) provides full access to the |
| 46 # corresponding objects if there are from the same frame. | 48 # corresponding objects if there are from the same frame. |
| 47 _secure_base_types = { | 49 _secure_base_types = { |
| (...skipping 1073 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1121 | 1123 |
| 1122 library_emitter = self._multiemitter.FileEmitter(library_file_path) | 1124 library_emitter = self._multiemitter.FileEmitter(library_file_path) |
| 1123 library_file_dir = os.path.dirname(library_file_path) | 1125 library_file_dir = os.path.dirname(library_file_path) |
| 1124 auxiliary_dir = os.path.relpath(auxiliary_dir, library_file_dir) | 1126 auxiliary_dir = os.path.relpath(auxiliary_dir, library_file_dir) |
| 1125 imports_emitter = library_emitter.Emit( | 1127 imports_emitter = library_emitter.Emit( |
| 1126 self._template, AUXILIARY_DIR=massage_path(auxiliary_dir)) | 1128 self._template, AUXILIARY_DIR=massage_path(auxiliary_dir)) |
| 1127 for path in sorted(self._path_to_emitter.keys()): | 1129 for path in sorted(self._path_to_emitter.keys()): |
| 1128 relpath = os.path.relpath(path, library_file_dir) | 1130 relpath = os.path.relpath(path, library_file_dir) |
| 1129 imports_emitter.Emit( | 1131 imports_emitter.Emit( |
| 1130 "part '$PATH';\n", PATH=massage_path(relpath)) | 1132 "part '$PATH';\n", PATH=massage_path(relpath)) |
| OLD | NEW |