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

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

Issue 10463002: Remove SVGViewSpec from pure interface list. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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 | « no previous file | 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 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
11 _pure_interfaces = set([ 11 _pure_interfaces = set([
12 'DOMStringMap', 12 'DOMStringMap',
13 'ElementTimeControl', 13 'ElementTimeControl',
14 'ElementTraversal', 14 'ElementTraversal',
15 'MediaQueryListListener', 15 'MediaQueryListListener',
16 'NodeSelector', 16 'NodeSelector',
17 'SVGExternalResourcesRequired', 17 'SVGExternalResourcesRequired',
18 'SVGFilterPrimitiveStandardAttributes', 18 'SVGFilterPrimitiveStandardAttributes',
19 'SVGFitToViewBox', 19 'SVGFitToViewBox',
20 'SVGLangSpace', 20 'SVGLangSpace',
21 'SVGLocatable', 21 'SVGLocatable',
22 'SVGStylable', 22 'SVGStylable',
23 'SVGTests', 23 'SVGTests',
24 'SVGTransformable', 24 'SVGTransformable',
25 'SVGURIReference', 25 'SVGURIReference',
26 'SVGViewSpec',
27 'SVGZoomAndPan', 26 'SVGZoomAndPan',
28 'TimeoutHandler']) 27 'TimeoutHandler'])
29 28
30 def IsPureInterface(interface_name): 29 def IsPureInterface(interface_name):
31 return interface_name in _pure_interfaces 30 return interface_name in _pure_interfaces
32 31
33 # 32 #
34 # Renames for attributes that have names that are not legal Dart names. 33 # Renames for attributes that have names that are not legal Dart names.
35 # 34 #
36 _dart_attribute_renames = { 35 _dart_attribute_renames = {
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
757 '"SVGAnimatedListPropertyTearOff.h"', 756 '"SVGAnimatedListPropertyTearOff.h"',
758 '"SVGTransformListPropertyTearOff.h"', 757 '"SVGTransformListPropertyTearOff.h"',
759 '"SVGPathSegListPropertyTearOff.h"', 758 '"SVGPathSegListPropertyTearOff.h"',
760 ] 759 ]
761 760
762 def GetIDLTypeInfo(idl_type_name): 761 def GetIDLTypeInfo(idl_type_name):
763 match = re.match(r'sequence<(\w+)>$', idl_type_name) 762 match = re.match(r'sequence<(\w+)>$', idl_type_name)
764 if match: 763 if match:
765 return SequenceIDLTypeInfo(idl_type_name, GetIDLTypeInfo(match.group(1))) 764 return SequenceIDLTypeInfo(idl_type_name, GetIDLTypeInfo(match.group(1)))
766 return _idl_type_registry.get(idl_type_name, IDLTypeInfo(idl_type_name)) 765 return _idl_type_registry.get(idl_type_name, IDLTypeInfo(idl_type_name))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698