Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(564)

Side by Side Diff: sdk/lib/html/scripts/systemhtml.py

Issue 11358135: Some changes to improve precision of types in dart:html (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 'CanvasElement.getContext',
20 'Element.insertAdjacentElement', 21 'Element.insertAdjacentElement',
21 'Element.insertAdjacentHTML', 22 'Element.insertAdjacentHTML',
22 'Element.insertAdjacentText', 23 'Element.insertAdjacentText',
23 'Element.remove', 24 'Element.remove',
24 'ElementEvents.mouseWheel', 25 'ElementEvents.mouseWheel',
25 'IDBDatabase.transaction', 26 'IDBDatabase.transaction',
26 'MouseEvent.offsetX', 27 'MouseEvent.offsetX',
27 'MouseEvent.offsetY', 28 'MouseEvent.offsetY',
28 'SelectElement.options', 29 'SelectElement.options',
29 'SelectElement.selectedOptions', 30 'SelectElement.selectedOptions',
(...skipping 1166 matching lines...) Expand 10 before | Expand all | Expand 10 after
1196 1197
1197 library_emitter = self._multiemitter.FileEmitter(library_file_path) 1198 library_emitter = self._multiemitter.FileEmitter(library_file_path)
1198 library_file_dir = os.path.dirname(library_file_path) 1199 library_file_dir = os.path.dirname(library_file_path)
1199 auxiliary_dir = os.path.relpath(auxiliary_dir, library_file_dir) 1200 auxiliary_dir = os.path.relpath(auxiliary_dir, library_file_dir)
1200 imports_emitter = library_emitter.Emit( 1201 imports_emitter = library_emitter.Emit(
1201 self._template, AUXILIARY_DIR=massage_path(auxiliary_dir)) 1202 self._template, AUXILIARY_DIR=massage_path(auxiliary_dir))
1202 for path in sorted(self._path_to_emitter.keys()): 1203 for path in sorted(self._path_to_emitter.keys()):
1203 relpath = os.path.relpath(path, library_file_dir) 1204 relpath = os.path.relpath(path, library_file_dir)
1204 imports_emitter.Emit( 1205 imports_emitter.Emit(
1205 "part '$PATH';\n", PATH=massage_path(relpath)) 1206 "part '$PATH';\n", PATH=massage_path(relpath))
OLDNEW
« no previous file with comments | « sdk/lib/html/scripts/generator.py ('k') | sdk/lib/html/templates/html/dart2js/impl_CanvasElement.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698