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

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

Issue 11885031: Adding support checks for ApplicationCache. (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/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 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 "@SupportedBrowser(SupportedBrowser.IE)", 643 "@SupportedBrowser(SupportedBrowser.IE)",
644 ] 644 ]
645 645
646 # Annotations to be placed on generated members. 646 # Annotations to be placed on generated members.
647 # The table is indexed as: 647 # The table is indexed as:
648 # INTERFACE: annotations to be added to the interface declaration 648 # INTERFACE: annotations to be added to the interface declaration
649 # INTERFACE.MEMBER: annotation to be added to the member declaration 649 # INTERFACE.MEMBER: annotation to be added to the member declaration
650 dart_annotations = { 650 dart_annotations = {
651 'ArrayBuffer': _all_but_ie9_annotations, 651 'ArrayBuffer': _all_but_ie9_annotations,
652 'ArrayBufferView': _all_but_ie9_annotations, 652 'ArrayBufferView': _all_but_ie9_annotations,
653 'DOMApplicationCache': _all_but_ie9_annotations,
Emily Fortuna 2013/01/14 23:32:11 +Opera?
blois 2013/01/15 02:05:56 Done.
653 'DOMWindow.indexedDB': _indexed_db_annotations, 654 'DOMWindow.indexedDB': _indexed_db_annotations,
654 'DOMWindow.performance': _performance_annotations, 655 'DOMWindow.performance': _performance_annotations,
655 'Element.webkitCreateShadowRoot': [ 656 'Element.webkitCreateShadowRoot': [
656 "@SupportedBrowser(SupportedBrowser.CHROME, '25')", 657 "@SupportedBrowser(SupportedBrowser.CHROME, '25')",
657 "@Experimental()", 658 "@Experimental()",
658 ], 659 ],
659 'History.pushState': _history_annotations, 660 'History.pushState': _history_annotations,
660 'History.replaceState': _history_annotations, 661 'History.replaceState': _history_annotations,
661 'HTMLContentElement': [ 662 'HTMLContentElement': [
662 "@SupportedBrowser(SupportedBrowser.CHROME, '25')", 663 "@SupportedBrowser(SupportedBrowser.CHROME, '25')",
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
1284 self) 1285 self)
1285 1286
1286 if type_data.clazz == 'SVGTearOff': 1287 if type_data.clazz == 'SVGTearOff':
1287 dart_interface_name = self._renamer.RenameInterface( 1288 dart_interface_name = self._renamer.RenameInterface(
1288 self._database.GetInterface(type_name)) 1289 self._database.GetInterface(type_name))
1289 return SVGTearOffIDLTypeInfo( 1290 return SVGTearOffIDLTypeInfo(
1290 type_name, type_data, dart_interface_name, self) 1291 type_name, type_data, dart_interface_name, self)
1291 1292
1292 class_name = '%sIDLTypeInfo' % type_data.clazz 1293 class_name = '%sIDLTypeInfo' % type_data.clazz
1293 return globals()[class_name](type_name, type_data) 1294 return globals()[class_name](type_name, type_data)
OLDNEW
« no previous file with comments | « tests/html/html.status ('k') | tools/dom/scripts/systemhtml.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698