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

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

Issue 12218185: Separating Web SQL into dart:web_sql. (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 | « tools/dom/scripts/dartdomgenerator.py ('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 json 10 import json
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 ], 534 ],
535 535
536 # Methods returning Window can return a local window, or a cross-frame 536 # Methods returning Window can return a local window, or a cross-frame
537 # window (=Object) that needs wrapping. 537 # window (=Object) that needs wrapping.
538 'DOMWindow': [ 538 'DOMWindow': [
539 "@Creates('Window|=Object')", 539 "@Creates('Window|=Object')",
540 "@Returns('Window|=Object')", 540 "@Returns('Window|=Object')",
541 ], 541 ],
542 542
543 'DOMWindow.openDatabase': [ 543 'DOMWindow.openDatabase': [
544 "@Creates('Database')", 544 "@Creates('SqlDatabase')",
545 "@Creates('DatabaseSync')", 545 "@Creates('SqlDatabaseSync')",
546 ], 546 ],
547 547
548 # To be in callback with the browser-created Event, we had to have called 548 # To be in callback with the browser-created Event, we had to have called
549 # addEventListener on the target, so we avoid 549 # addEventListener on the target, so we avoid
550 'Event.currentTarget': [ 550 'Event.currentTarget': [
551 "@Creates('Null')", 551 "@Creates('Null')",
552 "@Returns('EventTarget|=Object')", 552 "@Returns('EventTarget|=Object')",
553 ], 553 ],
554 554
555 # Only nodes in the DOM bubble and have target !== currentTarget. 555 # Only nodes in the DOM bubble and have target !== currentTarget.
(...skipping 921 matching lines...) Expand 10 before | Expand all | Expand 10 after
1477 self) 1477 self)
1478 1478
1479 if type_data.clazz == 'SVGTearOff': 1479 if type_data.clazz == 'SVGTearOff':
1480 dart_interface_name = self._renamer.RenameInterface( 1480 dart_interface_name = self._renamer.RenameInterface(
1481 self._database.GetInterface(type_name)) 1481 self._database.GetInterface(type_name))
1482 return SVGTearOffIDLTypeInfo( 1482 return SVGTearOffIDLTypeInfo(
1483 type_name, type_data, dart_interface_name, self) 1483 type_name, type_data, dart_interface_name, self)
1484 1484
1485 class_name = '%sIDLTypeInfo' % type_data.clazz 1485 class_name = '%sIDLTypeInfo' % type_data.clazz
1486 return globals()[class_name](type_name, type_data) 1486 return globals()[class_name](type_name, type_data)
OLDNEW
« no previous file with comments | « tools/dom/scripts/dartdomgenerator.py ('k') | tools/dom/scripts/htmlrenamer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698