| 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 | 
| 11 from generator import * | 11 from generator import * | 
| 12 from htmldartgenerator import * | 12 from htmldartgenerator import * | 
| 13 | 13 | 
| 14 _js_custom_members = set([ | 14 _js_custom_members = set([ | 
| 15     'AudioBufferSourceNode.start', | 15     'AudioBufferSourceNode.start', | 
| 16     'AudioBufferSourceNode.stop', | 16     'AudioBufferSourceNode.stop', | 
| 17     'AudioContext.createGain', | 17     'AudioContext.createGain', | 
| 18     'AudioContext.createScriptProcessor', | 18     'AudioContext.createScriptProcessor', | 
| 19     'CSSStyleDeclaration.setProperty', | 19     'CSSStyleDeclaration.setProperty', | 
| 20     'Element.insertAdjacentElement', | 20     'Element.insertAdjacentElement', | 
| 21     'Element.insertAdjacentHTML', | 21     'Element.insertAdjacentHTML', | 
| 22     'Element.insertAdjacentText', | 22     'Element.insertAdjacentText', | 
| 23     'Element.remove', | 23     'Element.remove', | 
| 24     'ElementEvents.mouseWheel', | 24     'ElementEvents.mouseWheel', | 
| 25     'HTMLCanvasElement.getContext', | 25     'HTMLCanvasElement.getContext', | 
| 26     'HTMLSelectElement.options', | 26     'HTMLSelectElement.options', | 
| 27     'HTMLSelectElement.selectedOptions', | 27     'HTMLSelectElement.selectedOptions', | 
| 28     'HTMLTableElement.createTBody', | 28     'HTMLTableElement.createTBody', | 
| 29     'IDBDatabase.transaction', | 29     'IDBDatabase.transaction', | 
|  | 30     'KeyboardEvent.initKeyboardEvent', | 
| 30     'MouseEvent.offsetX', | 31     'MouseEvent.offsetX', | 
| 31     'MouseEvent.offsetY', | 32     'MouseEvent.offsetY', | 
| 32     'Navigator.language', | 33     'Navigator.language', | 
| 33     'URL.createObjectURL', | 34     'URL.createObjectURL', | 
| 34     'URL.revokeObjectURL', | 35     'URL.revokeObjectURL', | 
| 35     'WheelEvent.wheelDeltaX', | 36     'WheelEvent.wheelDeltaX', | 
| 36     'WheelEvent.wheelDeltaY', | 37     'WheelEvent.wheelDeltaY', | 
| 37     'Window.cancelAnimationFrame', | 38     'Window.cancelAnimationFrame', | 
| 38     'Window.document', | 39     'Window.document', | 
| 39     'Window.indexedDB', | 40     'Window.indexedDB', | 
| (...skipping 950 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 990     for library_name in libraries: | 991     for library_name in libraries: | 
| 991       self._libraries[library_name] = DartLibrary( | 992       self._libraries[library_name] = DartLibrary( | 
| 992           library_name, template_loader, library_type, output_dir) | 993           library_name, template_loader, library_type, output_dir) | 
| 993 | 994 | 
| 994   def AddFile(self, basename, library_name, path): | 995   def AddFile(self, basename, library_name, path): | 
| 995     self._libraries[library_name].AddFile(path) | 996     self._libraries[library_name].AddFile(path) | 
| 996 | 997 | 
| 997   def Emit(self, emitter, auxiliary_dir): | 998   def Emit(self, emitter, auxiliary_dir): | 
| 998     for lib in self._libraries.values(): | 999     for lib in self._libraries.values(): | 
| 999       lib.Emit(emitter, auxiliary_dir) | 1000       lib.Emit(emitter, auxiliary_dir) | 
| OLD | NEW | 
|---|