| 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 systemdart2js import * | 11 from systemdart2js import * |
| 12 from systeminterface import * | 12 from systeminterface import * |
| 13 | 13 |
| 14 _js_custom_members = set([ | 14 _js_custom_members = set([ |
| 15 'CSSStyleDeclaration.setProperty', | 15 'CSSStyleDeclaration.setProperty', |
| 16 'Element.insertAdjacentElement', | 16 'Element.insertAdjacentElement', |
| 17 'Element.insertAdjacentHTML', | 17 'Element.insertAdjacentHTML', |
| 18 'Element.insertAdjacentText', | 18 'Element.insertAdjacentText', |
| 19 'IDBDatabase.transaction', | 19 'IDBDatabase.transaction', |
| 20 'IFrameElement.contentWindow', | 20 'IFrameElement.contentWindow', |
| 21 'MouseEvent.offsetX', | 21 'MouseEvent.offsetX', |
| 22 'MouseEvent.offsetY', | 22 'MouseEvent.offsetY', |
| 23 'TableElement.createTBody', |
| 23 'Window.document', | 24 'Window.document', |
| 24 'Window.top', | 25 'Window.top', |
| 25 'Window.location', | 26 'Window.location', |
| 26 'Window.open', | 27 'Window.open', |
| 27 ]) | 28 ]) |
| 28 | 29 |
| 29 # This map controls merging of interfaces in dart:html library. | 30 # This map controls merging of interfaces in dart:html library. |
| 30 # All constants, attributes, and operations of merged interface (key) are | 31 # All constants, attributes, and operations of merged interface (key) are |
| 31 # added to target interface (value). All references to the merged interface | 32 # added to target interface (value). All references to the merged interface |
| 32 # (e.g. parameter types, return types, parent interfaces) are replaced with | 33 # (e.g. parameter types, return types, parent interfaces) are replaced with |
| (...skipping 1196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1229 def GenerateLibraries(self, dart_files): | 1230 def GenerateLibraries(self, dart_files): |
| 1230 auxiliary_dir = os.path.relpath(self._auxiliary_dir, self._output_dir) | 1231 auxiliary_dir = os.path.relpath(self._auxiliary_dir, self._output_dir) |
| 1231 self._GenerateLibFile( | 1232 self._GenerateLibFile( |
| 1232 'html_dart2js.darttemplate', | 1233 'html_dart2js.darttemplate', |
| 1233 os.path.join(self._output_dir, 'html_dart2js.dart'), | 1234 os.path.join(self._output_dir, 'html_dart2js.dart'), |
| 1234 dart_files, | 1235 dart_files, |
| 1235 AUXILIARY_DIR=systembase.MassagePath(auxiliary_dir)) | 1236 AUXILIARY_DIR=systembase.MassagePath(auxiliary_dir)) |
| 1236 | 1237 |
| 1237 def Finish(self): | 1238 def Finish(self): |
| 1238 pass | 1239 pass |
| OLD | NEW |