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

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

Issue 12041053: Adding supported flag to HashChangeEvent. (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
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 704 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 'DOMWindow.performance': _performance_annotations, 715 'DOMWindow.performance': _performance_annotations,
716 'DOMWindow.webkitNotifications': _webkit_experimental_annotations, 716 'DOMWindow.webkitNotifications': _webkit_experimental_annotations,
717 'DOMWindow.webkitRequestFileSystem': _file_system_annotations, 717 'DOMWindow.webkitRequestFileSystem': _file_system_annotations,
718 'DOMWindow.webkitResolveLocalFileSystemURL': _file_system_annotations, 718 'DOMWindow.webkitResolveLocalFileSystemURL': _file_system_annotations,
719 'Element.webkitCreateShadowRoot': [ 719 'Element.webkitCreateShadowRoot': [
720 "@SupportedBrowser(SupportedBrowser.CHROME, '25')", 720 "@SupportedBrowser(SupportedBrowser.CHROME, '25')",
721 "@Experimental()", 721 "@Experimental()",
722 ], 722 ],
723 'FileSystem': _file_system_annotations, 723 'FileSystem': _file_system_annotations,
724 'FileSystemSync': _file_system_annotations, 724 'FileSystemSync': _file_system_annotations,
725 'HashChangeEvent': [
726 "@SupportedBrowser(SupportedBrowser.CHROME)",
727 "@SupportedBrowser(SupportedBrowser.FIREFOX)",
728 "@SupportedBrowser(SupportedBrowser.SAFARI)",
729 ],
725 'History.pushState': _history_annotations, 730 'History.pushState': _history_annotations,
726 'History.replaceState': _history_annotations, 731 'History.replaceState': _history_annotations,
727 'HTMLContentElement': [ 732 'HTMLContentElement': [
728 "@SupportedBrowser(SupportedBrowser.CHROME, '25')", 733 "@SupportedBrowser(SupportedBrowser.CHROME, '25')",
729 "@Experimental()", 734 "@Experimental()",
730 ], 735 ],
731 'HTMLDataListElement': _all_but_ie9_annotations, 736 'HTMLDataListElement': _all_but_ie9_annotations,
732 'HTMLDetailsElement': _webkit_experimental_annotations, 737 'HTMLDetailsElement': _webkit_experimental_annotations,
733 'HTMLEmbedElement': [ 738 'HTMLEmbedElement': [
734 "@SupportedBrowser(SupportedBrowser.CHROME)", 739 "@SupportedBrowser(SupportedBrowser.CHROME)",
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
1382 self) 1387 self)
1383 1388
1384 if type_data.clazz == 'SVGTearOff': 1389 if type_data.clazz == 'SVGTearOff':
1385 dart_interface_name = self._renamer.RenameInterface( 1390 dart_interface_name = self._renamer.RenameInterface(
1386 self._database.GetInterface(type_name)) 1391 self._database.GetInterface(type_name))
1387 return SVGTearOffIDLTypeInfo( 1392 return SVGTearOffIDLTypeInfo(
1388 type_name, type_data, dart_interface_name, self) 1393 type_name, type_data, dart_interface_name, self)
1389 1394
1390 class_name = '%sIDLTypeInfo' % type_data.clazz 1395 class_name = '%sIDLTypeInfo' % type_data.clazz
1391 return globals()[class_name](type_name, type_data) 1396 return globals()[class_name](type_name, type_data)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698