| 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 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 684 "@annotation_Creates_SerializedScriptValue", | 684 "@annotation_Creates_SerializedScriptValue", |
| 685 "@annotation_Returns_SerializedScriptValue", | 685 "@annotation_Returns_SerializedScriptValue", |
| 686 ], | 686 ], |
| 687 | 687 |
| 688 'SQLResultSetRowList.item': ["@Creates('=Object')"], | 688 'SQLResultSetRowList.item': ["@Creates('=Object')"], |
| 689 | 689 |
| 690 'WebGLRenderingContext.getParameter': [ | 690 'WebGLRenderingContext.getParameter': [ |
| 691 # Taken from http://www.khronos.org/registry/webgl/specs/latest/ | 691 # Taken from http://www.khronos.org/registry/webgl/specs/latest/ |
| 692 # Section 5.14.3 Setting and getting state | 692 # Section 5.14.3 Setting and getting state |
| 693 "@Creates('Null|num|String|bool|=List|Float32Array|Int32Array|Uint32Array" | 693 "@Creates('Null|num|String|bool|=List|Float32Array|Int32Array|Uint32Array" |
| 694 "|WebGLFramebuffer|WebGLRenderbuffer|WebGLTexture')", | 694 "|Framebuffer|Renderbuffer|Texture')", |
| 695 "@Returns('Null|num|String|bool|=List|Float32Array|Int32Array|Uint32Array" | 695 "@Returns('Null|num|String|bool|=List|Float32Array|Int32Array|Uint32Array" |
| 696 "|WebGLFramebuffer|WebGLRenderbuffer|WebGLTexture')", | 696 "|Framebuffer|Renderbuffer|Texture')", |
| 697 ], | 697 ], |
| 698 | 698 |
| 699 'XMLHttpRequest.response': [ | 699 'XMLHttpRequest.response': [ |
| 700 "@Creates('ArrayBuffer|Blob|Document|=Object|=List|String|num')", | 700 "@Creates('ArrayBuffer|Blob|Document|=Object|=List|String|num')", |
| 701 ], | 701 ], |
| 702 }) | 702 }) |
| 703 | 703 |
| 704 _indexed_db_annotations = [ | 704 _indexed_db_annotations = [ |
| 705 "@SupportedBrowser(SupportedBrowser.CHROME)", | 705 "@SupportedBrowser(SupportedBrowser.CHROME)", |
| 706 "@SupportedBrowser(SupportedBrowser.FIREFOX, '15')", | 706 "@SupportedBrowser(SupportedBrowser.FIREFOX, '15')", |
| (...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1566 self) | 1566 self) |
| 1567 | 1567 |
| 1568 if type_data.clazz == 'SVGTearOff': | 1568 if type_data.clazz == 'SVGTearOff': |
| 1569 dart_interface_name = self._renamer.RenameInterface( | 1569 dart_interface_name = self._renamer.RenameInterface( |
| 1570 self._database.GetInterface(type_name)) | 1570 self._database.GetInterface(type_name)) |
| 1571 return SVGTearOffIDLTypeInfo( | 1571 return SVGTearOffIDLTypeInfo( |
| 1572 type_name, type_data, dart_interface_name, self) | 1572 type_name, type_data, dart_interface_name, self) |
| 1573 | 1573 |
| 1574 class_name = '%sIDLTypeInfo' % type_data.clazz | 1574 class_name = '%sIDLTypeInfo' % type_data.clazz |
| 1575 return globals()[class_name](type_name, type_data) | 1575 return globals()[class_name](type_name, type_data) |
| OLD | NEW |