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

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

Issue 10356092: Revert "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 ])
277 272
278 # Events without onEventName attributes in the IDL we want to support. 273 # Events without onEventName attributes in the IDL we want to support.
279 # We can automatically extract most event event names by checking for 274 # We can automatically extract most event event names by checking for
280 # onEventName methods in the IDL but some events aren't listed so we need 275 # onEventName methods in the IDL but some events aren't listed so we need
281 # to manually add them here so that they are easy for users to find. 276 # to manually add them here so that they are easy for users to find.
282 _html_manual_events = { 277 _html_manual_events = {
283 'Element': ['touchleave', 'touchenter', 'webkitTransitionEnd'], 278 'Element': ['touchleave', 'touchenter', 'webkitTransitionEnd'],
284 'Window': ['DOMContentLoaded'] 279 'Window': ['DOMContentLoaded']
285 } 280 }
286 281
(...skipping 1418 matching lines...) Expand 10 before | Expand all | Expand 10 after
1705 # dispatch has removed f(X), leaving only f(Y), but there is no guarantee 1700 # dispatch has removed f(X), leaving only f(Y), but there is no guarantee
1706 # that Y = Z-X, so we need to check for Y. 1701 # that Y = Z-X, so we need to check for Y.
1707 true_code = emitter.Emit( 1702 true_code = emitter.Emit(
1708 '$(INDENT)if ($COND) {\n' 1703 '$(INDENT)if ($COND) {\n'
1709 '$!TRUE' 1704 '$!TRUE'
1710 '$(INDENT)}\n', 1705 '$(INDENT)}\n',
1711 COND=test, INDENT=indent) 1706 COND=test, INDENT=indent)
1712 self.GenerateDispatch( 1707 self.GenerateDispatch(
1713 true_code, info, indent + ' ', position + 1, positive) 1708 true_code, info, indent + ' ', position + 1, positive)
1714 return True 1709 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