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

Issue 23623019: Support datalist for date/time input types on Android (Closed)

Created:
7 years, 3 months ago by keishi
Modified:
7 years ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Support datalist for date/time input types on Android BUG=242455 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=239290

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 56

Patch Set 5 : WIP #

Patch Set 6 : #

Patch Set 7 : Used double to transfer value #

Total comments: 21

Patch Set 8 : Fixed nits #

Total comments: 2

Patch Set 9 : Removed change to envsetup.sh #

Total comments: 4

Patch Set 10 : Split out double value part #

Patch Set 11 : #

Patch Set 12 : #

Total comments: 7

Patch Set 13 : Fixed #

Patch Set 14 : #

Total comments: 24

Patch Set 15 : Fixed #

Total comments: 2

Patch Set 16 : Added content/renderer/date_time_suggestion.cc #

Patch Set 17 : #

Total comments: 20

Patch Set 18 : Fixed #

Patch Set 19 : #

Patch Set 20 : Added to R.java #

Patch Set 21 : Rebased #

Patch Set 22 : #

Patch Set 23 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+434 lines, -68 lines) Patch
M content/browser/android/date_time_chooser_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +4 lines, -1 line 0 comments Download
M content/browser/android/date_time_chooser_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 3 chunks +46 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +2 lines, -1 line 0 comments Download
A content/common/date_time_suggestion.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +31 lines, -0 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 3 chunks +8 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +1 line, -0 lines 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/android/java/resource_map/org/chromium/content/R.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +5 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/input/DateDialogNormalizer.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +10 lines, -10 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/input/DateTimeChooserAndroid.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +26 lines, -5 lines 0 comments Download
A content/public/android/java/src/org/chromium/content/browser/input/DateTimeSuggestion.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +59 lines, -0 lines 0 comments Download
A content/public/android/java/src/org/chromium/content/browser/input/DateTimeSuggestionListAdapter.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +56 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/input/InputDialogContainer.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +94 lines, -15 lines 0 comments Download
M content/public/android/java/strings/android_content_strings.grd View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -2 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/input/InputDialogContainerTest.java View 1 2 3 4 5 6 7 8 9 10 12 15 16 17 7 chunks +20 lines, -20 lines 0 comments Download
A content/renderer/date_time_suggestion_builder.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +23 lines, -0 lines 0 comments Download
A content/renderer/date_time_suggestion_builder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +22 lines, -0 lines 0 comments Download
M content/renderer/renderer_date_time_picker.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +5 lines, -0 lines 0 comments Download
A + ui/android/java/res/layout/date_time_suggestion.xml View 1 2 3 4 5 6 7 8 9 1 chunk +15 lines, -12 lines 0 comments Download

Messages

Total messages: 51 (0 generated)
keishi
This shows a dialog with a list of datalist suggestions first, and when the user ...
7 years, 2 months ago (2013-10-07 13:00:15 UTC) #1
Miguel Garcia
Some initial comments, thanks for working on this! https://codereview.chromium.org/23623019/diff/9001/content/common/view_messages.h File content/common/view_messages.h (right): https://codereview.chromium.org/23623019/diff/9001/content/common/view_messages.h#newcode769 content/common/view_messages.h:769: IPC_MESSAGE_ROUTED1(ViewMsg_AcceptDataListSuggestion, ...
7 years, 2 months ago (2013-10-08 17:44:39 UTC) #2
newt (away)
https://codereview.chromium.org/23623019/diff/9001/content/public/android/java/src/org/chromium/content/browser/input/DateTimeSuggestion.java File content/public/android/java/src/org/chromium/content/browser/input/DateTimeSuggestion.java (right): https://codereview.chromium.org/23623019/diff/9001/content/public/android/java/src/org/chromium/content/browser/input/DateTimeSuggestion.java#newcode12 content/public/android/java/src/org/chromium/content/browser/input/DateTimeSuggestion.java:12: final String mValue; these should presumably have the same ...
7 years, 2 months ago (2013-10-09 07:20:52 UTC) #3
keishi
I've changed it to use double to exchange the value. https://codereview.chromium.org/23623019/diff/9001/content/common/view_messages.h File content/common/view_messages.h (right): https://codereview.chromium.org/23623019/diff/9001/content/common/view_messages.h#newcode769 ...
7 years, 2 months ago (2013-10-21 17:00:57 UTC) #4
keishi
miguelg@, newt@ Could you please take a look again? Thanks.
7 years, 1 month ago (2013-11-01 01:59:49 UTC) #5
newt (away)
a couple comments inline, mostly looks good though. I find encoding dates as doubles a ...
7 years, 1 month ago (2013-11-04 17:35:54 UTC) #6
keishi
https://codereview.chromium.org/23623019/diff/61001/content/public/android/java/src/org/chromium/content/browser/input/DateTimeSuggestionListAdapter.java File content/public/android/java/src/org/chromium/content/browser/input/DateTimeSuggestionListAdapter.java (right): https://codereview.chromium.org/23623019/diff/61001/content/public/android/java/src/org/chromium/content/browser/input/DateTimeSuggestionListAdapter.java#newcode10 content/public/android/java/src/org/chromium/content/browser/input/DateTimeSuggestionListAdapter.java:10: On 2013/11/04 17:35:55, newt wrote: > remove empty line ...
7 years, 1 month ago (2013-11-05 07:23:42 UTC) #7
keishi
+palmer Could you review the change to the IPC? Thanks.
7 years, 1 month ago (2013-11-05 07:25:13 UTC) #8
newt (away)
Java/ui bits lgtm https://codereview.chromium.org/23623019/diff/61001/content/public/common/date_time_suggestion.h File content/public/common/date_time_suggestion.h (right): https://codereview.chromium.org/23623019/diff/61001/content/public/common/date_time_suggestion.h#newcode26 content/public/common/date_time_suggestion.h:26: // The suggestion value localized. On ...
7 years, 1 month ago (2013-11-05 15:37:05 UTC) #9
keishi
Thanks! https://codereview.chromium.org/23623019/diff/241001/build/android/envsetup.sh File build/android/envsetup.sh (right): https://codereview.chromium.org/23623019/diff/241001/build/android/envsetup.sh#newcode148 build/android/envsetup.sh:148: let "goma_threads=24" On 2013/11/05 15:37:05, newt wrote: > ...
7 years, 1 month ago (2013-11-06 02:20:42 UTC) #10
palmer
https://codereview.chromium.org/23623019/diff/371001/content/public/common/date_time_suggestion.h File content/public/common/date_time_suggestion.h (right): https://codereview.chromium.org/23623019/diff/371001/content/public/common/date_time_suggestion.h#newcode27 content/public/common/date_time_suggestion.h:27: base::string16 localizedValue; We should localize it on the browser ...
7 years, 1 month ago (2013-11-06 02:29:00 UTC) #11
keishi
https://codereview.chromium.org/23623019/diff/371001/content/public/common/date_time_suggestion.h File content/public/common/date_time_suggestion.h (right): https://codereview.chromium.org/23623019/diff/371001/content/public/common/date_time_suggestion.h#newcode27 content/public/common/date_time_suggestion.h:27: base::string16 localizedValue; On 2013/11/06 02:29:00, Chromium Palmer wrote: > ...
7 years, 1 month ago (2013-11-06 04:28:46 UTC) #12
palmer
> How do I check for printable characters? "label" will contain non ascii > characters. ...
7 years, 1 month ago (2013-11-07 00:19:33 UTC) #13
lgombos
Would be great to have a bugID for this. Can you just use https://code.google.com/p/chromium/issues/detail?id=242455 ?
7 years ago (2013-11-27 14:32:06 UTC) #14
keishi
@palmer I added the sanitization. I used isprint because we want to keep spaces. I've ...
7 years ago (2013-11-29 02:32:08 UTC) #15
keishi
@kenrb could you review view_messages.h? jochen@ could you review web_contents_impl.cc? jam@ could you review the ...
7 years ago (2013-11-29 02:33:05 UTC) #16
jam
https://codereview.chromium.org/23623019/diff/461001/content/public/common/date_time_suggestion.h File content/public/common/date_time_suggestion.h (right): https://codereview.chromium.org/23623019/diff/461001/content/public/common/date_time_suggestion.h#newcode1 content/public/common/date_time_suggestion.h:1: // Copyright 2013 The Chromium Authors. All rights reserved. ...
7 years ago (2013-12-02 17:27:21 UTC) #17
joth
+ bulach to have a look at content/browser/android/date_time_chooser_android lgtm rubberstamp for the .java files based ...
7 years ago (2013-12-02 20:48:54 UTC) #18
palmer
LGTM. Thanks!
7 years ago (2013-12-02 20:53:37 UTC) #19
keishi
https://codereview.chromium.org/23623019/diff/461001/content/public/common/date_time_suggestion.h File content/public/common/date_time_suggestion.h (right): https://codereview.chromium.org/23623019/diff/461001/content/public/common/date_time_suggestion.h#newcode1 content/public/common/date_time_suggestion.h:1: // Copyright 2013 The Chromium Authors. All rights reserved. ...
7 years ago (2013-12-03 03:21:25 UTC) #20
jochen (gone - plz use gerrit)
I defer to jam@
7 years ago (2013-12-03 08:40:57 UTC) #21
bulach
thanks keishi! I have a few nits and comments below, most important ones about the ...
7 years ago (2013-12-03 14:22:28 UTC) #22
keishi
https://codereview.chromium.org/23623019/diff/501001/content/browser/android/date_time_chooser_android.cc File content/browser/android/date_time_chooser_android.cc (right): https://codereview.chromium.org/23623019/diff/501001/content/browser/android/date_time_chooser_android.cc#newcode28 content/browser/android/date_time_chooser_android.cc:28: string16 SanitizeSuggestionString(string16 string) { On 2013/12/03 14:22:29, bulach wrote: ...
7 years ago (2013-12-03 16:52:33 UTC) #23
jam
https://codereview.chromium.org/23623019/diff/461001/content/public/common/date_time_suggestion.h File content/public/common/date_time_suggestion.h (right): https://codereview.chromium.org/23623019/diff/461001/content/public/common/date_time_suggestion.h#newcode1 content/public/common/date_time_suggestion.h:1: // Copyright 2013 The Chromium Authors. All rights reserved. ...
7 years ago (2013-12-03 22:24:49 UTC) #24
keishi
https://codereview.chromium.org/23623019/diff/461001/content/public/common/date_time_suggestion.h File content/public/common/date_time_suggestion.h (right): https://codereview.chromium.org/23623019/diff/461001/content/public/common/date_time_suggestion.h#newcode1 content/public/common/date_time_suggestion.h:1: // Copyright 2013 The Chromium Authors. All rights reserved. ...
7 years ago (2013-12-04 02:26:15 UTC) #25
jam
https://codereview.chromium.org/23623019/diff/551001/content/common/date_time_suggestion.h File content/common/date_time_suggestion.h (right): https://codereview.chromium.org/23623019/diff/551001/content/common/date_time_suggestion.h#newcode25 content/common/date_time_suggestion.h:25: explicit DateTimeSuggestion(const blink::WebDateTimeSuggestion& suggestion); this shouldn't be declared in ...
7 years ago (2013-12-04 06:25:52 UTC) #26
bulach
lgtm for the android bits % nits, and of course, jam's comments are also necessary ...
7 years ago (2013-12-04 10:37:53 UTC) #27
keishi
https://codereview.chromium.org/23623019/diff/551001/content/browser/android/date_time_chooser_android.cc File content/browser/android/date_time_chooser_android.cc (right): https://codereview.chromium.org/23623019/diff/551001/content/browser/android/date_time_chooser_android.cc#newcode34 content/browser/android/date_time_chooser_android.cc:34: } while(sanitized_iterator.Advance()); On 2013/12/04 10:37:54, bulach wrote: > nit: ...
7 years ago (2013-12-04 12:21:23 UTC) #28
kenrb
lgtm
7 years ago (2013-12-04 14:55:09 UTC) #29
jam
lgtm
7 years ago (2013-12-04 18:06:53 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/keishi@chromium.org/23623019/591001
7 years ago (2013-12-04 23:19:46 UTC) #31
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=39479
7 years ago (2013-12-04 23:41:01 UTC) #32
keishi
primiano@ could you review R.java? Thanks
7 years ago (2013-12-05 01:43:35 UTC) #33
keishi
Adding torne@ and benm@ to review R.java, just in case anyone is on vacation.
7 years ago (2013-12-05 14:34:59 UTC) #34
benm (inactive)
R.java lgtm
7 years ago (2013-12-05 17:44:23 UTC) #35
keishi
On 2013/12/05 17:44:23, benm wrote: > R.java lgtm Thanks!
7 years ago (2013-12-05 17:49:25 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/keishi@chromium.org/23623019/591001
7 years ago (2013-12-05 17:50:27 UTC) #37
commit-bot: I haz the power
Retried try job too often on android_aosp for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_aosp&number=32113
7 years ago (2013-12-05 18:59:10 UTC) #38
newt (away)
AOSP is failing to compile. Looks like you need to update ui/android/java/resource_map/org/chromium/ui/R.java
7 years ago (2013-12-05 19:29:49 UTC) #39
keishi
On 2013/12/05 19:29:49, newt wrote: > AOSP is failing to compile. Looks like you need ...
7 years ago (2013-12-06 00:51:00 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/keishi@chromium.org/23623019/601001
7 years ago (2013-12-06 01:51:43 UTC) #41
commit-bot: I haz the power
Retried try job too often on android_aosp for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_aosp&number=32396
7 years ago (2013-12-06 05:48:23 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/keishi@chromium.org/23623019/621001
7 years ago (2013-12-06 06:11:42 UTC) #43
commit-bot: I haz the power
Commit queue failed due to new patchset.
7 years ago (2013-12-06 12:57:58 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/keishi@chromium.org/23623019/661001
7 years ago (2013-12-06 13:01:37 UTC) #45
commit-bot: I haz the power
Retried try job too often on android_aosp for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_aosp&number=32568
7 years ago (2013-12-06 14:09:55 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/keishi@chromium.org/23623019/661001
7 years ago (2013-12-06 14:38:40 UTC) #47
Torne
On 2013/12/06 14:38:40, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
7 years ago (2013-12-06 14:46:29 UTC) #48
commit-bot: I haz the power
Retried try job too often on android_aosp for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_aosp&number=32600
7 years ago (2013-12-06 14:59:55 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/keishi@chromium.org/23623019/661001
7 years ago (2013-12-06 23:29:09 UTC) #50
commit-bot: I haz the power
7 years ago (2013-12-07 02:56:19 UTC) #51
Message was sent while issue was closed.
Change committed as 239290

Powered by Google App Engine
This is Rietveld 408576698