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

Issue 12025027: Cleaning up event constructors (Closed)

Created:
7 years, 11 months ago by blois
Modified:
7 years, 11 months ago
Reviewers:
Emily Fortuna
CC:
reviews_dartlang.org
Visibility:
Public.

Description

- Changing event constructors to use named parameters. - Making more parameters optional. - Converting remaining init*Event calls to constructors. BUG= Committed: https://code.google.com/p/dart/source/detail?r=17488

Patch Set 1 : #

Total comments: 3

Patch Set 2 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+599 lines, -287 lines) Patch
M sdk/lib/html/dart2js/html_dart2js.dart View 24 chunks +178 lines, -93 lines 0 comments Download
M sdk/lib/html/dartium/html_dartium.dart View 25 chunks +144 lines, -91 lines 0 comments Download
M tests/html/event_customevent_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M tests/html/events_test.dart View 1 chunk +1 line, -2 lines 0 comments Download
M tests/html/history_test.dart View 1 chunk +7 lines, -0 lines 0 comments Download
M tests/html/messageevent_test.dart View 1 chunk +3 lines, -2 lines 0 comments Download
M tests/html/mutationobserver_test.dart View 1 chunk +5 lines, -0 lines 0 comments Download
M tests/html/serialized_script_value_test.dart View 1 chunk +1 line, -2 lines 0 comments Download
M tests/html/storage_test.dart View 1 1 chunk +7 lines, -0 lines 0 comments Download
M tests/html/wheelevent_test.dart View 2 chunks +6 lines, -18 lines 0 comments Download
M tools/dom/scripts/htmlrenamer.py View 1 4 chunks +9 lines, -0 lines 0 comments Download
M tools/dom/src/Isolates.dart View 1 chunk +2 lines, -1 line 0 comments Download
M tools/dom/src/shared_FactoryProviders.dart View 1 chunk +0 lines, -32 lines 0 comments Download
M tools/dom/templates/html/dart2js/impl_MouseEvent.darttemplate View 1 chunk +15 lines, -10 lines 0 comments Download
M tools/dom/templates/html/dartium/impl_MouseEvent.darttemplate View 1 chunk +15 lines, -10 lines 0 comments Download
A tools/dom/templates/html/impl/impl_CompositionEvent.darttemplate View 1 1 chunk +21 lines, -0 lines 0 comments Download
M tools/dom/templates/html/impl/impl_CustomEvent.darttemplate View 1 chunk +8 lines, -3 lines 0 comments Download
A tools/dom/templates/html/impl/impl_DeviceOrientationEvent.darttemplate View 1 chunk +19 lines, -0 lines 0 comments Download
M tools/dom/templates/html/impl/impl_Event.darttemplate View 2 chunks +5 lines, -4 lines 0 comments Download
A tools/dom/templates/html/impl/impl_HashChangeEvent.darttemplate View 1 chunk +18 lines, -0 lines 0 comments Download
A tools/dom/templates/html/impl/impl_MessageEvent.darttemplate View 1 1 chunk +23 lines, -0 lines 0 comments Download
A tools/dom/templates/html/impl/impl_MutationEvent.darttemplate View 1 chunk +21 lines, -0 lines 0 comments Download
A tools/dom/templates/html/impl/impl_StorageEvent.darttemplate View 1 1 chunk +20 lines, -0 lines 0 comments Download
A tools/dom/templates/html/impl/impl_TextEvent.darttemplate View 1 1 chunk +20 lines, -0 lines 0 comments Download
A tools/dom/templates/html/impl/impl_TouchEvent.darttemplate View 1 1 chunk +24 lines, -0 lines 1 comment Download
M tools/dom/templates/html/impl/impl_UIEvent.darttemplate View 1 chunk +6 lines, -2 lines 0 comments Download
M tools/dom/templates/html/impl/impl_WheelEvent.darttemplate View 3 chunks +19 lines, -16 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
blois
7 years, 11 months ago (2013-01-23 01:36:33 UTC) #1
Emily Fortuna
nice change! https://codereview.chromium.org/12025027/diff/6001/tools/dom/templates/html/impl/impl_MutationEvent.darttemplate File tools/dom/templates/html/impl/impl_MutationEvent.darttemplate (right): https://codereview.chromium.org/12025027/diff/6001/tools/dom/templates/html/impl/impl_MutationEvent.darttemplate#newcode8 tools/dom/templates/html/impl/impl_MutationEvent.darttemplate:8: factory $CLASSNAME(String type, can we make this ...
7 years, 11 months ago (2013-01-23 01:49:53 UTC) #2
blois
https://codereview.chromium.org/12025027/diff/6001/tools/dom/templates/html/impl/impl_MutationEvent.darttemplate File tools/dom/templates/html/impl/impl_MutationEvent.darttemplate (right): https://codereview.chromium.org/12025027/diff/6001/tools/dom/templates/html/impl/impl_MutationEvent.darttemplate#newcode8 tools/dom/templates/html/impl/impl_MutationEvent.darttemplate:8: factory $CLASSNAME(String type, On 2013/01/23 01:49:53, Emily Fortuna wrote: ...
7 years, 11 months ago (2013-01-23 17:06:49 UTC) #3
Emily Fortuna
lgtm. https://codereview.chromium.org/12025027/diff/6001/tools/dom/templates/html/impl/impl_MutationEvent.darttemplate File tools/dom/templates/html/impl/impl_MutationEvent.darttemplate (right): https://codereview.chromium.org/12025027/diff/6001/tools/dom/templates/html/impl/impl_MutationEvent.darttemplate#newcode8 tools/dom/templates/html/impl/impl_MutationEvent.darttemplate:8: factory $CLASSNAME(String type, On 2013/01/23 17:06:49, blois wrote: ...
7 years, 11 months ago (2013-01-23 19:02:40 UTC) #4
blois
On 2013/01/23 19:02:40, Emily Fortuna wrote: > lgtm. > > https://codereview.chromium.org/12025027/diff/6001/tools/dom/templates/html/impl/impl_MutationEvent.darttemplate > File tools/dom/templates/html/impl/impl_MutationEvent.darttemplate (right): ...
7 years, 11 months ago (2013-01-23 19:29:58 UTC) #5
Emily Fortuna
7 years, 11 months ago (2013-01-23 19:33:44 UTC) #6
lgtm with some suggestions

https://codereview.chromium.org/12025027/diff/10001/tools/dom/templates/html/...
File tools/dom/templates/html/impl/impl_TouchEvent.darttemplate (right):

https://codereview.chromium.org/12025027/diff/10001/tools/dom/templates/html/...
tools/dom/templates/html/impl/impl_TouchEvent.darttemplate:12: {Window view, int
screenX: 0, int screenY: 0, int clientX: 0,
tests of at least constructors for these new classes you added? Also, have we
crossed the threshold on which more classes use this format and it could benefit
from being auto-generated instead of having templates for each event class? :-)

Powered by Google App Engine
This is Rietveld 408576698