| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 2 # Copyright (c) 2011, 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 generates Dart APIs from the IDL database.""" | 6 """This module generates Dart APIs from the IDL database.""" |
| 7 | 7 |
| 8 import emitter | 8 import emitter |
| 9 import idlnode | 9 import idlnode |
| 10 import logging | 10 import logging |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 'Notification', | 58 'Notification', |
| 59 'NotificationCenter', | 59 'NotificationCenter', |
| 60 'TouchList', | 60 'TouchList', |
| 61 'Touch' | 61 'Touch' |
| 62 ]) | 62 ]) |
| 63 | 63 |
| 64 # | 64 # |
| 65 # Custom methods that must be implemented by hand. | 65 # Custom methods that must be implemented by hand. |
| 66 # | 66 # |
| 67 _custom_methods = set([ | 67 _custom_methods = set([ |
| 68 ('DOMWindow', 'createFileReader'), | |
| 69 ('DOMWindow', 'createWebKitCSSMatrix'), | |
| 70 ('DOMWindow', 'createWebKitPoint'), | |
| 71 ('DOMWindow', 'createXMLHttpRequest'), | |
| 72 ('DOMWindow', 'setInterval'), | 68 ('DOMWindow', 'setInterval'), |
| 73 ('DOMWindow', 'setTimeout'), | 69 ('DOMWindow', 'setTimeout'), |
| 74 ('WorkerContext', 'setInterval'), | 70 ('WorkerContext', 'setInterval'), |
| 75 ('WorkerContext', 'setTimeout'), | 71 ('WorkerContext', 'setTimeout'), |
| 76 ('CanvasRenderingContext2D', 'setFillStyle'), | 72 ('CanvasRenderingContext2D', 'setFillStyle'), |
| 77 ('CanvasRenderingContext2D', 'setStrokeStyle'), | 73 ('CanvasRenderingContext2D', 'setStrokeStyle'), |
| 78 ('CanvasRenderingContext2D', 'setFillStyle'), | 74 ('CanvasRenderingContext2D', 'setFillStyle'), |
| 79 ]) | 75 ]) |
| 80 | 76 |
| 81 # | 77 # |
| (...skipping 1660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1742 self._batched_operation_names.append(info.name) | 1738 self._batched_operation_names.append(info.name) |
| 1743 | 1739 |
| 1744 def AddSecondaryGetter(self, interface, attr): | 1740 def AddSecondaryGetter(self, interface, attr): |
| 1745 self.AddGetter(attr) | 1741 self.AddGetter(attr) |
| 1746 | 1742 |
| 1747 def AddSecondarySetter(self, interface, attr): | 1743 def AddSecondarySetter(self, interface, attr): |
| 1748 self.AddSetter(attr) | 1744 self.AddSetter(attr) |
| 1749 | 1745 |
| 1750 def AddSecondaryOperation(self, interface, info): | 1746 def AddSecondaryOperation(self, interface, info): |
| 1751 self.AddOperation(info) | 1747 self.AddOperation(info) |
| OLD | NEW |