| 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 'Element.insertAdjacentElement', | 16 'Element.insertAdjacentElement', |
| 16 'Element.insertAdjacentHTML', | 17 'Element.insertAdjacentHTML', |
| 17 'Element.insertAdjacentText', | 18 'Element.insertAdjacentText', |
| 18 'IDBDatabase.transaction', | 19 'IDBDatabase.transaction', |
| 19 'IFrameElement.contentWindow', | 20 'IFrameElement.contentWindow', |
| 20 'MouseEvent.offsetX', | 21 'MouseEvent.offsetX', |
| 21 'MouseEvent.offsetY', | 22 'MouseEvent.offsetY', |
| 22 'Window.document', | 23 'Window.document', |
| 23 'Window.top', | 24 'Window.top', |
| 24 'Window.location', | 25 'Window.location', |
| (...skipping 1208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1233 return HtmlDart2JSClassGenerator(self, interface) | 1234 return HtmlDart2JSClassGenerator(self, interface) |
| 1234 | 1235 |
| 1235 def GenerateLibraries(self, dart_files): | 1236 def GenerateLibraries(self, dart_files): |
| 1236 self._GenerateLibFile( | 1237 self._GenerateLibFile( |
| 1237 'html_dart2js.darttemplate', | 1238 'html_dart2js.darttemplate', |
| 1238 os.path.join(self._output_dir, 'html_dart2js.dart'), | 1239 os.path.join(self._output_dir, 'html_dart2js.dart'), |
| 1239 dart_files) | 1240 dart_files) |
| 1240 | 1241 |
| 1241 def Finish(self): | 1242 def Finish(self): |
| 1242 pass | 1243 pass |
| OLD | NEW |