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

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

Issue 10180003: Reenable ENABLE_NOTIFICATIONS. (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/scripts/fremontcutbuilder.py ('k') | 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 import string 10 import string
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 'WebKitFlags': PrimitiveIDLTypeInfo('WebKitFlags', dart_type='Object'), 634 'WebKitFlags': PrimitiveIDLTypeInfo('WebKitFlags', dart_type='Object'),
635 635
636 'DOMStringList': PrimitiveIDLTypeInfo('DOMStringList', dart_type='List<Strin g>'), 636 'DOMStringList': PrimitiveIDLTypeInfo('DOMStringList', dart_type='List<Strin g>'),
637 'sequence': PrimitiveIDLTypeInfo('sequence', dart_type='List'), 637 'sequence': PrimitiveIDLTypeInfo('sequence', dart_type='List'),
638 'void': PrimitiveIDLTypeInfo('void', dart_type='void'), 638 'void': PrimitiveIDLTypeInfo('void', dart_type='void'),
639 639
640 'CSSRule': IDLTypeInfo('CSSRule', conversion_includes=['CSSImportRule']), 640 'CSSRule': IDLTypeInfo('CSSRule', conversion_includes=['CSSImportRule']),
641 'DOMException': IDLTypeInfo('DOMCoreException', dart_type='DOMException'), 641 'DOMException': IDLTypeInfo('DOMCoreException', dart_type='DOMException'),
642 'DOMStringMap': IDLTypeInfo('DOMStringMap', dart_type='Map<String, String>') , 642 'DOMStringMap': IDLTypeInfo('DOMStringMap', dart_type='Map<String, String>') ,
643 'DOMWindow': IDLTypeInfo('DOMWindow', custom_to_dart=True), 643 'DOMWindow': IDLTypeInfo('DOMWindow', custom_to_dart=True),
644 'Dictionary': IDLTypeInfo('Dictionary', has_dart_wrapper=False, ref_counted= False),
644 'Element': IDLTypeInfo('Element', custom_to_dart=True), 645 'Element': IDLTypeInfo('Element', custom_to_dart=True),
645 'EventListener': IDLTypeInfo('EventListener', has_dart_wrapper=False), 646 'EventListener': IDLTypeInfo('EventListener', has_dart_wrapper=False),
646 'EventTarget': IDLTypeInfo('EventTarget', has_dart_wrapper=False), 647 'EventTarget': IDLTypeInfo('EventTarget', has_dart_wrapper=False),
647 'HTMLElement': IDLTypeInfo('HTMLElement', custom_to_dart=True), 648 'HTMLElement': IDLTypeInfo('HTMLElement', custom_to_dart=True),
648 'IDBAny': IDLTypeInfo('IDBAny', dart_type='Dynamic', has_dart_wrapper=False) , 649 'IDBAny': IDLTypeInfo('IDBAny', dart_type='Dynamic', has_dart_wrapper=False) ,
649 'IDBKey': IDLTypeInfo('IDBKey', dart_type='Dynamic', has_dart_wrapper=False) , 650 'IDBKey': IDLTypeInfo('IDBKey', dart_type='Dynamic', has_dart_wrapper=False) ,
650 'MediaQueryListListener': IDLTypeInfo('MediaQueryListListener', has_dart_wra pper=False), 651 'MediaQueryListListener': IDLTypeInfo('MediaQueryListListener', has_dart_wra pper=False),
651 'OptionsObject': IDLTypeInfo('OptionsObject', has_dart_wrapper=False),
652 'StyleSheet': IDLTypeInfo('StyleSheet', conversion_includes=['CSSStyleSheet' ]), 652 'StyleSheet': IDLTypeInfo('StyleSheet', conversion_includes=['CSSStyleSheet' ]),
653 'SVGElement': IDLTypeInfo('SVGElement', custom_to_dart=True), 653 'SVGElement': IDLTypeInfo('SVGElement', custom_to_dart=True),
654 654
655 'SVGAngle': SVGTearOffIDLTypeInfo('SVGAngle'), 655 'SVGAngle': SVGTearOffIDLTypeInfo('SVGAngle'),
656 'SVGLength': SVGTearOffIDLTypeInfo('SVGLength'), 656 'SVGLength': SVGTearOffIDLTypeInfo('SVGLength'),
657 'SVGLengthList': SVGTearOffIDLTypeInfo('SVGLengthList', ref_counted=False), 657 'SVGLengthList': SVGTearOffIDLTypeInfo('SVGLengthList', ref_counted=False),
658 'SVGMatrix': SVGTearOffIDLTypeInfo('SVGMatrix'), 658 'SVGMatrix': SVGTearOffIDLTypeInfo('SVGMatrix'),
659 'SVGNumber': SVGTearOffIDLTypeInfo('SVGNumber', native_type='SVGPropertyTear Off<float>'), 659 'SVGNumber': SVGTearOffIDLTypeInfo('SVGNumber', native_type='SVGPropertyTear Off<float>'),
660 'SVGNumberList': SVGTearOffIDLTypeInfo('SVGNumberList', ref_counted=False), 660 'SVGNumberList': SVGTearOffIDLTypeInfo('SVGNumberList', ref_counted=False),
661 'SVGPathSegList': SVGTearOffIDLTypeInfo('SVGPathSegList', native_type='SVGPa thSegListPropertyTearOff', ref_counted=False), 661 'SVGPathSegList': SVGTearOffIDLTypeInfo('SVGPathSegList', native_type='SVGPa thSegListPropertyTearOff', ref_counted=False),
(...skipping 13 matching lines...) Expand all
675 '"SVGAnimatedListPropertyTearOff.h"', 675 '"SVGAnimatedListPropertyTearOff.h"',
676 '"SVGTransformListPropertyTearOff.h"', 676 '"SVGTransformListPropertyTearOff.h"',
677 '"SVGPathSegListPropertyTearOff.h"', 677 '"SVGPathSegListPropertyTearOff.h"',
678 ] 678 ]
679 679
680 def GetIDLTypeInfo(idl_type_name): 680 def GetIDLTypeInfo(idl_type_name):
681 match = re.match(r'sequence<(\w+)>$', idl_type_name) 681 match = re.match(r'sequence<(\w+)>$', idl_type_name)
682 if match: 682 if match:
683 return SequenceIDLTypeInfo(idl_type_name, GetIDLTypeInfo(match.group(1))) 683 return SequenceIDLTypeInfo(idl_type_name, GetIDLTypeInfo(match.group(1)))
684 return _idl_type_registry.get(idl_type_name, IDLTypeInfo(idl_type_name)) 684 return _idl_type_registry.get(idl_type_name, IDLTypeInfo(idl_type_name))
OLDNEW
« no previous file with comments | « lib/dom/scripts/fremontcutbuilder.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698