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

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

Issue 12041082: Adding supported checks for HttpRequestProgressEvent. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 | « tests/html/xhr_test.dart ('k') | tools/dom/scripts/systemhtml.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 copy 9 import copy
10 import re 10 import re
(...skipping 773 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 'SpeechRecognitionAlternative': _speech_recognition_annotations, 784 'SpeechRecognitionAlternative': _speech_recognition_annotations,
785 'SpeechRecognitionError': _speech_recognition_annotations, 785 'SpeechRecognitionError': _speech_recognition_annotations,
786 'SpeechRecognitionEvent': _speech_recognition_annotations, 786 'SpeechRecognitionEvent': _speech_recognition_annotations,
787 'SpeechRecognitionResult': _speech_recognition_annotations, 787 'SpeechRecognitionResult': _speech_recognition_annotations,
788 'WebSocket': _all_but_ie9_annotations, 788 'WebSocket': _all_but_ie9_annotations,
789 'WorkerContext.indexedDB': _indexed_db_annotations, 789 'WorkerContext.indexedDB': _indexed_db_annotations,
790 'WorkerContext.webkitRequestFileSystem': _file_system_annotations, 790 'WorkerContext.webkitRequestFileSystem': _file_system_annotations,
791 'WorkerContext.webkitRequestFileSystemSync': _file_system_annotations, 791 'WorkerContext.webkitRequestFileSystemSync': _file_system_annotations,
792 'WorkerContext.webkitResolveLocalFileSystemSyncURL': _file_system_annotations, 792 'WorkerContext.webkitResolveLocalFileSystemSyncURL': _file_system_annotations,
793 'WorkerContext.webkitResolveLocalFileSystemURL': _file_system_annotations, 793 'WorkerContext.webkitResolveLocalFileSystemURL': _file_system_annotations,
794 'XMLHttpRequestProgressEvent': _webkit_experimental_annotations,
794 } 795 }
795 796
796 def FindCommonAnnotations(interface_name, member_name=None): 797 def FindCommonAnnotations(interface_name, member_name=None):
797 """ Finds annotations common between dart2js and dartium. 798 """ Finds annotations common between dart2js and dartium.
798 """ 799 """
799 if member_name: 800 if member_name:
800 key = '%s.%s' % (interface_name, member_name) 801 key = '%s.%s' % (interface_name, member_name)
801 else: 802 else:
802 key = interface_name 803 key = interface_name
803 804
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
1387 self) 1388 self)
1388 1389
1389 if type_data.clazz == 'SVGTearOff': 1390 if type_data.clazz == 'SVGTearOff':
1390 dart_interface_name = self._renamer.RenameInterface( 1391 dart_interface_name = self._renamer.RenameInterface(
1391 self._database.GetInterface(type_name)) 1392 self._database.GetInterface(type_name))
1392 return SVGTearOffIDLTypeInfo( 1393 return SVGTearOffIDLTypeInfo(
1393 type_name, type_data, dart_interface_name, self) 1394 type_name, type_data, dart_interface_name, self)
1394 1395
1395 class_name = '%sIDLTypeInfo' % type_data.clazz 1396 class_name = '%sIDLTypeInfo' % type_data.clazz
1396 return globals()[class_name](type_name, type_data) 1397 return globals()[class_name](type_name, type_data)
OLDNEW
« no previous file with comments | « tests/html/xhr_test.dart ('k') | tools/dom/scripts/systemhtml.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698