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

Issue 128153002: Update of change event for datetime input type (Closed)

Created:
6 years, 11 months ago by Habib Virji
Modified:
6 years, 11 months ago
Reviewers:
tkent, keishi
CC:
blink-reviews, dglazkov+blink, adamk+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Update of change event for datetime input type BaseMultipleFieldDateAndTime includes changes for sending change event when popup is closed, keyboard event and mouse event. BaseChoosedOnlyDateAndTime includes changes for sending change event when popup is closed. Special case for input type datetime-local. R=tkent BUG=155747 TEST=Fixes currently broken test in bug331189 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=165455

Patch Set 1 #

Patch Set 2 : Test and changes as per review comments #

Patch Set 3 : Moved keyboard event to MultipleFieldDateAndTime #

Total comments: 1

Patch Set 4 : Change event handling for keyboard events #

Patch Set 5 : Callback function for DateTime change event #

Patch Set 6 : Callback function for DateTime change event #

Total comments: 1

Patch Set 7 : Updated function name for keyboard event #

Total comments: 2

Patch Set 8 : Added keyboard change event #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -3 lines) Patch
M LayoutTests/fast/forms/date-multiple-fields/date-multiple-fields-spinbutton-change-and-input-events-expected.txt View 1 1 chunk +4 lines, -0 lines 0 comments Download
M LayoutTests/fast/forms/datetimelocal-multiple-fields/datetimelocal-multiple-fields-spinbutton-change-and-input-events-expected.txt View 1 1 chunk +4 lines, -0 lines 0 comments Download
M LayoutTests/fast/forms/month-multiple-fields/month-multiple-fields-spinbutton-change-and-input-events-expected.txt View 1 1 chunk +4 lines, -0 lines 0 comments Download
M LayoutTests/fast/forms/number/number-spinbutton-change-and-input-events-expected.txt View 1 1 chunk +4 lines, -0 lines 0 comments Download
M LayoutTests/fast/forms/resources/common-spinbutton-change-and-input-events.js View 1 1 chunk +5 lines, -1 line 0 comments Download
M LayoutTests/fast/forms/time-multiple-fields/time-multiple-fields-spinbutton-change-and-input-events-expected.txt View 1 1 chunk +4 lines, -0 lines 0 comments Download
M LayoutTests/fast/forms/week-multiple-fields/week-multiple-fields-spinbutton-change-and-input-events-expected.txt View 1 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/html/forms/BaseMultipleFieldsDateAndTimeInputType.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/forms/BaseMultipleFieldsDateAndTimeInputType.cpp View 1 2 3 4 5 6 3 chunks +6 lines, -1 line 0 comments Download
M Source/core/html/shadow/DateTimeEditElement.h View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M Source/core/html/shadow/DateTimeEditElement.cpp View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/html/shadow/DateTimeFieldElement.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/shadow/DateTimeFieldElement.cpp View 1 2 3 4 5 6 7 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 19 (0 generated)
Habib Virji
6 years, 11 months ago (2014-01-08 12:23:13 UTC) #1
tkent
Please upload the CL again. The Patch Set 1 doesn't show side-by-side diffs. Please add ...
6 years, 11 months ago (2014-01-14 01:04:50 UTC) #2
Habib Virji
On 2014/01/14 01:04:50, tkent wrote: > Please upload the CL again. The Patch Set 1 ...
6 years, 11 months ago (2014-01-15 15:10:54 UTC) #3
Habib Virji
On 2014/01/15 15:10:54, habib.virji wrote: > On 2014/01/14 01:04:50, tkent wrote: > > Please upload ...
6 years, 11 months ago (2014-01-16 17:07:25 UTC) #4
Habib Virji
@tkent can you please review the changes
6 years, 11 months ago (2014-01-18 08:24:20 UTC) #5
tkent
lgtm https://codereview.chromium.org/128153002/diff/130001/Source/core/html/forms/BaseMultipleFieldsDateAndTimeInputType.cpp File Source/core/html/forms/BaseMultipleFieldsDateAndTimeInputType.cpp (right): https://codereview.chromium.org/128153002/diff/130001/Source/core/html/forms/BaseMultipleFieldsDateAndTimeInputType.cpp#newcode433 Source/core/html/forms/BaseMultipleFieldsDateAndTimeInputType.cpp:433: element().dispatchFormControlChangeEvent(); We shouldn't put dispatchFormControlChangeEvent here because it ...
6 years, 11 months ago (2014-01-20 02:05:21 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/habib.virji@samsung.com/128153002/130001
6 years, 11 months ago (2014-01-20 02:05:27 UTC) #7
tkent
oops, not lgtm
6 years, 11 months ago (2014-01-20 02:05:31 UTC) #8
Habib Virji
Uploaded new patch. Keyboard event for date time are handled in forwardEvent when of type ...
6 years, 11 months ago (2014-01-20 10:14:58 UTC) #9
tkent
On 2014/01/20 10:14:58, habib.virji wrote: > Keyboard event for date time are handled in forwardEvent ...
6 years, 11 months ago (2014-01-20 13:36:23 UTC) #10
Habib Virji
Thanks for review comment. Uploaded new patch with the suggested changes.
6 years, 11 months ago (2014-01-20 15:22:12 UTC) #11
tkent
https://codereview.chromium.org/128153002/diff/300001/Source/core/html/shadow/DateTimeFieldElement.cpp File Source/core/html/shadow/DateTimeFieldElement.cpp (right): https://codereview.chromium.org/128153002/diff/300001/Source/core/html/shadow/DateTimeFieldElement.cpp#newcode66 Source/core/html/shadow/DateTimeFieldElement.cpp:66: m_fieldOwner->fieldOwnerDidReleaseMouseCapture(); The function name is wrong. This code is ...
6 years, 11 months ago (2014-01-21 01:00:53 UTC) #12
Habib Virji
Uploaded new patch as per review comments.
6 years, 11 months ago (2014-01-21 09:16:32 UTC) #13
tkent
https://codereview.chromium.org/128153002/diff/340001/Source/core/html/shadow/DateTimeFieldElement.cpp File Source/core/html/shadow/DateTimeFieldElement.cpp (right): https://codereview.chromium.org/128153002/diff/340001/Source/core/html/shadow/DateTimeFieldElement.cpp#newcode68 Source/core/html/shadow/DateTimeFieldElement.cpp:68: return; m_fieldOwner->fieldDidChangeValueByKeyboard() should be called before the "return" too.
6 years, 11 months ago (2014-01-21 09:19:01 UTC) #14
Habib Virji
Updated new patch as per review comments. https://codereview.chromium.org/128153002/diff/340001/Source/core/html/shadow/DateTimeFieldElement.cpp File Source/core/html/shadow/DateTimeFieldElement.cpp (right): https://codereview.chromium.org/128153002/diff/340001/Source/core/html/shadow/DateTimeFieldElement.cpp#newcode68 Source/core/html/shadow/DateTimeFieldElement.cpp:68: return; On ...
6 years, 11 months ago (2014-01-21 09:26:57 UTC) #15
tkent
lgtm
6 years, 11 months ago (2014-01-21 10:37:40 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/habib.virji@samsung.com/128153002/390001
6 years, 11 months ago (2014-01-21 10:38:02 UTC) #17
commit-bot: I haz the power
Change committed as 165455
6 years, 11 months ago (2014-01-21 11:43:13 UTC) #18
tkent
6 years, 10 months ago (2014-02-12 07:35:29 UTC) #19
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/159893007/ by tkent@chromium.org.

The reason for reverting is: INPUT element dispatches extra events.
.

Powered by Google App Engine
This is Rietveld 408576698