| 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 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 628 "@annotation_Creates_SerializedScriptValue", | 628 "@annotation_Creates_SerializedScriptValue", |
| 629 "@annotation_Returns_SerializedScriptValue", | 629 "@annotation_Returns_SerializedScriptValue", |
| 630 ], | 630 ], |
| 631 'SerializedScriptValue': [ | 631 'SerializedScriptValue': [ |
| 632 "@annotation_Creates_SerializedScriptValue", | 632 "@annotation_Creates_SerializedScriptValue", |
| 633 "@annotation_Returns_SerializedScriptValue", | 633 "@annotation_Returns_SerializedScriptValue", |
| 634 ], | 634 ], |
| 635 | 635 |
| 636 'SQLResultSetRowList.item': ["@Creates('=Object')"], | 636 'SQLResultSetRowList.item': ["@Creates('=Object')"], |
| 637 | 637 |
| 638 'WebGLRenderingContext.getParameter': [ |
| 639 # Taken from http://www.khronos.org/registry/webgl/specs/latest/ |
| 640 # Section 5.14.3 Setting and getting state |
| 641 "@Creates('Null|num|String|bool|=List|Float32Array|Int32Array|Uint32Array" |
| 642 "|WebGLFramebuffer|WebGLRenderbuffer|WebGLTexture')", |
| 643 "@Returns('Null|num|String|bool|=List|Float32Array|Int32Array|Uint32Array" |
| 644 "|WebGLFramebuffer|WebGLRenderbuffer|WebGLTexture')", |
| 645 ], |
| 646 |
| 638 'XMLHttpRequest.response': [ | 647 'XMLHttpRequest.response': [ |
| 639 "@Creates('ArrayBuffer|Blob|Document|=Object|=List|String|num')", | 648 "@Creates('ArrayBuffer|Blob|Document|=Object|=List|String|num')", |
| 640 ], | 649 ], |
| 641 }) | 650 }) |
| 642 | 651 |
| 643 _indexed_db_annotations = [ | 652 _indexed_db_annotations = [ |
| 644 "@SupportedBrowser(SupportedBrowser.CHROME)", | 653 "@SupportedBrowser(SupportedBrowser.CHROME)", |
| 645 "@SupportedBrowser(SupportedBrowser.FIREFOX, '15')", | 654 "@SupportedBrowser(SupportedBrowser.FIREFOX, '15')", |
| 646 "@SupportedBrowser(SupportedBrowser.IE, '10')", | 655 "@SupportedBrowser(SupportedBrowser.IE, '10')", |
| 647 "@Experimental", | 656 "@Experimental", |
| (...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1477 self) | 1486 self) |
| 1478 | 1487 |
| 1479 if type_data.clazz == 'SVGTearOff': | 1488 if type_data.clazz == 'SVGTearOff': |
| 1480 dart_interface_name = self._renamer.RenameInterface( | 1489 dart_interface_name = self._renamer.RenameInterface( |
| 1481 self._database.GetInterface(type_name)) | 1490 self._database.GetInterface(type_name)) |
| 1482 return SVGTearOffIDLTypeInfo( | 1491 return SVGTearOffIDLTypeInfo( |
| 1483 type_name, type_data, dart_interface_name, self) | 1492 type_name, type_data, dart_interface_name, self) |
| 1484 | 1493 |
| 1485 class_name = '%sIDLTypeInfo' % type_data.clazz | 1494 class_name = '%sIDLTypeInfo' % type_data.clazz |
| 1486 return globals()[class_name](type_name, type_data) | 1495 return globals()[class_name](type_name, type_data) |
| OLD | NEW |