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

Issue 9464002: Implement automatically generated constructors for frog and dartium dart:html (Closed)

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

Description

Implement automatically generated constructors for frog dart:html BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=5066

Patch Set 1 #

Patch Set 2 : x #

Patch Set 3 : rerun script #

Total comments: 1

Patch Set 4 : merge #

Patch Set 5 : merge #

Patch Set 6 : fix, add dartium #

Patch Set 7 : fixes #

Total comments: 8

Patch Set 8 : address code review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1030 lines, -401 lines) Patch
M client/dom/scripts/systemhtml.py View 1 2 3 4 5 6 7 8 chunks +70 lines, -19 lines 0 comments Download
A client/dom/src/_XMLHttpRequestUtils.dart View 1 2 3 4 5 6 1 chunk +29 lines, -0 lines 0 comments Download
A + client/dom/templates/html/dartium/factoryprovider.darttemplate View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A + client/dom/templates/html/dartium/factoryprovider_CSSMatrix.darttemplate View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
A client/dom/templates/html/dartium/factoryprovider_XMLHttpRequest.darttemplate View 1 2 3 4 5 6 1 chunk +11 lines, -0 lines 0 comments Download
M client/dom/templates/html/dartium/html_dartium.darttemplate View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A + client/dom/templates/html/frog/factoryprovider.darttemplate View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
A + client/dom/templates/html/frog/factoryprovider_AudioElement.darttemplate View 1 2 3 4 5 6 7 1 chunk +5 lines, -3 lines 0 comments Download
A + client/dom/templates/html/frog/factoryprovider_CSSMatrix.darttemplate View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
A client/dom/templates/html/frog/factoryprovider_OptionElement.darttemplate View 1 2 3 4 5 6 7 1 chunk +15 lines, -0 lines 0 comments Download
A + client/dom/templates/html/frog/factoryprovider_SharedWorker.darttemplate View 1 2 3 4 5 6 7 1 chunk +5 lines, -3 lines 0 comments Download
A client/dom/templates/html/frog/factoryprovider_TextTrackCue.darttemplate View 1 2 3 4 5 6 7 1 chunk +14 lines, -0 lines 0 comments Download
A client/dom/templates/html/frog/factoryprovider_XMLHttpRequest.darttemplate View 1 2 3 4 5 6 1 chunk +11 lines, -0 lines 0 comments Download
M client/dom/templates/html/frog/html_frog.darttemplate View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M client/dom/templates/html/interface/interface_XMLHttpRequest.darttemplate View 1 chunk +1 line, -4 lines 0 comments Download
M client/html/dartium/html_dartium.dart View 25 chunks +262 lines, -68 lines 0 comments Download
M client/html/frog/html_frog.dart View 1 2 3 4 5 6 7 26 chunks +280 lines, -70 lines 0 comments Download
A + client/html/generated/html/dartium/_AudioElementFactoryProvider.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A + client/html/generated/html/dartium/_BlobBuilderFactoryProvider.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A + client/html/generated/html/dartium/_CSSMatrixFactoryProvider.dart View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
A + client/html/generated/html/dartium/_DOMParserFactoryProvider.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A + client/html/generated/html/dartium/_DOMURLFactoryProvider.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A + client/html/generated/html/dartium/_EventSourceFactoryProvider.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A + client/html/generated/html/dartium/_FileReaderFactoryProvider.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A + client/html/generated/html/dartium/_FileReaderSyncFactoryProvider.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A + client/html/generated/html/dartium/_MediaControllerFactoryProvider.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A + client/html/generated/html/dartium/_MediaStreamFactoryProvider.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A + client/html/generated/html/dartium/_MessageChannelFactoryProvider.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A client/html/generated/html/dartium/_OptionElementFactoryProvider.dart View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
A + client/html/generated/html/dartium/_PeerConnectionFactoryProvider.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A + client/html/generated/html/dartium/_ShadowRootFactoryProvider.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A + client/html/generated/html/dartium/_SharedWorkerFactoryProvider.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A client/html/generated/html/dartium/_TextTrackCueFactoryProvider.dart View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
A + client/html/generated/html/dartium/_WorkerFactoryProvider.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A client/html/generated/html/dartium/_XMLHttpRequestFactoryProvider.dart View 1 2 3 4 5 6 1 chunk +11 lines, -0 lines 0 comments Download
A + client/html/generated/html/dartium/_XMLSerializerFactoryProvider.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A + client/html/generated/html/dartium/_XPathEvaluatorFactoryProvider.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A + client/html/generated/html/dartium/_XSLTProcessorFactoryProvider.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A + client/html/generated/html/frog/_AudioElementFactoryProvider.dart View 1 2 3 4 5 6 7 1 chunk +5 lines, -3 lines 0 comments Download
A + client/html/generated/html/frog/_BlobBuilderFactoryProvider.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A + client/html/generated/html/frog/_CSSMatrixFactoryProvider.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A + client/html/generated/html/frog/_DOMParserFactoryProvider.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A + client/html/generated/html/frog/_DOMURLFactoryProvider.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A + client/html/generated/html/frog/_EventSourceFactoryProvider.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A + client/html/generated/html/frog/_FileReaderFactoryProvider.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A + client/html/generated/html/frog/_FileReaderSyncFactoryProvider.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A + client/html/generated/html/frog/_MediaControllerFactoryProvider.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A + client/html/generated/html/frog/_MediaStreamFactoryProvider.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A + client/html/generated/html/frog/_MessageChannelFactoryProvider.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A client/html/generated/html/frog/_OptionElementFactoryProvider.dart View 1 2 3 4 5 6 7 1 chunk +15 lines, -0 lines 0 comments Download
A + client/html/generated/html/frog/_PeerConnectionFactoryProvider.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A + client/html/generated/html/frog/_ShadowRootFactoryProvider.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A client/html/generated/html/frog/_SharedWorkerFactoryProvider.dart View 1 2 3 4 5 6 7 1 chunk +10 lines, -0 lines 0 comments Download
A client/html/generated/html/frog/_TextTrackCueFactoryProvider.dart View 1 2 3 4 5 6 7 1 chunk +14 lines, -0 lines 0 comments Download
A + client/html/generated/html/frog/_WorkerFactoryProvider.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A client/html/generated/html/frog/_XMLHttpRequestFactoryProvider.dart View 1 2 3 4 5 6 1 chunk +11 lines, -0 lines 0 comments Download
A + client/html/generated/html/frog/_XMLSerializerFactoryProvider.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A + client/html/generated/html/frog/_XPathEvaluatorFactoryProvider.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A + client/html/generated/html/frog/_XSLTProcessorFactoryProvider.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M client/html/generated/html/interface/AudioElement.dart View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M client/html/generated/html/interface/BlobBuilder.dart View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M client/html/generated/html/interface/CSSMatrix.dart View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M client/html/generated/html/interface/DOMParser.dart View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M client/html/generated/html/interface/DOMURL.dart View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M client/html/generated/html/interface/EventSource.dart View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M client/html/generated/html/interface/FileReader.dart View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M client/html/generated/html/interface/FileReaderSync.dart View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M client/html/generated/html/interface/MediaController.dart View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M client/html/generated/html/interface/MediaStream.dart View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M client/html/generated/html/interface/MessageChannel.dart View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M client/html/generated/html/interface/OptionElement.dart View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M client/html/generated/html/interface/PeerConnection.dart View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M client/html/generated/html/interface/ShadowRoot.dart View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M client/html/generated/html/interface/SharedWorker.dart View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M client/html/generated/html/interface/TextTrackCue.dart View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M client/html/generated/html/interface/Worker.dart View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M client/html/generated/html/interface/XMLHttpRequest.dart View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M client/html/generated/html/interface/XMLSerializer.dart View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M client/html/generated/html/interface/XPathEvaluator.dart View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M client/html/generated/html/interface/XSLTProcessor.dart View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M client/html/html_dartium.dart View 1 2 3 4 5 6 2 chunks +22 lines, -0 lines 0 comments Download
M client/html/html_frog.dart View 1 2 3 4 5 6 3 chunks +23 lines, -1 line 0 comments Download
M client/html/src/dartium_FactoryProviders.dart View 1 2 3 4 5 6 2 chunks +0 lines, -45 lines 0 comments Download
M client/html/src/frog_FactoryProviders.dart View 1 2 3 4 5 6 2 chunks +0 lines, -47 lines 0 comments Download
A client/tests/client/html/AudioElementTest.dart View 1 2 3 4 5 6 7 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
sra1
I'm having a little difficulty with the test - does frog pick up client/html/frog/html_frog.dart?
8 years, 10 months ago (2012-02-24 05:49:09 UTC) #1
Jacob
lgtm https://chromiumcodereview.appspot.com/9464002/diff/2002/client/dom/scripts/systemhtml.py File client/dom/scripts/systemhtml.py (left): https://chromiumcodereview.appspot.com/9464002/diff/2002/client/dom/scripts/systemhtml.py#oldcode685 client/dom/scripts/systemhtml.py:685: if setter: can you revert this part?
8 years, 10 months ago (2012-02-25 03:50:03 UTC) #2
sra1
PTAL
8 years, 9 months ago (2012-03-07 01:28:48 UTC) #3
Jacob
Loog good overall. A few minor comments. https://chromiumcodereview.appspot.com/9464002/diff/9004/client/dom/scripts/systemhtml.py File client/dom/scripts/systemhtml.py (right): https://chromiumcodereview.appspot.com/9464002/diff/9004/client/dom/scripts/systemhtml.py#newcode774 client/dom/scripts/systemhtml.py:774: NAMEDCONSTRUCTOR=constructor_info.name or ...
8 years, 9 months ago (2012-03-07 03:51:27 UTC) #4
sra1
8 years, 9 months ago (2012-03-07 05:03:11 UTC) #5
https://chromiumcodereview.appspot.com/9464002/diff/9004/client/dom/scripts/s...
File client/dom/scripts/systemhtml.py (right):

https://chromiumcodereview.appspot.com/9464002/diff/9004/client/dom/scripts/s...
client/dom/scripts/systemhtml.py:774: NAMEDCONSTRUCTOR=constructor_info.name or
interface_name,
On 2012/03/07 03:51:27, Jacob wrote:
> out of curiosity is there a reason you use NAMEDCONSTRUCTOR instead of
> NAMED_CONSTRUCTOR in the templates here and elsewhere?  I believe the template
> processor handles both cases and using _ between words would be more
consistent
> with python and make the code easier to read with so many multiple word names.

Done.

https://chromiumcodereview.appspot.com/9464002/diff/9004/client/dom/src/_XMLH...
File client/dom/src/_XMLHttpRequestUtils.dart (right):

https://chromiumcodereview.appspot.com/9464002/diff/9004/client/dom/src/_XMLH...
client/dom/src/_XMLHttpRequestUtils.dart:5: class _XMLHttpRequestUtils {
On 2012/03/07 03:51:27, Jacob wrote:
> why is this dart:html specific code in client/dom/src ?

I will make dart:dom use it too under a separate CL.

https://chromiumcodereview.appspot.com/9464002/diff/9004/client/dom/templates...
File client/dom/templates/html/frog/factoryprovider_AudioElement.darttemplate
(right):

https://chromiumcodereview.appspot.com/9464002/diff/9004/client/dom/templates...
client/dom/templates/html/frog/factoryprovider_AudioElement.darttemplate:7: '''
On 2012/03/07 03:51:27, Jacob wrote:
> is there a reason this odd formatting is used for the native call?

Any indentation in the multiline string gets copied needlessly to the generated
JS.
I'll indent it all the same, since it is more readable.

https://chromiumcodereview.appspot.com/9464002/diff/9004/client/tests/client/...
File client/tests/client/html/AudioElementTest.dart (right):

https://chromiumcodereview.appspot.com/9464002/diff/9004/client/tests/client/...
client/tests/client/html/AudioElementTest.dart:10: var audio = new
AudioElement();   // would be new Audio() in JS
On 2012/03/07 03:51:27, Jacob wrote:
> i'd remove the 
> // would be new Audio() in JS comment.

Done.

Powered by Google App Engine
This is Rietveld 408576698