| 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 'Element.insertAdjacentElement', |
| 16 'Element.insertAdjacentHTML', |
| 17 'Element.insertAdjacentText', |
| 15 'IDBDatabase.transaction', | 18 'IDBDatabase.transaction', |
| 16 'IFrameElement.contentWindow', | 19 'IFrameElement.contentWindow', |
| 17 'Window.document', | 20 'Window.document', |
| 18 'Window.top', | 21 'Window.top', |
| 19 'Window.location', | 22 'Window.location', |
| 20 'Window.open', | 23 'Window.open', |
| 21 ]) | 24 ]) |
| 22 | 25 |
| 23 # This map controls merging of interfaces in dart:html library. | 26 # This map controls merging of interfaces in dart:html library. |
| 24 # All constants, attributes, and operations of merged interface (key) are | 27 # All constants, attributes, and operations of merged interface (key) are |
| (...skipping 996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1021 return HtmlDart2JSClassGenerator(self, interface) | 1024 return HtmlDart2JSClassGenerator(self, interface) |
| 1022 | 1025 |
| 1023 def GenerateLibraries(self, dart_files): | 1026 def GenerateLibraries(self, dart_files): |
| 1024 self._GenerateLibFile( | 1027 self._GenerateLibFile( |
| 1025 'html_dart2js.darttemplate', | 1028 'html_dart2js.darttemplate', |
| 1026 os.path.join(self._output_dir, 'html_dart2js.dart'), | 1029 os.path.join(self._output_dir, 'html_dart2js.dart'), |
| 1027 dart_files) | 1030 dart_files) |
| 1028 | 1031 |
| 1029 def Finish(self): | 1032 def Finish(self): |
| 1030 pass | 1033 pass |
| OLD | NEW |