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 | 12 |
13 _js_custom_members = set([ | 13 _js_custom_members = set([ |
14 'AudioBufferSourceNode.start', | 14 'AudioBufferSourceNode.start', |
15 'AudioBufferSourceNode.stop', | 15 'AudioBufferSourceNode.stop', |
| 16 'CSSStyleDeclaration.getPropertyValue', |
16 'CSSStyleDeclaration.setProperty', | 17 'CSSStyleDeclaration.setProperty', |
17 'Element.insertAdjacentElement', | 18 'Element.insertAdjacentElement', |
18 'Element.insertAdjacentHTML', | 19 'Element.insertAdjacentHTML', |
19 'Element.insertAdjacentText', | 20 'Element.insertAdjacentText', |
20 'Element.remove', | 21 'Element.remove', |
21 'ElementEvents.mouseWheel', | 22 'ElementEvents.mouseWheel', |
22 'IDBDatabase.transaction', | 23 'IDBDatabase.transaction', |
23 'IFrameElement.contentWindow', | 24 'IFrameElement.contentWindow', |
24 'MouseEvent.offsetX', | 25 'MouseEvent.offsetX', |
25 'MouseEvent.offsetY', | 26 'MouseEvent.offsetY', |
(...skipping 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1114 | 1115 |
1115 library_emitter = self._multiemitter.FileEmitter(library_file_path) | 1116 library_emitter = self._multiemitter.FileEmitter(library_file_path) |
1116 library_file_dir = os.path.dirname(library_file_path) | 1117 library_file_dir = os.path.dirname(library_file_path) |
1117 auxiliary_dir = os.path.relpath(auxiliary_dir, library_file_dir) | 1118 auxiliary_dir = os.path.relpath(auxiliary_dir, library_file_dir) |
1118 imports_emitter = library_emitter.Emit( | 1119 imports_emitter = library_emitter.Emit( |
1119 self._template, AUXILIARY_DIR=massage_path(auxiliary_dir)) | 1120 self._template, AUXILIARY_DIR=massage_path(auxiliary_dir)) |
1120 for path in sorted(self._path_to_emitter.keys()): | 1121 for path in sorted(self._path_to_emitter.keys()): |
1121 relpath = os.path.relpath(path, library_file_dir) | 1122 relpath = os.path.relpath(path, library_file_dir) |
1122 imports_emitter.Emit( | 1123 imports_emitter.Emit( |
1123 "#source('$PATH');\n", PATH=massage_path(relpath)) | 1124 "#source('$PATH');\n", PATH=massage_path(relpath)) |
OLD | NEW |