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

Issue 10014028: Remove EventListener attributes from Dart DOM API. (Closed)

Created:
8 years, 8 months ago by podivilov
Modified:
8 years, 8 months ago
Reviewers:
sra, sra1, Jacob
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Remove EventListener attributes from Dart DOM API. All idl interfaces that have EventListener attributes are EventTargets and implement addEventListener/removeEventListener methods. We can safely drop this JavaScript legacy now. The changes in dom and html libs are due to interfaces that are now treated as EventTargets (the list of EventTargets in webkit-supplemental were not full). R=sra@chromium.org,jacobr@google.com Committed: https://code.google.com/p/dart/source/detail?r=6519

Patch Set 1 #

Total comments: 4

Patch Set 2 : Create real IDLParentInterface. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1361 lines, -1026 lines) Patch
M lib/dom/frog/dom_frog.dart View 1 65 chunks +57 lines, -249 lines 0 comments Download
D lib/dom/idl/dart/webkit-supplemental.idl View 1 chunk +0 lines, -20 lines 0 comments Download
M lib/dom/scripts/dartdomgenerator.py View 1 3 chunks +8 lines, -5 lines 0 comments Download
M lib/dom/scripts/dartgenerator.py View 1 4 chunks +8 lines, -8 lines 1 comment Download
M lib/dom/scripts/fremontcutbuilder.py View 1 5 chunks +8 lines, -13 lines 0 comments Download
M lib/dom/scripts/systemhtml.py View 8 chunks +31 lines, -3 lines 0 comments Download
M lib/dom/scripts/systemnative.py View 1 chunk +0 lines, -7 lines 0 comments Download
M lib/html/dartium/html_dartium.dart View 108 chunks +672 lines, -417 lines 0 comments Download
M lib/html/frog/html_frog.dart View 1 88 chunks +577 lines, -304 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
podivilov
8 years, 8 months ago (2012-04-10 18:33:14 UTC) #1
Jacob
lgtm for the systemhtml.py and generated dart:html changes.
8 years, 8 months ago (2012-04-11 11:56:25 UTC) #2
sra1
Nice! Do all the tests pass? Do the samples build and run? http://codereview.chromium.org/10014028/diff/1/lib/dom/scripts/dartgenerator.py File lib/dom/scripts/dartgenerator.py ...
8 years, 8 months ago (2012-04-11 20:23:05 UTC) #3
podivilov
The dart dom eng page says that "The Dart DOM API is tested as part ...
8 years, 8 months ago (2012-04-12 14:37:41 UTC) #4
sra1
8 years, 8 months ago (2012-04-12 15:56:17 UTC) #5
lgtm if you move the fixing as described in the comment,

http://codereview.chromium.org/10014028/diff/5001/lib/dom/scripts/dartgenerat...
File lib/dom/scripts/dartgenerator.py (right):

http://codereview.chromium.org/10014028/diff/5001/lib/dom/scripts/dartgenerat...
lib/dom/scripts/dartgenerator.py:514: # Create fake EventTarget parent interface
for interfaces that have
I think it would be best to move this fixing to a separate function, e.g.
_FixEventTargets, called before _ComputeInheritanceClosure.
That way _ComputeInheritanceClosure is still an accurate name.

Powered by Google App Engine
This is Rietveld 408576698