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 the system to generate | 6 """This module provides shared functionality for the system to generate |
7 Dart:html APIs from the IDL database.""" | 7 Dart:html APIs from the IDL database.""" |
8 | 8 |
9 from systemfrog import * | 9 from systemfrog import * |
10 from systeminterface import * | 10 from systeminterface import * |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 'MouseEvent.initMouseEvent', | 57 'MouseEvent.initMouseEvent', |
58 'Node.appendChild', | 58 'Node.appendChild', |
59 'Node.attributes', | 59 'Node.attributes', |
60 'Node.childNodes', | 60 'Node.childNodes', |
61 'Node.firstChild', | 61 'Node.firstChild', |
62 'Node.lastChild', | 62 'Node.lastChild', |
63 "Node.nodeType", | 63 "Node.nodeType", |
64 'Node.removeChild', | 64 'Node.removeChild', |
65 'Node.replaceChild', | 65 'Node.replaceChild', |
66 'NodeSelector.querySelectorAll', | 66 'NodeSelector.querySelectorAll', |
| 67 'Storage.length', |
| 68 'Storage.clear', |
| 69 'Storage.getItem', |
| 70 'Storage.key', |
| 71 'Storage.removeItem', |
| 72 'Storage.setItem', |
67 'Window.getComputedStyle', | 73 'Window.getComputedStyle', |
68 ]) | 74 ]) |
69 | 75 |
70 _manually_generated_html_members = set([ | 76 _manually_generated_html_members = set([ |
71 'Document.querySelectorAll', | 77 'Document.querySelectorAll', |
72 'Document.querySelector', | 78 'Document.querySelector', |
73 ]) | 79 ]) |
74 | 80 |
75 # Members from the standard dom that exist in the dart:html library with | 81 # Members from the standard dom that exist in the dart:html library with |
76 # identical functionality but with cleaner names. | 82 # identical functionality but with cleaner names. |
(...skipping 1634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1711 # dispatch has removed f(X), leaving only f(Y), but there is no guarantee | 1717 # dispatch has removed f(X), leaving only f(Y), but there is no guarantee |
1712 # that Y = Z-X, so we need to check for Y. | 1718 # that Y = Z-X, so we need to check for Y. |
1713 true_code = emitter.Emit( | 1719 true_code = emitter.Emit( |
1714 '$(INDENT)if ($COND) {\n' | 1720 '$(INDENT)if ($COND) {\n' |
1715 '$!TRUE' | 1721 '$!TRUE' |
1716 '$(INDENT)}\n', | 1722 '$(INDENT)}\n', |
1717 COND=test, INDENT=indent) | 1723 COND=test, INDENT=indent) |
1718 self.GenerateDispatch( | 1724 self.GenerateDispatch( |
1719 true_code, info, indent + ' ', position + 1, positive) | 1725 true_code, info, indent + ' ', position + 1, positive) |
1720 return True | 1726 return True |
OLD | NEW |