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

Side by Side Diff: tools/dom/scripts/systemhtml.py

Issue 14251017: Distinguish between common and dart2js specific monitored. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 | « tools/dom/scripts/monitored.py ('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 monitored 10 import monitored
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 'WheelEvent.wheelDeltaX', 67 'WheelEvent.wheelDeltaX',
68 'WheelEvent.wheelDeltaY', 68 'WheelEvent.wheelDeltaY',
69 'Window.cancelAnimationFrame', 69 'Window.cancelAnimationFrame',
70 'Window.console', 70 'Window.console',
71 'Window.document', 71 'Window.document',
72 'Window.indexedDB', 72 'Window.indexedDB',
73 'Window.location', 73 'Window.location',
74 'Window.open', 74 'Window.open',
75 'Window.requestAnimationFrame', 75 'Window.requestAnimationFrame',
76 # 'WorkerContext.indexedDB', # Workers 76 # 'WorkerContext.indexedDB', # Workers
77 ]) 77 ], dart2jsOnly=True)
78 78
79 _js_custom_constructors = monitored.Set('systemhtml._js_custom_constructors', [ 79 _js_custom_constructors = monitored.Set('systemhtml._js_custom_constructors', [
80 'AudioContext', 80 'AudioContext',
81 'Blob', 81 'Blob',
82 'MutationObserver', 82 'MutationObserver',
83 'RTCIceCandidate', 83 'RTCIceCandidate',
84 'RTCPeerConnection', 84 'RTCPeerConnection',
85 'RTCSessionDescription', 85 'RTCSessionDescription',
86 'SpeechRecognition', 86 'SpeechRecognition',
87 ]) 87 ], dart2jsOnly=True)
88 88
89 # Classes that offer only static methods, and therefore we should suppress 89 # Classes that offer only static methods, and therefore we should suppress
90 # constructor creation. 90 # constructor creation.
91 _static_classes = set(['Url']) 91 _static_classes = set(['Url'])
92 92
93 # Information for generating element constructors. 93 # Information for generating element constructors.
94 # 94 #
95 # TODO(sra): maybe remove all the argument complexity and use cascades. 95 # TODO(sra): maybe remove all the argument complexity and use cascades.
96 # 96 #
97 # var c = new CanvasElement(width: 100, height: 70); 97 # var c = new CanvasElement(width: 100, height: 70);
(...skipping 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after
1154 for library_name in libraries: 1154 for library_name in libraries:
1155 self._libraries[library_name] = DartLibrary( 1155 self._libraries[library_name] = DartLibrary(
1156 library_name, template_loader, library_type, output_dir) 1156 library_name, template_loader, library_type, output_dir)
1157 1157
1158 def AddFile(self, basename, library_name, path): 1158 def AddFile(self, basename, library_name, path):
1159 self._libraries[library_name].AddFile(path) 1159 self._libraries[library_name].AddFile(path)
1160 1160
1161 def Emit(self, emitter, auxiliary_dir): 1161 def Emit(self, emitter, auxiliary_dir):
1162 for lib in self._libraries.values(): 1162 for lib in self._libraries.values():
1163 lib.Emit(emitter, auxiliary_dir) 1163 lib.Emit(emitter, auxiliary_dir)
OLDNEW
« no previous file with comments | « tools/dom/scripts/monitored.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698