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

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

Issue 29273005: CanvasRenderingContext2D.fillText now works correctly with null maxWidth. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Better style + better tests. Created 7 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
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 logging 10 import logging
11 import monitored 11 import monitored
12 import os 12 import os
13 import re 13 import re
14 from generator import * 14 from generator import *
15 from htmldartgenerator import * 15 from htmldartgenerator import *
16 16
17 _logger = logging.getLogger('systemhtml') 17 _logger = logging.getLogger('systemhtml')
18 18
19 HTML_LIBRARY_NAMES = ['chrome', 'html', 'indexed_db', 'svg', 19 HTML_LIBRARY_NAMES = ['chrome', 'html', 'indexed_db', 'svg',
20 'web_audio', 'web_gl', 'web_sql'] 20 'web_audio', 'web_gl', 'web_sql']
21 21
22 _js_custom_members = monitored.Set('systemhtml._js_custom_members', [ 22 _js_custom_members = monitored.Set('systemhtml._js_custom_members', [
23 'AudioBufferSourceNode.start', 23 'AudioBufferSourceNode.start',
24 'AudioBufferSourceNode.stop', 24 'AudioBufferSourceNode.stop',
25 'AudioContext.createGain', 25 'AudioContext.createGain',
26 'AudioContext.createScriptProcessor', 26 'AudioContext.createScriptProcessor',
27 'CanvasRenderingContext2D.drawImage', 27 'CanvasRenderingContext2D.drawImage',
28 'CanvasRenderingContext2D.lineDashOffset', 28 'CanvasRenderingContext2D.lineDashOffset',
29 'CanvasRenderingContext2D.fillText',
29 'Console.memory', 30 'Console.memory',
30 'ConsoleBase.assertCondition', 31 'ConsoleBase.assertCondition',
31 'ConsoleBase.clear', 32 'ConsoleBase.clear',
32 'ConsoleBase.count', 33 'ConsoleBase.count',
33 'ConsoleBase.debug', 34 'ConsoleBase.debug',
34 'ConsoleBase.dir', 35 'ConsoleBase.dir',
35 'ConsoleBase.dirxml', 36 'ConsoleBase.dirxml',
36 'ConsoleBase.error', 37 'ConsoleBase.error',
37 'ConsoleBase.group', 38 'ConsoleBase.group',
38 'ConsoleBase.groupCollapsed', 39 'ConsoleBase.groupCollapsed',
(...skipping 1198 matching lines...) Expand 10 before | Expand all | Expand 10 after
1237 for library_name in libraries: 1238 for library_name in libraries:
1238 self._libraries[library_name] = DartLibrary( 1239 self._libraries[library_name] = DartLibrary(
1239 library_name, template_loader, library_type, output_dir) 1240 library_name, template_loader, library_type, output_dir)
1240 1241
1241 def AddFile(self, basename, library_name, path): 1242 def AddFile(self, basename, library_name, path):
1242 self._libraries[library_name].AddFile(path) 1243 self._libraries[library_name].AddFile(path)
1243 1244
1244 def Emit(self, emitter, auxiliary_dir): 1245 def Emit(self, emitter, auxiliary_dir):
1245 for lib in self._libraries.values(): 1246 for lib in self._libraries.values():
1246 lib.Emit(emitter, auxiliary_dir) 1247 lib.Emit(emitter, auxiliary_dir)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698