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

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

Issue 279453003: Make fill parameter in context2d default to 'nonzero' as per the spec. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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 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.fill',
28 'CanvasRenderingContext2D.fillText', 29 'CanvasRenderingContext2D.fillText',
29 'CanvasRenderingContext2D.lineDashOffset', 30 'CanvasRenderingContext2D.lineDashOffset',
30 'CanvasRenderingContext2D.setLineDash', 31 'CanvasRenderingContext2D.setLineDash',
31 'Console.memory', 32 'Console.memory',
32 'ConsoleBase.assertCondition', 33 'ConsoleBase.assertCondition',
33 'ConsoleBase.clear', 34 'ConsoleBase.clear',
34 'ConsoleBase.count', 35 'ConsoleBase.count',
35 'ConsoleBase.debug', 36 'ConsoleBase.debug',
36 'ConsoleBase.dir', 37 'ConsoleBase.dir',
37 'ConsoleBase.dirxml', 38 'ConsoleBase.dirxml',
(...skipping 1205 matching lines...) Expand 10 before | Expand all | Expand 10 after
1243 for library_name in libraries: 1244 for library_name in libraries:
1244 self._libraries[library_name] = DartLibrary( 1245 self._libraries[library_name] = DartLibrary(
1245 library_name, template_loader, library_type, output_dir) 1246 library_name, template_loader, library_type, output_dir)
1246 1247
1247 def AddFile(self, basename, library_name, path): 1248 def AddFile(self, basename, library_name, path):
1248 self._libraries[library_name].AddFile(path) 1249 self._libraries[library_name].AddFile(path)
1249 1250
1250 def Emit(self, emitter, auxiliary_dir): 1251 def Emit(self, emitter, auxiliary_dir):
1251 for lib in self._libraries.values(): 1252 for lib in self._libraries.values():
1252 lib.Emit(emitter, auxiliary_dir) 1253 lib.Emit(emitter, auxiliary_dir)
OLDNEW
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | tools/dom/templates/html/impl/impl_CanvasRenderingContext2D.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698