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

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

Issue 12049097: Adding supported checks for CssMatrix and Point. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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/html.status ('k') | tools/dom/scripts/htmlrenamer.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 693 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 dart_annotations = { 704 dart_annotations = {
705 'ArrayBuffer': _all_but_ie9_annotations, 705 'ArrayBuffer': _all_but_ie9_annotations,
706 'ArrayBufferView': _all_but_ie9_annotations, 706 'ArrayBufferView': _all_but_ie9_annotations,
707 'DOMApplicationCache': [ 707 'DOMApplicationCache': [
708 "@SupportedBrowser(SupportedBrowser.CHROME)", 708 "@SupportedBrowser(SupportedBrowser.CHROME)",
709 "@SupportedBrowser(SupportedBrowser.FIREFOX)", 709 "@SupportedBrowser(SupportedBrowser.FIREFOX)",
710 "@SupportedBrowser(SupportedBrowser.IE, '10')", 710 "@SupportedBrowser(SupportedBrowser.IE, '10')",
711 "@SupportedBrowser(SupportedBrowser.OPERA)", 711 "@SupportedBrowser(SupportedBrowser.OPERA)",
712 "@SupportedBrowser(SupportedBrowser.SAFARI)", 712 "@SupportedBrowser(SupportedBrowser.SAFARI)",
713 ], 713 ],
714 'DOMWindow.convertPointFromNodeToPage': _webkit_experimental_annotations,
715 'DOMWindow.convertPointFromPageToNode': _webkit_experimental_annotations,
714 'DOMWindow.indexedDB': _indexed_db_annotations, 716 'DOMWindow.indexedDB': _indexed_db_annotations,
715 'DOMWindow.performance': _performance_annotations, 717 'DOMWindow.performance': _performance_annotations,
716 'DOMWindow.webkitNotifications': _webkit_experimental_annotations, 718 'DOMWindow.webkitNotifications': _webkit_experimental_annotations,
717 'DOMWindow.webkitRequestFileSystem': _file_system_annotations, 719 'DOMWindow.webkitRequestFileSystem': _file_system_annotations,
718 'DOMWindow.webkitResolveLocalFileSystemURL': _file_system_annotations, 720 'DOMWindow.webkitResolveLocalFileSystemURL': _file_system_annotations,
719 'Element.webkitCreateShadowRoot': [ 721 'Element.webkitCreateShadowRoot': [
720 "@SupportedBrowser(SupportedBrowser.CHROME, '25')", 722 "@SupportedBrowser(SupportedBrowser.CHROME, '25')",
721 "@Experimental", 723 "@Experimental",
722 ], 724 ],
723 'FileSystem': _file_system_annotations, 725 'FileSystem': _file_system_annotations,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
779 'PopStateEvent': _history_annotations, 781 'PopStateEvent': _history_annotations,
780 'ShadowRoot': [ 782 'ShadowRoot': [
781 "@SupportedBrowser(SupportedBrowser.CHROME, '25')", 783 "@SupportedBrowser(SupportedBrowser.CHROME, '25')",
782 "@Experimental", 784 "@Experimental",
783 ], 785 ],
784 'SpeechRecognition': _speech_recognition_annotations, 786 'SpeechRecognition': _speech_recognition_annotations,
785 'SpeechRecognitionAlternative': _speech_recognition_annotations, 787 'SpeechRecognitionAlternative': _speech_recognition_annotations,
786 'SpeechRecognitionError': _speech_recognition_annotations, 788 'SpeechRecognitionError': _speech_recognition_annotations,
787 'SpeechRecognitionEvent': _speech_recognition_annotations, 789 'SpeechRecognitionEvent': _speech_recognition_annotations,
788 'SpeechRecognitionResult': _speech_recognition_annotations, 790 'SpeechRecognitionResult': _speech_recognition_annotations,
791 'WebKitCSSMatrix': _webkit_experimental_annotations,
792 'WebKitPoint': _webkit_experimental_annotations,
789 'WebSocket': _all_but_ie9_annotations, 793 'WebSocket': _all_but_ie9_annotations,
790 'WorkerContext.indexedDB': _indexed_db_annotations, 794 'WorkerContext.indexedDB': _indexed_db_annotations,
791 'WorkerContext.webkitRequestFileSystem': _file_system_annotations, 795 'WorkerContext.webkitRequestFileSystem': _file_system_annotations,
792 'WorkerContext.webkitRequestFileSystemSync': _file_system_annotations, 796 'WorkerContext.webkitRequestFileSystemSync': _file_system_annotations,
793 'WorkerContext.webkitResolveLocalFileSystemSyncURL': _file_system_annotations, 797 'WorkerContext.webkitResolveLocalFileSystemSyncURL': _file_system_annotations,
794 'WorkerContext.webkitResolveLocalFileSystemURL': _file_system_annotations, 798 'WorkerContext.webkitResolveLocalFileSystemURL': _file_system_annotations,
795 'XMLHttpRequestProgressEvent': _webkit_experimental_annotations, 799 'XMLHttpRequestProgressEvent': _webkit_experimental_annotations,
796 } 800 }
797 801
798 def FindCommonAnnotations(interface_name, member_name=None): 802 def FindCommonAnnotations(interface_name, member_name=None):
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
1389 self) 1393 self)
1390 1394
1391 if type_data.clazz == 'SVGTearOff': 1395 if type_data.clazz == 'SVGTearOff':
1392 dart_interface_name = self._renamer.RenameInterface( 1396 dart_interface_name = self._renamer.RenameInterface(
1393 self._database.GetInterface(type_name)) 1397 self._database.GetInterface(type_name))
1394 return SVGTearOffIDLTypeInfo( 1398 return SVGTearOffIDLTypeInfo(
1395 type_name, type_data, dart_interface_name, self) 1399 type_name, type_data, dart_interface_name, self)
1396 1400
1397 class_name = '%sIDLTypeInfo' % type_data.clazz 1401 class_name = '%sIDLTypeInfo' % type_data.clazz
1398 return globals()[class_name](type_name, type_data) 1402 return globals()[class_name](type_name, type_data)
OLDNEW
« no previous file with comments | « tests/html/html.status ('k') | tools/dom/scripts/htmlrenamer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698