Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(547)

Side by Side Diff: client/dom/scripts/systemhtml.py

Issue 9677012: Port the SVG code to the wrapperless DOM. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « client/dom/frog/dom_frog.dart ('k') | client/dom/templates/html/impl/impl_Element.darttemplate » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 27 matching lines...) Expand all
38 'Document.querySelectorAll', 38 'Document.querySelectorAll',
39 'DocumentFragment.querySelectorAll', 39 'DocumentFragment.querySelectorAll',
40 'Element.getBoundingClientRect', 40 'Element.getBoundingClientRect',
41 'Element.getClientRects', 41 'Element.getClientRects',
42 'Node.appendChild', 42 'Node.appendChild',
43 'Node.removeChild', 43 'Node.removeChild',
44 'Node.replaceChild', 44 'Node.replaceChild',
45 'Node.attributes', 45 'Node.attributes',
46 'Node.childNodes', 46 'Node.childNodes',
47 'Document.createElement', 47 'Document.createElement',
48 'Document.createElementNS',
48 'Document.createEvent', 49 'Document.createEvent',
49 'Document.createTextNode', 50 'Document.createTextNode',
50 'Document.createTouchList', 51 'Document.createTouchList',
51 'Window.getComputedStyle', 52 'Window.getComputedStyle',
52 'EventTarget.removeEventListener', 53 'EventTarget.removeEventListener',
53 'EventTarget.addEventListener', 54 'EventTarget.addEventListener',
54 'EventTarget.dispatchEvent', 55 'EventTarget.dispatchEvent',
55 'Event.initEvent', 56 'Event.initEvent',
56 'MouseEvent.initMouseEvent', 57 'MouseEvent.initMouseEvent',
57 ]) 58 ])
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 # "Document.set:selectedStylesheetSet", 106 # "Document.set:selectedStylesheetSet",
106 # "Document.get:preferredStylesheetSet", 107 # "Document.get:preferredStylesheetSet",
107 "Document.get:links", 108 "Document.get:links",
108 "Document.getElementsByTagName", 109 "Document.getElementsByTagName",
109 "Document.set:domain", 110 "Document.set:domain",
110 "Document.get:implementation", 111 "Document.get:implementation",
111 "Document.createAttributeNS", 112 "Document.createAttributeNS",
112 "Document.get:inputEncoding", 113 "Document.get:inputEncoding",
113 "Document.getElementById", 114 "Document.getElementById",
114 "Document.getElementsByClassName", 115 "Document.getElementsByClassName",
116 "Document.get:height",
117 "Document.get:width",
115 "Element.getElementsByClassName", 118 "Element.getElementsByClassName",
116 "Element.getElementsByTagNameNS", 119 "Element.getElementsByTagNameNS",
117 "Element.getElementsByTagName", 120 "Element.getElementsByTagName",
118 "Document.get:compatMode", 121 "Document.get:compatMode",
119 "Document.importNode", 122 "Document.importNode",
120 "Document.evaluate", 123 "Document.evaluate",
121 "Document.get:images", 124 "Document.get:images",
122 "Document.querySelector", 125 "Document.querySelector",
123 "Document.createExpression", 126 "Document.createExpression",
124 "Document.getOverrideStyle", 127 "Document.getOverrideStyle",
125 "Document.xmlStandalone", 128 "Document.xmlStandalone",
126 "Document.createComment", 129 "Document.createComment",
127 "Document.adoptNode", 130 "Document.adoptNode",
128 "Document.get:characterSet", 131 "Document.get:characterSet",
129 "Document.createAttribute", 132 "Document.createAttribute",
130 "Document.querySelectorAll", 133 "Document.querySelectorAll",
131 "Document.get:URL", 134 "Document.get:URL",
132 "Document.createElementNS",
133 "Document.createEntityReference", 135 "Document.createEntityReference",
134 "Document.get:documentURI", 136 "Document.get:documentURI",
135 "Document.set:documentURI", 137 "Document.set:documentURI",
136 "Document.createNodeIterator", 138 "Document.createNodeIterator",
137 "Document.createProcessingInstruction", 139 "Document.createProcessingInstruction",
138 "Document.get:doctype", 140 "Document.get:doctype",
139 "Document.getElementsByName", 141 "Document.getElementsByName",
140 "Document.createTreeWalker", 142 "Document.createTreeWalker",
141 "Document.location", 143 "Document.location",
142 "Document.createNSResolver", 144 "Document.createNSResolver",
(...skipping 1627 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « client/dom/frog/dom_frog.dart ('k') | client/dom/templates/html/impl/impl_Element.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698