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

Issue 15057004: Week picker for android (Closed)

Created:
7 years, 7 months ago by keishi
Modified:
7 years, 6 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Week picker for android This adds support for <input type=week> on Android. ViewHostMsg_DateTimeDialogValue_Params: Adding members for week_year and week. Adding week_year separately from year to avoid confusion. WeekPicker.getWeekYearForDate(): Calendar.get(Calendar.YEAR) returns the year for the day and not the ISO week year. This returns the ISO week year. BUG=135938 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207444

Patch Set 1 #

Patch Set 2 : Added missing files #

Patch Set 3 : #

Total comments: 20

Patch Set 4 : Removed week_year. Added BaseDatePicker. #

Total comments: 2

Patch Set 5 : Introduced BaseDatePickerDialog #

Total comments: 4

Patch Set 6 : Rebased, renamed to TwoFieldDatePicker, added min/max support #

Patch Set 7 : Removed no longer used code #

Total comments: 3

Patch Set 8 : y #

Patch Set 9 : Removed WebRuntimeFeatures::enableInputTypeWeek #

Total comments: 27

Patch Set 10 : Introduced two_field_date_picker.xml, Shared more code #

Patch Set 11 : Removed unused methods #

Patch Set 12 : Rebased #

Total comments: 9

Patch Set 13 : Fixed nits, disabled #

Total comments: 1

Patch Set 14 : Removed spaces #

Patch Set 15 : Fixed min/max bug #

Unified diffs Side-by-side diffs Delta from patch set Stats (+791 lines, -367 lines) Patch
M content/browser/android/date_time_chooser_android.h View 1 2 3 4 5 2 chunks +4 lines, -3 lines 0 comments Download
M content/browser/android/date_time_chooser_android.cc View 1 2 3 4 5 7 chunks +11 lines, -9 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 1 chunk +1 line, -1 line 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
D content/public/android/java/res/layout/month_picker.xml View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -48 lines 0 comments Download
A + content/public/android/java/res/layout/two_field_date_picker.xml View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 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 2 chunks +4 lines, -2 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 2 chunks +12 lines, -11 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 12 chunks +42 lines, -20 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/input/MonthPicker.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +51 lines, -180 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/input/MonthPickerDialog.java View 1 2 3 4 5 6 7 8 9 3 chunks +11 lines, -67 lines 0 comments Download
A content/public/android/java/src/org/chromium/content/browser/input/TwoFieldDatePicker.java View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +237 lines, -0 lines 0 comments Download
A content/public/android/java/src/org/chromium/content/browser/input/TwoFieldDatePickerDialog.java View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +124 lines, -0 lines 0 comments Download
A content/public/android/java/src/org/chromium/content/browser/input/WeekPicker.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +130 lines, -0 lines 0 comments Download
A content/public/android/java/src/org/chromium/content/browser/input/WeekPickerDialog.java View 1 2 3 4 5 6 7 8 9 1 chunk +65 lines, -0 lines 0 comments Download
M content/public/android/java/strings/android_content_strings.grd View 2 chunks +6 lines, -0 lines 0 comments Download
M content/renderer/date_time_formatter.h View 2 3 chunks +6 lines, -1 line 0 comments Download
M content/renderer/date_time_formatter.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +40 lines, -6 lines 0 comments Download
M content/renderer/date_time_formatter_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +32 lines, -10 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 2 chunks +12 lines, -7 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
keishi
7 years, 7 months ago (2013-05-09 09:45:07 UTC) #1
Miguel Garcia
On 2013/05/09 09:45:07, keishi1 wrote: I had an initial look and it looks pretty good! ...
7 years, 7 months ago (2013-05-10 15:05:24 UTC) #2
Miguel Garcia
https://chromiumcodereview.appspot.com/15057004/diff/4001/content/common/view_messages.h File content/common/view_messages.h (right): https://chromiumcodereview.appspot.com/15057004/diff/4001/content/common/view_messages.h#newcode363 content/common/view_messages.h:363: IPC_STRUCT_MEMBER(int, week_year) if we really need these two ints ...
7 years, 7 months ago (2013-05-10 15:17:59 UTC) #3
keishi
message: On 2013/05/10 15:05:24, Miguel Garcia wrote: > On 2013/05/09 09:45:07, keishi1 wrote: > > ...
7 years, 7 months ago (2013-05-13 03:34:52 UTC) #4
keishi
https://codereview.chromium.org/15057004/diff/4001/content/common/view_messages.h File content/common/view_messages.h (right): https://codereview.chromium.org/15057004/diff/4001/content/common/view_messages.h#newcode363 content/common/view_messages.h:363: IPC_STRUCT_MEMBER(int, week_year) On 2013/05/10 15:17:59, Miguel Garcia wrote: > ...
7 years, 7 months ago (2013-05-14 13:47:47 UTC) #5
Miguel Garcia
I don;t think getTime provides invalid values, it just provides 0s when a value is ...
7 years, 7 months ago (2013-05-17 09:21:58 UTC) #6
keishi
On 2013/05/17 09:21:58, Miguel Garcia wrote: > I don;t think getTime provides invalid values, it ...
7 years, 7 months ago (2013-05-17 10:53:53 UTC) #7
Miguel Garcia
Looking pretty good, I have some comments but while we solve them let's start adding ...
7 years, 7 months ago (2013-05-17 11:23:38 UTC) #8
Miguel Garcia
https://chromiumcodereview.appspot.com/15057004/diff/13001/content/renderer/date_time_formatter.cc File content/renderer/date_time_formatter.cc (left): https://chromiumcodereview.appspot.com/15057004/diff/13001/content/renderer/date_time_formatter.cc#oldcode137 content/renderer/date_time_formatter.cc:137: case WebKit::WebDateTimeInputTypeWeek: // Not implemented nit: remove the // ...
7 years, 7 months ago (2013-05-17 15:59:40 UTC) #9
Miguel Garcia
Oh and you will also need jam@ for the web_contents changes On 2013/05/17 15:59:40, Miguel ...
7 years, 7 months ago (2013-05-21 15:02:23 UTC) #10
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
7 years, 7 months ago (2013-05-21 18:08:07 UTC) #11
keishi
https://codereview.chromium.org/15057004/diff/4001/content/public/android/java/src/org/chromium/content/browser/input/WeekPickerDialog.java File content/public/android/java/src/org/chromium/content/browser/input/WeekPickerDialog.java (right): https://codereview.chromium.org/15057004/diff/4001/content/public/android/java/src/org/chromium/content/browser/input/WeekPickerDialog.java#newcode18 content/public/android/java/src/org/chromium/content/browser/input/WeekPickerDialog.java:18: public class WeekPickerDialog extends AlertDialog implements OnClickListener, I've made ...
7 years, 7 months ago (2013-05-22 07:33:26 UTC) #12
Miguel Garcia
Two comments and we are done I think, I think once you merge with my ...
7 years, 7 months ago (2013-05-23 18:38:48 UTC) #13
Miguel Garcia
So now that min/max has landed (together with a much simpler Month picker) do you ...
7 years, 6 months ago (2013-06-06 17:48:11 UTC) #14
keishi
I've rebased the patch and added support for min/max to the weekPicker too. https://codereview.chromium.org/15057004/diff/23001/content/public/android/java/src/org/chromium/content/browser/input/BaseDatePicker.java File ...
7 years, 6 months ago (2013-06-07 11:08:51 UTC) #15
keishi
jam@ could you review the change to web_contents? Thanks.
7 years, 6 months ago (2013-06-07 11:10:41 UTC) #16
Miguel Garcia
On 2013/06/07 11:10:41, keishi1 wrote: > jam@ could you review the change to web_contents? Thanks. ...
7 years, 6 months ago (2013-06-10 12:29:22 UTC) #17
keishi
On 2013/06/10 12:29:22, Miguel Garcia wrote: > On 2013/06/07 11:10:41, keishi1 wrote: > > jam@ ...
7 years, 6 months ago (2013-06-10 15:15:55 UTC) #18
jam
On 2013/06/07 11:10:41, keishi1 wrote: > jam@ could you review the change to web_contents? Thanks. ...
7 years, 6 months ago (2013-06-10 17:26:24 UTC) #19
keishi
Thanks. https://codereview.chromium.org/15057004/diff/35001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/15057004/diff/35001/content/renderer/render_thread_impl.cc#newcode653 content/renderer/render_thread_impl.cc:653: // WebRuntimeFeatures::enableInputTypeWeek(false); On 2013/06/10 17:26:24, jam wrote: > ...
7 years, 6 months ago (2013-06-11 02:27:16 UTC) #20
Miguel Garcia
I've been playing a bit with it and functionality wise it looks good. I also ...
7 years, 6 months ago (2013-06-11 13:02:51 UTC) #21
keishi
https://codereview.chromium.org/15057004/diff/45001/content/public/android/java/res/layout/week_picker.xml File content/public/android/java/res/layout/week_picker.xml (right): https://codereview.chromium.org/15057004/diff/45001/content/public/android/java/res/layout/week_picker.xml#newcode24 content/public/android/java/res/layout/week_picker.xml:24: android:id="@+id/week" On 2013/06/11 13:02:52, Miguel Garcia wrote: > I ...
7 years, 6 months ago (2013-06-12 13:23:07 UTC) #22
Miguel Garcia
lgtm Thanks for putting up with my comments. Marcus can you have a look for ...
7 years, 6 months ago (2013-06-18 07:54:44 UTC) #23
bulach
lgtm, thanks! just some small nits: https://codereview.chromium.org/15057004/diff/80001/content/public/android/java/src/org/chromium/content/browser/input/TwoFieldDatePicker.java File content/public/android/java/src/org/chromium/content/browser/input/TwoFieldDatePicker.java (right): https://codereview.chromium.org/15057004/diff/80001/content/public/android/java/src/org/chromium/content/browser/input/TwoFieldDatePicker.java#newcode121 content/public/android/java/src/org/chromium/content/browser/input/TwoFieldDatePicker.java:121: protected abstract Calendar ...
7 years, 6 months ago (2013-06-18 10:38:20 UTC) #24
keishi
Thanks! https://codereview.chromium.org/15057004/diff/80001/content/public/android/java/src/org/chromium/content/browser/input/TwoFieldDatePicker.java File content/public/android/java/src/org/chromium/content/browser/input/TwoFieldDatePicker.java (right): https://codereview.chromium.org/15057004/diff/80001/content/public/android/java/src/org/chromium/content/browser/input/TwoFieldDatePicker.java#newcode121 content/public/android/java/src/org/chromium/content/browser/input/TwoFieldDatePicker.java:121: protected abstract Calendar createDateFromValue(long value); On 2013/06/18 10:38:20, ...
7 years, 6 months ago (2013-06-19 04:39:36 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/keishi@chromium.org/15057004/85001
7 years, 6 months ago (2013-06-19 04:41:50 UTC) #26
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=10165
7 years, 6 months ago (2013-06-19 04:54:08 UTC) #27
keishi
palmer@ could you review the change to view_messages.h
7 years, 6 months ago (2013-06-19 05:28:51 UTC) #28
palmer
IPC security LGTM. Note nits. https://codereview.chromium.org/15057004/diff/85001/content/renderer/renderer_date_time_picker.cc File content/renderer/renderer_date_time_picker.cc (right): https://codereview.chromium.org/15057004/diff/85001/content/renderer/renderer_date_time_picker.cc#newcode41 content/renderer/renderer_date_time_picker.cc:41: message.month = parser.GetMonth(); Nits: ...
7 years, 6 months ago (2013-06-19 20:39:28 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/keishi@chromium.org/15057004/95001
7 years, 6 months ago (2013-06-20 02:21:18 UTC) #30
commit-bot: I haz the power
Retried try job too often on android_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_dbg&number=76424
7 years, 6 months ago (2013-06-20 04:27:46 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/keishi@chromium.org/15057004/111001
7 years, 6 months ago (2013-06-20 05:05:46 UTC) #32
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=166340
7 years, 6 months ago (2013-06-20 06:37:02 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/keishi@chromium.org/15057004/111001
7 years, 6 months ago (2013-06-20 12:13:14 UTC) #34
commit-bot: I haz the power
7 years, 6 months ago (2013-06-20 16:29:10 UTC) #35
Message was sent while issue was closed.
Change committed as 207444

Powered by Google App Engine
This is Rietveld 408576698