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

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

Issue 12091005: Revert "Adding supported checks for Element.matches." (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/html.status ('k') | tools/dom/templates/html/impl/impl_Element.darttemplate » ('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 json 10 import json
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 'DOMWindow.indexedDB': _indexed_db_annotations, 731 'DOMWindow.indexedDB': _indexed_db_annotations,
732 'DOMWindow.openDatabase': _web_sql_annotations, 732 'DOMWindow.openDatabase': _web_sql_annotations,
733 'DOMWindow.performance': _performance_annotations, 733 'DOMWindow.performance': _performance_annotations,
734 'DOMWindow.webkitNotifications': _webkit_experimental_annotations, 734 'DOMWindow.webkitNotifications': _webkit_experimental_annotations,
735 'DOMWindow.webkitRequestFileSystem': _file_system_annotations, 735 'DOMWindow.webkitRequestFileSystem': _file_system_annotations,
736 'DOMWindow.webkitResolveLocalFileSystemURL': _file_system_annotations, 736 'DOMWindow.webkitResolveLocalFileSystemURL': _file_system_annotations,
737 'Element.webkitCreateShadowRoot': [ 737 'Element.webkitCreateShadowRoot': [
738 "@SupportedBrowser(SupportedBrowser.CHROME, '25')", 738 "@SupportedBrowser(SupportedBrowser.CHROME, '25')",
739 "@Experimental", 739 "@Experimental",
740 ], 740 ],
741 'Element.webkitMatchesSelector': _all_but_ie9_annotations,
742 'FileSystem': _file_system_annotations, 741 'FileSystem': _file_system_annotations,
743 'FileSystemSync': _file_system_annotations, 742 'FileSystemSync': _file_system_annotations,
744 'HashChangeEvent': [ 743 'HashChangeEvent': [
745 "@SupportedBrowser(SupportedBrowser.CHROME)", 744 "@SupportedBrowser(SupportedBrowser.CHROME)",
746 "@SupportedBrowser(SupportedBrowser.FIREFOX)", 745 "@SupportedBrowser(SupportedBrowser.FIREFOX)",
747 "@SupportedBrowser(SupportedBrowser.SAFARI)", 746 "@SupportedBrowser(SupportedBrowser.SAFARI)",
748 ], 747 ],
749 'History.pushState': _history_annotations, 748 'History.pushState': _history_annotations,
750 'History.replaceState': _history_annotations, 749 'History.replaceState': _history_annotations,
751 'HTMLContentElement': [ 750 'HTMLContentElement': [
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after
1444 self) 1443 self)
1445 1444
1446 if type_data.clazz == 'SVGTearOff': 1445 if type_data.clazz == 'SVGTearOff':
1447 dart_interface_name = self._renamer.RenameInterface( 1446 dart_interface_name = self._renamer.RenameInterface(
1448 self._database.GetInterface(type_name)) 1447 self._database.GetInterface(type_name))
1449 return SVGTearOffIDLTypeInfo( 1448 return SVGTearOffIDLTypeInfo(
1450 type_name, type_data, dart_interface_name, self) 1449 type_name, type_data, dart_interface_name, self)
1451 1450
1452 class_name = '%sIDLTypeInfo' % type_data.clazz 1451 class_name = '%sIDLTypeInfo' % type_data.clazz
1453 return globals()[class_name](type_name, type_data) 1452 return globals()[class_name](type_name, type_data)
OLDNEW
« no previous file with comments | « tests/html/html.status ('k') | tools/dom/templates/html/impl/impl_Element.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698