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

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

Issue 11099033: Rename WebKit's WheelEvent.wheelDelta{X,Y} to W3C WheelEvent.delta{X,Y}. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 months 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
(...skipping 13 matching lines...) Expand all
24 'MouseEvent.offsetY', 24 'MouseEvent.offsetY',
25 'SelectElement.options', 25 'SelectElement.options',
26 'SelectElement.selectedOptions', 26 'SelectElement.selectedOptions',
27 'TableElement.createTBody', 27 'TableElement.createTBody',
28 'LocalWindow.document', 28 'LocalWindow.document',
29 'LocalWindow.indexedDB', 29 'LocalWindow.indexedDB',
30 'LocalWindow.location', 30 'LocalWindow.location',
31 'LocalWindow.open', 31 'LocalWindow.open',
32 'LocalWindow.webkitCancelAnimationFrame', 32 'LocalWindow.webkitCancelAnimationFrame',
33 'LocalWindow.webkitRequestAnimationFrame', 33 'LocalWindow.webkitRequestAnimationFrame',
34 'WheelEvent.wheelDeltaX',
35 'WheelEvent.wheelDeltaY',
34 ]) 36 ])
35 37
36 # This map controls merging of interfaces in dart:html library. 38 # This map controls merging of interfaces in dart:html library.
37 # All constants, attributes, and operations of merged interface (key) are 39 # All constants, attributes, and operations of merged interface (key) are
38 # added to target interface (value). All references to the merged interface 40 # added to target interface (value). All references to the merged interface
39 # (e.g. parameter types, return types, parent interfaces) are replaced with 41 # (e.g. parameter types, return types, parent interfaces) are replaced with
40 # target interface. There are two important restrictions: 42 # target interface. There are two important restrictions:
41 # 1) Merged and target interfaces shouldn't have common members, otherwise there 43 # 1) Merged and target interfaces shouldn't have common members, otherwise there
42 # would be duplicated declarations in generated Dart code. 44 # would be duplicated declarations in generated Dart code.
43 # 2) Merged interface should be direct child of target interface, so the 45 # 2) Merged interface should be direct child of target interface, so the
(...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after
1128 1130
1129 library_emitter = self._multiemitter.FileEmitter(library_file_path) 1131 library_emitter = self._multiemitter.FileEmitter(library_file_path)
1130 library_file_dir = os.path.dirname(library_file_path) 1132 library_file_dir = os.path.dirname(library_file_path)
1131 auxiliary_dir = os.path.relpath(auxiliary_dir, library_file_dir) 1133 auxiliary_dir = os.path.relpath(auxiliary_dir, library_file_dir)
1132 imports_emitter = library_emitter.Emit( 1134 imports_emitter = library_emitter.Emit(
1133 self._template, AUXILIARY_DIR=massage_path(auxiliary_dir)) 1135 self._template, AUXILIARY_DIR=massage_path(auxiliary_dir))
1134 for path in sorted(self._path_to_emitter.keys()): 1136 for path in sorted(self._path_to_emitter.keys()):
1135 relpath = os.path.relpath(path, library_file_dir) 1137 relpath = os.path.relpath(path, library_file_dir)
1136 imports_emitter.Emit( 1138 imports_emitter.Emit(
1137 "#source('$PATH');\n", PATH=massage_path(relpath)) 1139 "#source('$PATH');\n", PATH=massage_path(relpath))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698