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

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

Issue 13493010: Fix the build with WEB_AUDIO disabled. (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
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
11 import os 11 import os
12 from generator import * 12 from generator import *
13 from htmldartgenerator import * 13 from htmldartgenerator import *
14 14
15 HTML_LIBRARY_NAMES = ['chrome', 'html', 'indexed_db', 'svg', 'web_audio',
16 'web_gl', 'web_sql']
17
15 _js_custom_members = monitored.Set('systemhtml._js_custom_members', [ 18 _js_custom_members = monitored.Set('systemhtml._js_custom_members', [
16 'ArrayBuffer.slice', 19 'ArrayBuffer.slice',
17 'AudioBufferSourceNode.start', 20 'AudioBufferSourceNode.start',
18 'AudioBufferSourceNode.stop', 21 'AudioBufferSourceNode.stop',
19 'AudioContext.createGain', 22 'AudioContext.createGain',
20 'AudioContext.createScriptProcessor', 23 'AudioContext.createScriptProcessor',
21 'CanvasRenderingContext2D.drawImage', 24 'CanvasRenderingContext2D.drawImage',
22 'CanvasRenderingContext2D.lineDashOffset', 25 'CanvasRenderingContext2D.lineDashOffset',
23 'Console.memory', 26 'Console.memory',
24 'Console.profiles', 27 'Console.profiles',
(...skipping 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after
1143 for library_name in libraries: 1146 for library_name in libraries:
1144 self._libraries[library_name] = DartLibrary( 1147 self._libraries[library_name] = DartLibrary(
1145 library_name, template_loader, library_type, output_dir) 1148 library_name, template_loader, library_type, output_dir)
1146 1149
1147 def AddFile(self, basename, library_name, path): 1150 def AddFile(self, basename, library_name, path):
1148 self._libraries[library_name].AddFile(path) 1151 self._libraries[library_name].AddFile(path)
1149 1152
1150 def Emit(self, emitter, auxiliary_dir): 1153 def Emit(self, emitter, auxiliary_dir):
1151 for lib in self._libraries.values(): 1154 for lib in self._libraries.values():
1152 lib.Emit(emitter, auxiliary_dir) 1155 lib.Emit(emitter, auxiliary_dir)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698