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

Issue 11365019: Merging dart:html interfaces and implementations (Closed)

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

Description

Merging dart:html interfaces and implementations. This CL leaves a lot of the infrastructure around for the interfaces (and also renames them to _IInterfaceName), but the interfaces are not in the generated files. I'll continue to clean this up in future CLs. BUG= Committed: https://code.google.com/p/dart/source/detail?r=14612

Patch Set 1 #

Patch Set 2 : Minor cleanup. #

Total comments: 1

Patch Set 3 : Making events constructors public. #

Patch Set 4 : Adding generated files. #

Total comments: 33

Patch Set 5 : Incorporating review feedback. #

Patch Set 6 : Fixing conversions. #

Patch Set 7 : Merging with latest. #

Total comments: 21

Patch Set 8 : Making patchable. #

Patch Set 9 : Making patchable. #

Patch Set 10 : Fixing merged classes in dartium not compiling under dartc. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+624 lines, -322 lines) Patch
M sdk/lib/_internal/dartdoc/lib/dartdoc.dart View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -1 line 0 comments Download
M sdk/lib/html/scripts/generator.py View 1 2 3 4 5 6 7 8 3 chunks +9 lines, -8 lines 0 comments Download
A sdk/lib/html/scripts/htmldartgenerator.py View 1 2 3 4 5 6 7 8 9 1 chunk +88 lines, -0 lines 0 comments Download
M sdk/lib/html/scripts/htmleventgenerator.py View 1 2 3 4 5 6 7 3 chunks +7 lines, -15 lines 0 comments Download
M sdk/lib/html/scripts/systemhtml.py View 1 2 3 4 5 6 7 8 9 24 chunks +111 lines, -45 lines 0 comments Download
M sdk/lib/html/scripts/systemnative.py View 1 2 3 4 5 6 7 5 chunks +31 lines, -6 lines 0 comments Download
M sdk/lib/html/src/dart2js_Conversions.dart View 1 2 3 4 5 6 7 4 chunks +14 lines, -30 lines 0 comments Download
M sdk/lib/html/src/dart2js_DOMImplementation.dart View 1 2 3 4 5 6 7 5 chunks +11 lines, -11 lines 0 comments Download
M sdk/lib/html/src/dart2js_IDBKeyRangeFactoryProvider.dart View 1 2 3 4 5 6 7 1 chunk +8 lines, -8 lines 0 comments Download
M sdk/lib/html/src/dartium_FactoryProviders.dart View 1 2 3 4 5 6 7 2 chunks +5 lines, -5 lines 0 comments Download
M sdk/lib/html/src/native_DOMImplementation.dart View 1 2 3 4 5 6 7 4 chunks +9 lines, -9 lines 0 comments Download
M sdk/lib/html/src/shared_FactoryProviders.dart View 1 2 3 4 5 6 7 4 chunks +4 lines, -4 lines 0 comments Download
M sdk/lib/html/templates/dart2js_impl.darttemplate View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/html/templates/html/dart2js/html_dart2js.darttemplate View 1 2 3 4 5 6 7 1 chunk +3 lines, -6 lines 0 comments Download
M sdk/lib/html/templates/html/dart2js/impl_CanvasElement.darttemplate View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/html/templates/html/dart2js/impl_Console.darttemplate View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M sdk/lib/html/templates/html/dart2js/impl_ElementEvents.darttemplate View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M sdk/lib/html/templates/html/dart2js/impl_IDBDatabase.darttemplate View 1 2 3 4 5 6 7 2 chunks +5 lines, -5 lines 0 comments Download
M sdk/lib/html/templates/html/dart2js/impl_LocalWindow.darttemplate View 1 2 3 4 5 6 7 8 5 chunks +30 lines, -26 lines 0 comments Download
M sdk/lib/html/templates/html/dart2js/impl_MouseEvent.darttemplate View 1 2 3 4 5 6 7 1 chunk +10 lines, -0 lines 0 comments Download
M sdk/lib/html/templates/html/dart2js/impl_TableElement.darttemplate View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/html/templates/html/dartium/dart_implementation.darttemplate View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/html/templates/html/dartium/html_dartium.darttemplate View 1 2 3 4 5 6 7 2 chunks +4 lines, -6 lines 0 comments Download
M sdk/lib/html/templates/html/dartium/impl_LocalWindow.darttemplate View 1 2 3 4 5 6 7 8 1 chunk +14 lines, -1 line 0 comments Download
A + sdk/lib/html/templates/html/dartium/impl_MouseEvent.darttemplate View 1 2 3 4 5 6 7 1 chunk +6 lines, -10 lines 0 comments Download
M sdk/lib/html/templates/html/impl/impl_AudioContext.darttemplate View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/html/templates/html/impl/impl_CSSStyleDeclaration.darttemplate View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M sdk/lib/html/templates/html/impl/impl_CanvasRenderingContext2D.darttemplate View 1 2 3 4 5 6 7 1 chunk +20 lines, -0 lines 0 comments Download
A + sdk/lib/html/templates/html/impl/impl_CustomEvent.darttemplate View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -6 lines 0 comments Download
M sdk/lib/html/templates/html/impl/impl_Document.darttemplate View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/html/templates/html/impl/impl_DocumentFragment.darttemplate View 1 2 3 4 5 6 7 8 9 4 chunks +12 lines, -4 lines 0 comments Download
M sdk/lib/html/templates/html/impl/impl_Element.darttemplate View 1 2 3 4 5 6 7 8 16 chunks +95 lines, -28 lines 0 comments Download
A + sdk/lib/html/templates/html/impl/impl_Event.darttemplate View 1 2 3 4 5 6 7 1 chunk +5 lines, -8 lines 0 comments Download
M sdk/lib/html/templates/html/impl/impl_EventTarget.darttemplate View 1 2 3 4 5 6 7 2 chunks +12 lines, -14 lines 0 comments Download
A sdk/lib/html/templates/html/impl/impl_HttpRequest.darttemplate View 1 2 3 4 5 6 7 1 chunk +13 lines, -0 lines 0 comments Download
A + sdk/lib/html/templates/html/impl/impl_IDBKeyRange.darttemplate View 1 2 3 4 5 6 7 1 chunk +7 lines, -12 lines 0 comments Download
M sdk/lib/html/templates/html/impl/impl_Node.darttemplate View 1 2 3 4 5 6 7 4 chunks +25 lines, -17 lines 0 comments Download
M sdk/lib/html/templates/html/impl/impl_NodeList.darttemplate View 1 2 3 4 5 6 7 3 chunks +7 lines, -7 lines 0 comments Download
A + sdk/lib/html/templates/html/impl/impl_Point.darttemplate View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
M sdk/lib/html/templates/html/impl/impl_SVGElement.darttemplate View 1 2 3 4 5 6 7 1 chunk +6 lines, -1 line 0 comments Download
A + sdk/lib/html/templates/html/impl/impl_SVGSVGElement.darttemplate View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M sdk/lib/html/templates/html/impl/impl_Storage.darttemplate View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
A + sdk/lib/html/templates/html/impl/impl_Text.darttemplate View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
A + sdk/lib/html/templates/html/impl/impl_WebSocket.darttemplate View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
M sdk/lib/html/templates/html/impl/impl_WheelEvent.darttemplate View 1 2 3 4 5 6 7 3 chunks +5 lines, -0 lines 0 comments Download
A sdk/lib/html/templates/html/impl/pure_interface.darttemplate View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M sdk/lib/html/templates/html/interface/interface_Document.darttemplate View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/html/templates/html/interface/interface_DocumentFragment.darttemplate View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -4 lines 0 comments Download
M sdk/lib/html/templates/html/interface/interface_Element.darttemplate View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/html/templates/html/interface/interface_EventTarget.darttemplate View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/html/templates/html/interface/interface_SVGElement.darttemplate View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/html/templates/html/interface/interface_SVGSVGElement.darttemplate View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M sdk/lib/html/templates/html/interface/interface_ShadowRoot.darttemplate View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
blois
8 years, 1 month ago (2012-11-01 17:52:30 UTC) #1
vsm
Pete, can you show the generated html_dart2js and html_dartium in this CL?
8 years, 1 month ago (2012-11-01 18:59:50 UTC) #2
Anton Muhin
neat. First pass. If you have cycles to split this CL into smaller pieces, that ...
8 years, 1 month ago (2012-11-02 12:55:46 UTC) #3
blois
For splitting out the documentation changes- these were just merged from the interfaces with the ...
8 years, 1 month ago (2012-11-02 19:25:27 UTC) #4
sra1
https://codereview.chromium.org/11365019/diff/7011/lib/html/src/dart2js_Conversions.dart File lib/html/src/dart2js_Conversions.dart (right): https://codereview.chromium.org/11365019/diff/7011/lib/html/src/dart2js_Conversions.dart#newcode78 lib/html/src/dart2js_Conversions.dart:78: if (imageData is ImageData) return imageData; On 2012/11/02 12:55:47, ...
8 years, 1 month ago (2012-11-02 20:14:10 UTC) #5
blois
https://codereview.chromium.org/11365019/diff/7011/lib/html/src/dart2js_Conversions.dart File lib/html/src/dart2js_Conversions.dart (right): https://codereview.chromium.org/11365019/diff/7011/lib/html/src/dart2js_Conversions.dart#newcode78 lib/html/src/dart2js_Conversions.dart:78: if (imageData is ImageData) return imageData; On 2012/11/02 20:14:10, ...
8 years, 1 month ago (2012-11-02 20:30:15 UTC) #6
sra1
On 2012/11/02 20:30:15, blois wrote: > https://codereview.chromium.org/11365019/diff/7011/lib/html/src/dart2js_Conversions.dart > File lib/html/src/dart2js_Conversions.dart (right): > > https://codereview.chromium.org/11365019/diff/7011/lib/html/src/dart2js_Conversions.dart#newcode78 > ...
8 years, 1 month ago (2012-11-05 20:21:40 UTC) #7
sra1
8 years, 1 month ago (2012-11-05 20:21:53 UTC) #8
sra1
lgtm
8 years, 1 month ago (2012-11-06 02:42:49 UTC) #9
Anton Muhin
m https://chromiumcodereview.appspot.com/11365019/diff/7011/lib/html/scripts/systemnative.py File lib/html/scripts/systemnative.py (right): https://chromiumcodereview.appspot.com/11365019/diff/7011/lib/html/scripts/systemnative.py#newcode219 lib/html/scripts/systemnative.py:219: super_constructor = ': super.internal()' I'd propose to have ...
8 years, 1 month ago (2012-11-06 12:28:43 UTC) #10
blois
https://chromiumcodereview.appspot.com/11365019/diff/2083/sdk/lib/html/scripts/generator.py File sdk/lib/html/scripts/generator.py (right): https://chromiumcodereview.appspot.com/11365019/diff/2083/sdk/lib/html/scripts/generator.py#newcode449 sdk/lib/html/scripts/generator.py:449: return interface_name On 2012/11/06 12:28:43, Anton Muhin wrote: > ...
8 years, 1 month ago (2012-11-06 22:11:44 UTC) #11
Anton Muhin
8 years, 1 month ago (2012-11-07 08:50:55 UTC) #12
https://chromiumcodereview.appspot.com/11365019/diff/2083/sdk/lib/html/script...
File sdk/lib/html/scripts/systemhtml.py (right):

https://chromiumcodereview.appspot.com/11365019/diff/2083/sdk/lib/html/script...
sdk/lib/html/scripts/systemhtml.py:357: if typed_array_type:
Sorry, I meant you have pretty much the same code in the helper you've
introduced in this CL.  Can we reuse it here?

On 2012/11/06 22:11:44, blois wrote:
> On 2012/11/06 12:28:43, Anton Muhin wrote:
> > this code has been moved into the helper you introduced, correct?
> 
> Yes, this is the interface generation code. I just created a junk emitter to
> remove the interfaces, otherwise all of the code to generate them is still
here.
> I was going to clean up all of this as a separate CL.

https://chromiumcodereview.appspot.com/11365019/diff/2083/sdk/lib/html/templa...
File sdk/lib/html/templates/html/impl/pure_interface.darttemplate (right):

https://chromiumcodereview.appspot.com/11365019/diff/2083/sdk/lib/html/templa...
sdk/lib/html/templates/html/impl/pure_interface.darttemplate:2: abstract class
$CLASSNAME$EXTENDS$IMPLEMENTS {
Thanks!

On 2012/11/06 22:11:44, blois wrote:
> On 2012/11/06 12:28:43, Anton Muhin wrote:
> > why no part of html?
> > 
> > Why it should be different from interface.darttemplate?
> None of the impls currently have this, I'll add a bug to put these in.

Powered by Google App Engine
This is Rietveld 408576698