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

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

Issue 10384017: Minimal fix to get cross frame tests working. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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 | « no previous file | lib/dom/templates/html/frog/html_frog.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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 "Node.removeEventListener", 261 "Node.removeEventListener",
262 "Node.get:nodeValue", 262 "Node.get:nodeValue",
263 "Node.set:nodeValue", 263 "Node.set:nodeValue",
264 "Node.get:CDATA_SECTION_NODE", 264 "Node.get:CDATA_SECTION_NODE",
265 "Node.get:nodeName", 265 "Node.get:nodeName",
266 "Node.addEventListener", 266 "Node.addEventListener",
267 "Node.lookupPrefix", 267 "Node.lookupPrefix",
268 "Node.get:PROCESSING_INSTRUCTION_NODE", 268 "Node.get:PROCESSING_INSTRUCTION_NODE",
269 "Notification.dispatchEvent", 269 "Notification.dispatchEvent",
270 "Notification.addEventListener", 270 "Notification.addEventListener",
271 "Notification.removeEventListener"]) 271 "Notification.removeEventListener",
272 "IFrameElement.get:contentDocument",
273 "IFrameElement.get:contentWindow",
274 "Window.get:frameElement",
275 "Window.get:top",
276 ])
272 277
273 # Events without onEventName attributes in the IDL we want to support. 278 # Events without onEventName attributes in the IDL we want to support.
274 # We can automatically extract most event event names by checking for 279 # We can automatically extract most event event names by checking for
275 # onEventName methods in the IDL but some events aren't listed so we need 280 # onEventName methods in the IDL but some events aren't listed so we need
276 # to manually add them here so that they are easy for users to find. 281 # to manually add them here so that they are easy for users to find.
277 _html_manual_events = { 282 _html_manual_events = {
278 'Element': ['touchleave', 'touchenter', 'webkitTransitionEnd'], 283 'Element': ['touchleave', 'touchenter', 'webkitTransitionEnd'],
279 'Window': ['DOMContentLoaded'] 284 'Window': ['DOMContentLoaded']
280 } 285 }
281 286
(...skipping 1415 matching lines...) Expand 10 before | Expand all | Expand 10 after
1697 # dispatch has removed f(X), leaving only f(Y), but there is no guarantee 1702 # dispatch has removed f(X), leaving only f(Y), but there is no guarantee
1698 # that Y = Z-X, so we need to check for Y. 1703 # that Y = Z-X, so we need to check for Y.
1699 true_code = emitter.Emit( 1704 true_code = emitter.Emit(
1700 '$(INDENT)if ($COND) {\n' 1705 '$(INDENT)if ($COND) {\n'
1701 '$!TRUE' 1706 '$!TRUE'
1702 '$(INDENT)}\n', 1707 '$(INDENT)}\n',
1703 COND=test, INDENT=indent) 1708 COND=test, INDENT=indent)
1704 self.GenerateDispatch( 1709 self.GenerateDispatch(
1705 true_code, info, indent + ' ', position + 1, positive) 1710 true_code, info, indent + ' ', position + 1, positive)
1706 return True 1711 return True
OLDNEW
« no previous file with comments | « no previous file | lib/dom/templates/html/frog/html_frog.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698