| OLD | NEW |
| 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 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 576 # results, we mark the result as instantiating any classes, and mark | 576 # results, we mark the result as instantiating any classes, and mark |
| 577 # each operation with the classes that it could cause to be asynchronously | 577 # each operation with the classes that it could cause to be asynchronously |
| 578 # instantiated. | 578 # instantiated. |
| 579 'IDBRequest.result': ["@Creates('Null')"], | 579 'IDBRequest.result': ["@Creates('Null')"], |
| 580 | 580 |
| 581 # The source is usually a participant in the operation that generated the | 581 # The source is usually a participant in the operation that generated the |
| 582 # IDBRequest. | 582 # IDBRequest. |
| 583 'IDBRequest.source': ["@Creates('Null')"], | 583 'IDBRequest.source': ["@Creates('Null')"], |
| 584 | 584 |
| 585 'IDBFactory.open': ["@Creates('Database')"], | 585 'IDBFactory.open': ["@Creates('Database')"], |
| 586 'IDBFactory.webkitGetDatabaseNames': ["@Creates('DomStringList')"], |
| 586 | 587 |
| 587 'IDBObjectStore.put': ["@_annotation_Creates_IDBKey"], | 588 'IDBObjectStore.put': ["@_annotation_Creates_IDBKey"], |
| 588 'IDBObjectStore.add': ["@_annotation_Creates_IDBKey"], | 589 'IDBObjectStore.add': ["@_annotation_Creates_IDBKey"], |
| 589 'IDBObjectStore.get': ["@annotation_Creates_SerializedScriptValue"], | 590 'IDBObjectStore.get': ["@annotation_Creates_SerializedScriptValue"], |
| 590 'IDBObjectStore.openCursor': ["@Creates('Cursor')"], | 591 'IDBObjectStore.openCursor': ["@Creates('Cursor')"], |
| 591 | 592 |
| 592 'IDBIndex.get': ["@annotation_Creates_SerializedScriptValue"], | 593 'IDBIndex.get': ["@annotation_Creates_SerializedScriptValue"], |
| 593 'IDBIndex.getKey': [ | 594 'IDBIndex.getKey': [ |
| 594 "@annotation_Creates_SerializedScriptValue", | 595 "@annotation_Creates_SerializedScriptValue", |
| 595 # The source is the object store behind the index. | 596 # The source is the object store behind the index. |
| (...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1477 self) | 1478 self) |
| 1478 | 1479 |
| 1479 if type_data.clazz == 'SVGTearOff': | 1480 if type_data.clazz == 'SVGTearOff': |
| 1480 dart_interface_name = self._renamer.RenameInterface( | 1481 dart_interface_name = self._renamer.RenameInterface( |
| 1481 self._database.GetInterface(type_name)) | 1482 self._database.GetInterface(type_name)) |
| 1482 return SVGTearOffIDLTypeInfo( | 1483 return SVGTearOffIDLTypeInfo( |
| 1483 type_name, type_data, dart_interface_name, self) | 1484 type_name, type_data, dart_interface_name, self) |
| 1484 | 1485 |
| 1485 class_name = '%sIDLTypeInfo' % type_data.clazz | 1486 class_name = '%sIDLTypeInfo' % type_data.clazz |
| 1486 return globals()[class_name](type_name, type_data) | 1487 return globals()[class_name](type_name, type_data) |
| OLD | NEW |