| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 # "Document.set:selectedStylesheetSet", | 105 # "Document.set:selectedStylesheetSet", |
| 106 # "Document.get:preferredStylesheetSet", | 106 # "Document.get:preferredStylesheetSet", |
| 107 "Document.get:links", | 107 "Document.get:links", |
| 108 "Document.getElementsByTagName", | 108 "Document.getElementsByTagName", |
| 109 "Document.set:domain", | 109 "Document.set:domain", |
| 110 "Document.get:implementation", | 110 "Document.get:implementation", |
| 111 "Document.createAttributeNS", | 111 "Document.createAttributeNS", |
| 112 "Document.get:inputEncoding", | 112 "Document.get:inputEncoding", |
| 113 "Document.getElementById", | 113 "Document.getElementById", |
| 114 "Document.getElementsByClassName", | 114 "Document.getElementsByClassName", |
| 115 "Document.get:height", |
| 116 "Document.get:width", |
| 115 "Element.getElementsByClassName", | 117 "Element.getElementsByClassName", |
| 116 "Element.getElementsByTagNameNS", | 118 "Element.getElementsByTagNameNS", |
| 117 "Element.getElementsByTagName", | 119 "Element.getElementsByTagName", |
| 118 "Document.get:compatMode", | 120 "Document.get:compatMode", |
| 119 "Document.importNode", | 121 "Document.importNode", |
| 120 "Document.evaluate", | 122 "Document.evaluate", |
| 121 "Document.get:images", | 123 "Document.get:images", |
| 122 "Document.querySelector", | 124 "Document.querySelector", |
| 123 "Document.createExpression", | 125 "Document.createExpression", |
| 124 "Document.getOverrideStyle", | 126 "Document.getOverrideStyle", |
| (...skipping 1645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1770 # dispatch has removed f(X), leaving only f(Y), but there is no guarantee | 1772 # dispatch has removed f(X), leaving only f(Y), but there is no guarantee |
| 1771 # that Y = Z-X, so we need to check for Y. | 1773 # that Y = Z-X, so we need to check for Y. |
| 1772 true_code = emitter.Emit( | 1774 true_code = emitter.Emit( |
| 1773 '$(INDENT)if ($COND) {\n' | 1775 '$(INDENT)if ($COND) {\n' |
| 1774 '$!TRUE' | 1776 '$!TRUE' |
| 1775 '$(INDENT)}\n', | 1777 '$(INDENT)}\n', |
| 1776 COND=test, INDENT=indent) | 1778 COND=test, INDENT=indent) |
| 1777 self.GenerateDispatch( | 1779 self.GenerateDispatch( |
| 1778 true_code, info, indent + ' ', position + 1, positive) | 1780 true_code, info, indent + ' ', position + 1, positive) |
| 1779 return True | 1781 return True |
| OLD | NEW |