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

Issue 62083004: Transfer date/time value to the chooser as a double (Closed)

Created:
7 years, 1 month ago by keishi
Modified:
7 years, 1 month ago
Reviewers:
tkent, Miguel Garcia
CC:
blink-reviews, jamesr, dglazkov+blink, adamk+blink_chromium.org, abarth-chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@datetime3
Visibility:
Public.

Description

Transfer date/time value to the chooser as a double We want to avoid passing strings in IPCs. We also don't want string to date conversions in multiple places. Sending all types of values as double simplifies the code, since we already do it for min/max. Adding WebDateTimeChooserParams::doubleValue. Adding didChooseValue(double value) BUG=None Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=162480

Patch Set 1 #

Patch Set 2 : #

Total comments: 16

Patch Set 3 : Fixed #

Total comments: 8

Patch Set 4 : WIP #

Patch Set 5 : Added test #

Total comments: 8

Patch Set 6 : fixed #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+201 lines, -15 lines) Patch
M Source/core/html/HTMLInputElement.cpp View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/forms/BaseChooserOnlyDateAndTimeInputType.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/forms/BaseChooserOnlyDateAndTimeInputType.cpp View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M Source/core/html/forms/BaseMultipleFieldsDateAndTimeInputType.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/forms/BaseMultipleFieldsDateAndTimeInputType.cpp View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M Source/core/html/shadow/PickerIndicatorElement.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M Source/core/html/shadow/PickerIndicatorElement.cpp View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M Source/platform/DateTimeChooser.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M Source/platform/DateTimeChooserClient.h View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/web/DateTimeChooserImpl.cpp View 1 2 3 4 2 chunks +21 lines, -15 lines 0 comments Download
M Source/web/ExternalDateTimeChooser.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/ExternalDateTimeChooser.cpp View 1 2 3 4 3 chunks +18 lines, -0 lines 0 comments Download
M Source/web/tests/WebViewTest.cpp View 1 2 3 4 5 6 7 8 4 chunks +112 lines, -0 lines 0 comments Download
A Source/web/tests/data/date_time_chooser.html View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M public/web/WebDateTimeChooserCompletion.h View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M public/web/WebDateTimeChooserParams.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
keishi
Chromium side is here: https://codereview.chromium.org/64913002/
7 years, 1 month ago (2013-11-07 18:05:57 UTC) #1
tkent
Please write why you'd like to pass it in double in the CL description. https://codereview.chromium.org/62083004/diff/20001/Source/core/html/forms/BaseChooserOnlyDateAndTimeInputType.cpp ...
7 years, 1 month ago (2013-11-07 19:42:06 UTC) #2
keishi
> Please write why you'd like to pass it in double in the CL description. ...
7 years, 1 month ago (2013-11-07 20:04:10 UTC) #3
tkent
https://codereview.chromium.org/62083004/diff/120001/public/web/WebDateTimeChooserCompletion.h File public/web/WebDateTimeChooserCompletion.h (right): https://codereview.chromium.org/62083004/diff/120001/public/web/WebDateTimeChooserCompletion.h#newcode43 public/web/WebDateTimeChooserCompletion.h:43: // is destroyed when this method is called. If ...
7 years, 1 month ago (2013-11-07 20:10:08 UTC) #4
Miguel Garcia
Pass by review. It seems it would be very easy to add a unittest for ...
7 years, 1 month ago (2013-11-11 11:35:13 UTC) #5
keishi
Added test WebViewTest.ChooseValueFromDateTimeChooser https://codereview.chromium.org/62083004/diff/120001/Source/platform/DateTimeChooser.h File Source/platform/DateTimeChooser.h (right): https://codereview.chromium.org/62083004/diff/120001/Source/platform/DateTimeChooser.h#newcode50 Source/platform/DateTimeChooser.h:50: double doubleValue; On 2013/11/11 11:35:13, Miguel ...
7 years, 1 month ago (2013-11-19 03:28:04 UTC) #6
tkent
https://codereview.chromium.org/62083004/diff/230001/Source/web/tests/WebViewTest.cpp File Source/web/tests/WebViewTest.cpp (right): https://codereview.chromium.org/62083004/diff/230001/Source/web/tests/WebViewTest.cpp#newcode1270 Source/web/tests/WebViewTest.cpp:1270: static bool openDateTimeChooser(WebView* webView, WebCore::HTMLInputElement* inputElement) The return value ...
7 years, 1 month ago (2013-11-21 00:09:42 UTC) #7
keishi
https://codereview.chromium.org/62083004/diff/230001/Source/web/tests/WebViewTest.cpp File Source/web/tests/WebViewTest.cpp (right): https://codereview.chromium.org/62083004/diff/230001/Source/web/tests/WebViewTest.cpp#newcode1270 Source/web/tests/WebViewTest.cpp:1270: static bool openDateTimeChooser(WebView* webView, WebCore::HTMLInputElement* inputElement) On 2013/11/21 00:09:43, ...
7 years, 1 month ago (2013-11-21 15:07:12 UTC) #8
tkent
lgtm
7 years, 1 month ago (2013-11-21 15:21:26 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/keishi@chromium.org/62083004/380001
7 years, 1 month ago (2013-11-21 15:21:31 UTC) #10
commit-bot: I haz the power
7 years, 1 month ago (2013-11-21 16:18:21 UTC) #11
Message was sent while issue was closed.
Change committed as 162480

Powered by Google App Engine
This is Rietveld 408576698