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

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

Issue 11227049: Fixes to unbreak the build. (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
« no previous file with comments | « lib/html/dart2js/html_dart2js.dart ('k') | no next file » | 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 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.setProperty', 16 'CSSStyleDeclaration.setProperty',
17 'Element.insertAdjacentElement', 17 'Element.insertAdjacentElement',
18 'Element.insertAdjacentHTML', 18 'Element.insertAdjacentHTML',
19 'Element.insertAdjacentText', 19 'Element.insertAdjacentText',
20 'Element.remove', 20 'Element.remove',
21 'ElementEvents.mouseWheel', 21 'ElementEvents.mouseWheel',
22 'IDBDatabase.transaction', 22 'IDBDatabase.transaction',
23 'MouseEvent.offsetX', 23 'MouseEvent.offsetX',
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.cancelAnimationFrame',
28 'LocalWindow.document', 29 'LocalWindow.document',
29 'LocalWindow.indexedDB', 30 'LocalWindow.indexedDB',
30 'LocalWindow.location', 31 'LocalWindow.location',
31 'LocalWindow.open', 32 'LocalWindow.open',
33 'LocalWindow.requestAnimationFrame',
32 'LocalWindow.webkitCancelAnimationFrame', 34 'LocalWindow.webkitCancelAnimationFrame',
33 'LocalWindow.webkitRequestAnimationFrame', 35 'LocalWindow.webkitRequestAnimationFrame',
34 'WheelEvent.wheelDeltaX', 36 'WheelEvent.wheelDeltaX',
35 'WheelEvent.wheelDeltaY', 37 'WheelEvent.wheelDeltaY',
36 ]) 38 ])
37 39
38 40
39 # Types that are accessible cross-frame in a limited fashion. 41 # Types that are accessible cross-frame in a limited fashion.
40 # In these cases, the base type (e.g., Window) provides restricted access 42 # In these cases, the base type (e.g., Window) provides restricted access
41 # while the subtype (e.g., LocalWindow) provides full access to the 43 # while the subtype (e.g., LocalWindow) provides full access to the
(...skipping 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after
1114 1116
1115 library_emitter = self._multiemitter.FileEmitter(library_file_path) 1117 library_emitter = self._multiemitter.FileEmitter(library_file_path)
1116 library_file_dir = os.path.dirname(library_file_path) 1118 library_file_dir = os.path.dirname(library_file_path)
1117 auxiliary_dir = os.path.relpath(auxiliary_dir, library_file_dir) 1119 auxiliary_dir = os.path.relpath(auxiliary_dir, library_file_dir)
1118 imports_emitter = library_emitter.Emit( 1120 imports_emitter = library_emitter.Emit(
1119 self._template, AUXILIARY_DIR=massage_path(auxiliary_dir)) 1121 self._template, AUXILIARY_DIR=massage_path(auxiliary_dir))
1120 for path in sorted(self._path_to_emitter.keys()): 1122 for path in sorted(self._path_to_emitter.keys()):
1121 relpath = os.path.relpath(path, library_file_dir) 1123 relpath = os.path.relpath(path, library_file_dir)
1122 imports_emitter.Emit( 1124 imports_emitter.Emit(
1123 "#source('$PATH');\n", PATH=massage_path(relpath)) 1125 "#source('$PATH');\n", PATH=massage_path(relpath))
OLDNEW
« no previous file with comments | « lib/html/dart2js/html_dart2js.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698