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

Side by Side Diff: lib/dom/scripts/generator.py

Issue 10027017: Auto-generate TimeoutHandler.dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: . Created 8 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 | « lib/dom/idl/dart/dart.idl ('k') | lib/dom/scripts/systemnative.py » ('j') | 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 systems to generate 6 """This module provides shared functionality for systems to generate
7 Dart APIs from the IDL database.""" 7 Dart APIs from the IDL database."""
8 8
9 import re 9 import re
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 'SVGExternalResourcesRequired', 60 'SVGExternalResourcesRequired',
61 'SVGFilterPrimitiveStandardAttributes', 61 'SVGFilterPrimitiveStandardAttributes',
62 'SVGFitToViewBox', 62 'SVGFitToViewBox',
63 'SVGLangSpace', 63 'SVGLangSpace',
64 'SVGLocatable', 64 'SVGLocatable',
65 'SVGStylable', 65 'SVGStylable',
66 'SVGTests', 66 'SVGTests',
67 'SVGTransformable', 67 'SVGTransformable',
68 'SVGURIReference', 68 'SVGURIReference',
69 'SVGViewSpec', 69 'SVGViewSpec',
70 'SVGZoomAndPan']) 70 'SVGZoomAndPan',
71 'TimeoutHandler'])
71 72
72 def IsPureInterface(interface_name): 73 def IsPureInterface(interface_name):
73 return interface_name in _pure_interfaces 74 return interface_name in _pure_interfaces
74 75
75 # 76 #
76 # Identifiers that are used in the IDL than need to be treated specially because 77 # Identifiers that are used in the IDL than need to be treated specially because
77 # *some* JavaScript processors forbid them as properties. 78 # *some* JavaScript processors forbid them as properties.
78 # 79 #
79 _javascript_keywords = ['delete', 'continue'] 80 _javascript_keywords = ['delete', 'continue']
80 81
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
680 '"SVGAnimatedPropertyTearOff.h"', 681 '"SVGAnimatedPropertyTearOff.h"',
681 '"SVGAnimatedListPropertyTearOff.h"', 682 '"SVGAnimatedListPropertyTearOff.h"',
682 '"SVGStaticListPropertyTearOff.h"', 683 '"SVGStaticListPropertyTearOff.h"',
683 '"SVGAnimatedListPropertyTearOff.h"', 684 '"SVGAnimatedListPropertyTearOff.h"',
684 '"SVGTransformListPropertyTearOff.h"', 685 '"SVGTransformListPropertyTearOff.h"',
685 '"SVGPathSegListPropertyTearOff.h"', 686 '"SVGPathSegListPropertyTearOff.h"',
686 ] 687 ]
687 688
688 def GetIDLTypeInfo(idl_type_name): 689 def GetIDLTypeInfo(idl_type_name):
689 return _idl_type_registry.get(idl_type_name, IDLTypeInfo(idl_type_name)) 690 return _idl_type_registry.get(idl_type_name, IDLTypeInfo(idl_type_name))
OLDNEW
« no previous file with comments | « lib/dom/idl/dart/dart.idl ('k') | lib/dom/scripts/systemnative.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698