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

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

Issue 10993053: Roll IDL to multivm@910, Take #2 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix for indexeddb 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
« no previous file with comments | « lib/html/scripts/generator.py ('k') | lib/html/templates/html/impl/impl_Node.darttemplate » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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 'CSSStyleDeclaration.setProperty',
16 'Element.insertAdjacentElement', 16 'Element.insertAdjacentElement',
17 'Element.insertAdjacentHTML', 17 'Element.insertAdjacentHTML',
18 'Element.insertAdjacentText', 18 'Element.insertAdjacentText',
19 'Element.remove',
19 'ElementEvents.mouseWheel', 20 'ElementEvents.mouseWheel',
20 'IDBDatabase.transaction', 21 'IDBDatabase.transaction',
21 'IFrameElement.contentWindow', 22 'IFrameElement.contentWindow',
22 'MouseEvent.offsetX', 23 'MouseEvent.offsetX',
23 'MouseEvent.offsetY', 24 'MouseEvent.offsetY',
24 'TableElement.createTBody', 25 'TableElement.createTBody',
25 'Window.document', 26 'Window.document',
26 'Window.top', 27 'Window.indexedDB',
27 'Window.location', 28 'Window.location',
28 'Window.open', 29 'Window.open',
30 'Window.top',
29 'Window.webkitCancelAnimationFrame', 31 'Window.webkitCancelAnimationFrame',
30 'Window.webkitRequestAnimationFrame', 32 'Window.webkitRequestAnimationFrame',
31 ]) 33 ])
32 34
33 # This map controls merging of interfaces in dart:html library. 35 # This map controls merging of interfaces in dart:html library.
34 # All constants, attributes, and operations of merged interface (key) are 36 # All constants, attributes, and operations of merged interface (key) are
35 # added to target interface (value). All references to the merged interface 37 # added to target interface (value). All references to the merged interface
36 # (e.g. parameter types, return types, parent interfaces) are replaced with 38 # (e.g. parameter types, return types, parent interfaces) are replaced with
37 # target interface. There are two important restrictions: 39 # target interface. There are two important restrictions:
38 # 1) Merged and target interfaces shouldn't have common members, otherwise there 40 # 1) Merged and target interfaces shouldn't have common members, otherwise there
(...skipping 1221 matching lines...) Expand 10 before | Expand all | Expand 10 after
1260 1262
1261 library_emitter = self._emitters.FileEmitter(library_file_path) 1263 library_emitter = self._emitters.FileEmitter(library_file_path)
1262 library_file_dir = os.path.dirname(library_file_path) 1264 library_file_dir = os.path.dirname(library_file_path)
1263 auxiliary_dir = os.path.relpath(auxiliary_dir, library_file_dir) 1265 auxiliary_dir = os.path.relpath(auxiliary_dir, library_file_dir)
1264 imports_emitter = library_emitter.Emit( 1266 imports_emitter = library_emitter.Emit(
1265 self._template, AUXILIARY_DIR=massage_path(auxiliary_dir)) 1267 self._template, AUXILIARY_DIR=massage_path(auxiliary_dir))
1266 for path in sorted(self._dart_sources_list): 1268 for path in sorted(self._dart_sources_list):
1267 relpath = os.path.relpath(path, library_file_dir) 1269 relpath = os.path.relpath(path, library_file_dir)
1268 imports_emitter.Emit( 1270 imports_emitter.Emit(
1269 "#source('$PATH');\n", PATH=massage_path(relpath)) 1271 "#source('$PATH');\n", PATH=massage_path(relpath))
OLDNEW
« no previous file with comments | « lib/html/scripts/generator.py ('k') | lib/html/templates/html/impl/impl_Node.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698