| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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)) |
| OLD | NEW |