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

Issue 11363130: Cleaning up dart:html generation after interface/implementation merge. Removing most of the interfa… (Closed)

Created:
8 years, 1 month ago by blois
Modified:
8 years, 1 month ago
Reviewers:
vsm, Anton Muhin
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Cleaning up dart:html generation after interface/implementation merge. Basically without the interface generation, I moved most of the code-gen into the common base class of dartium and dart2js generation. I also removed the interface generation files which are no longer being used. There shouldn't be any changes to the generated files, but the dartium files just got some merged members re-ordered as a by-product of a minor refactoring. BUG= Committed: https://code.google.com/p/dart/source/detail?r=14691

Patch Set 1 #

Total comments: 14

Patch Set 2 : Fixing up line lengths. #

Total comments: 4

Patch Set 3 : Incorporating review feedback, cleaning up comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+325 lines, -2872 lines) Patch
M sdk/lib/html/dartium/html_dartium.dart View 4 chunks +60 lines, -60 lines 0 comments Download
M sdk/lib/html/scripts/htmldartgenerator.py View 1 2 5 chunks +224 lines, -9 lines 0 comments Download
M sdk/lib/html/scripts/htmleventgenerator.py View 4 chunks +8 lines, -8 lines 0 comments Download
M sdk/lib/html/scripts/systemhtml.py View 18 chunks +22 lines, -332 lines 0 comments Download
M sdk/lib/html/scripts/systemnative.py View 1 7 chunks +11 lines, -8 lines 0 comments Download
D sdk/lib/html/templates/html/interface/interface.darttemplate View 1 chunk +0 lines, -9 lines 0 comments Download
D sdk/lib/html/templates/html/interface/interface_AudioContext.darttemplate View 1 chunk +0 lines, -12 lines 0 comments Download
D sdk/lib/html/templates/html/interface/interface_CSSStyleDeclaration.darttemplate View 1 chunk +0 lines, -1860 lines 0 comments Download
D sdk/lib/html/templates/html/interface/interface_CanvasElement.darttemplate View 1 chunk +0 lines, -13 lines 0 comments Download
D sdk/lib/html/templates/html/interface/interface_CanvasRenderingContext2D.darttemplate View 1 chunk +0 lines, -40 lines 0 comments Download
D sdk/lib/html/templates/html/interface/interface_CustomEvent.darttemplate View 1 chunk +0 lines, -16 lines 0 comments Download
D sdk/lib/html/templates/html/interface/interface_Document.darttemplate View 1 chunk +0 lines, -11 lines 0 comments Download
D sdk/lib/html/templates/html/interface/interface_DocumentFragment.darttemplate View 1 chunk +0 lines, -25 lines 0 comments Download
D sdk/lib/html/templates/html/interface/interface_Element.darttemplate View 1 chunk +0 lines, -118 lines 0 comments Download
D sdk/lib/html/templates/html/interface/interface_Event.darttemplate View 1 chunk +0 lines, -20 lines 0 comments Download
D sdk/lib/html/templates/html/interface/interface_EventTarget.darttemplate View 1 chunk +0 lines, -27 lines 0 comments Download
D sdk/lib/html/templates/html/interface/interface_HttpRequest.darttemplate View 1 chunk +0 lines, -16 lines 0 comments Download
D sdk/lib/html/templates/html/interface/interface_IDBKeyRange.darttemplate View 1 chunk +0 lines, -38 lines 0 comments Download
D sdk/lib/html/templates/html/interface/interface_LocalWindow.darttemplate View 1 chunk +0 lines, -33 lines 0 comments Download
D sdk/lib/html/templates/html/interface/interface_MouseEvent.darttemplate View 1 chunk +0 lines, -23 lines 0 comments Download
D sdk/lib/html/templates/html/interface/interface_MutationObserver.darttemplate View 1 chunk +0 lines, -21 lines 0 comments Download
D sdk/lib/html/templates/html/interface/interface_Node.darttemplate View 1 chunk +0 lines, -28 lines 0 comments Download
D sdk/lib/html/templates/html/interface/interface_NodeList.darttemplate View 1 chunk +0 lines, -19 lines 0 comments Download
D sdk/lib/html/templates/html/interface/interface_NodeSelector.darttemplate View 1 chunk +0 lines, -16 lines 0 comments Download
D sdk/lib/html/templates/html/interface/interface_Point.darttemplate View 1 chunk +0 lines, -13 lines 0 comments Download
D sdk/lib/html/templates/html/interface/interface_SVGElement.darttemplate View 1 chunk +0 lines, -18 lines 0 comments Download
D sdk/lib/html/templates/html/interface/interface_SVGSVGElement.darttemplate View 1 chunk +0 lines, -11 lines 0 comments Download
D sdk/lib/html/templates/html/interface/interface_ShadowRoot.darttemplate View 1 chunk +0 lines, -13 lines 0 comments Download
D sdk/lib/html/templates/html/interface/interface_Storage.darttemplate View 1 chunk +0 lines, -10 lines 0 comments Download
D sdk/lib/html/templates/html/interface/interface_Text.darttemplate View 1 chunk +0 lines, -13 lines 0 comments Download
D sdk/lib/html/templates/html/interface/interface_WebSocket.darttemplate View 1 chunk +0 lines, -13 lines 0 comments Download
D sdk/lib/html/templates/html/interface/interface_WheelEvent.darttemplate View 1 chunk +0 lines, -19 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
blois
8 years, 1 month ago (2012-11-07 19:40:43 UTC) #1
vsm
lgtm https://codereview.chromium.org/11363130/diff/1/sdk/lib/html/scripts/htmldartgenerator.py File sdk/lib/html/scripts/htmldartgenerator.py (right): https://codereview.chromium.org/11363130/diff/1/sdk/lib/html/scripts/htmldartgenerator.py#newcode51 sdk/lib/html/scripts/htmldartgenerator.py:51: def AddMembers(self, interface, declare_only=False): Is declare_only ever True ...
8 years, 1 month ago (2012-11-07 22:31:28 UTC) #2
blois
https://codereview.chromium.org/11363130/diff/1/sdk/lib/html/scripts/htmldartgenerator.py File sdk/lib/html/scripts/htmldartgenerator.py (right): https://codereview.chromium.org/11363130/diff/1/sdk/lib/html/scripts/htmldartgenerator.py#newcode51 sdk/lib/html/scripts/htmldartgenerator.py:51: def AddMembers(self, interface, declare_only=False): On 2012/11/07 22:31:28, vsm wrote: ...
8 years, 1 month ago (2012-11-08 00:08:34 UTC) #3
Anton Muhin
STV! Thanks a lot, Pete. https://codereview.chromium.org/11363130/diff/34/sdk/lib/html/scripts/htmldartgenerator.py File sdk/lib/html/scripts/htmldartgenerator.py (right): https://codereview.chromium.org/11363130/diff/34/sdk/lib/html/scripts/htmldartgenerator.py#newcode74 sdk/lib/html/scripts/htmldartgenerator.py:74: # Group overloaded operations ...
8 years, 1 month ago (2012-11-08 07:21:31 UTC) #4
blois
8 years, 1 month ago (2012-11-08 19:19:00 UTC) #5
https://codereview.chromium.org/11363130/diff/34/sdk/lib/html/scripts/htmldar...
File sdk/lib/html/scripts/htmldartgenerator.py (right):

https://codereview.chromium.org/11363130/diff/34/sdk/lib/html/scripts/htmldar...
sdk/lib/html/scripts/htmldartgenerator.py:74: # Group overloaded operations by
id
On 2012/11/08 07:21:31, Anton Muhin wrote:
> you probably just moved those lines around, but I was under impression that we
> require trailing dots in line comments.
> 
> If you don't mind, may you add ones here and to comments below?

Done, also flushed out some method documentation as well.

https://codereview.chromium.org/11363130/diff/34/sdk/lib/html/scripts/htmldar...
sdk/lib/html/scripts/htmldartgenerator.py:233: # returned in generated code.
On 2012/11/08 07:21:31, Anton Muhin wrote:
> might be worth an assert

Done.

Powered by Google App Engine
This is Rietveld 408576698