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

Issue 872023002: Use floating labels for preference forms (Closed)

Created:
5 years, 11 months ago by Theresa
Modified:
5 years, 10 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use floating labels for preference forms Refactor AutofillProfileEditor to use cpp third_party/libaddressinput and custom Java UI (rather than libaddressinput's Java AddressWidget). Add FloatLabelLayout.java and change autofill profile and credit card forms to use floating labels. BUG=414438 Committed: https://crrev.com/0bc6149395ed645213e16fa62ae3321dc0880537 Cr-Commit-Position: refs/heads/master@{#313973}

Patch Set 1 #

Patch Set 2 : Fix chrome/browser/BUILD.gn #

Total comments: 2

Patch Set 3 : Change repack_locales condition to just enable_autofill_dialog #

Total comments: 58

Patch Set 4 : Use shared Java/C++ enum, other changes from newt review #

Patch Set 5 : A few more tweaks #

Patch Set 6 : Manually focus first field for empty form/on country change #

Patch Set 7 : Replace autogenerated AddressField.java with manually generated; order countries by display name #

Patch Set 8 : Actually commit AddressField.java #

Total comments: 38

Patch Set 9 : Get application language from C++ #

Total comments: 20

Patch Set 10 : Do more on cpp side, cache field data when form is reset, etc #

Patch Set 11 : Minor tweaks #

Patch Set 12 : Fix findbugs #

Patch Set 13 : Re-fix findbugs #

Total comments: 42

Patch Set 14 : Getting closer... #

Total comments: 4

Patch Set 15 : Minor changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+906 lines, -257 lines) Patch
M chrome/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -2 lines 0 comments Download
A chrome/android/java/res/color/float_label.xml View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/android/java/res/layout/autofill_credit_card_editor.xml View 1 2 3 2 chunks +27 lines, -21 lines 0 comments Download
M chrome/android/java/res/layout/autofill_profile_editor.xml View 1 2 3 4 5 6 7 8 9 3 chunks +37 lines, -20 lines 0 comments Download
D chrome/android/java/res/layout/autofill_profile_label.xml View 1 2 3 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/android/java/res/layout/homepage_preferences.xml View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
A chrome/android/java/res/layout/preference_address_float_label_layout.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +17 lines, -0 lines 0 comments Download
M chrome/android/java/res/values-v17/styles.xml View 1 2 3 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/android/java/res/values-v21/dimens.xml View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/android/java/res/values-v21/styles.xml View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/java/res/values/attrs.xml View 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/android/java/res/values/dimens.xml View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -3 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillProfileBridge.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +142 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillProfileEditor.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +192 lines, -63 lines 0 comments Download
D chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/ChromeAddressWidgetUiComponentProvider.java View 1 chunk +0 lines, -132 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/widget/FloatLabelLayout.java View 1 2 3 4 5 6 7 8 9 1 chunk +278 lines, -0 lines 0 comments Download
M chrome/android/java/strings/android_chrome_strings.grd View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/chrome_jni_registrar.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
A chrome/browser/android/preferences/autofill/DEPS View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/browser/android/preferences/autofill/autofill_profile_bridge.h View 1 2 3 4 5 6 7 8 9 1 chunk +17 lines, -0 lines 0 comments Download
A chrome/browser/android/preferences/autofill/autofill_profile_bridge.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +146 lines, -0 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +0 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +4 lines, -0 lines 0 comments Download
M chrome/chrome_repack_locales.gni View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/tools/build/repack_locales.py View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 33 (3 generated)
Theresa
Including reviewers: newt@ for chrome/android & chrome/android/browser changes kerz@ for chrome/tools/build/repack_locales.py thestig@ for chrome/chrome.gyp, chrome/chrome_browser.gypi, ...
5 years, 11 months ago (2015-01-23 18:33:54 UTC) #2
kerz_chromium
lgtm
5 years, 11 months ago (2015-01-23 18:37:56 UTC) #3
Lei Zhang
https://codereview.chromium.org/872023002/diff/20001/chrome/chrome_repack_locales.gni File chrome/chrome_repack_locales.gni (right): https://codereview.chromium.org/872023002/diff/20001/chrome/chrome_repack_locales.gni#newcode65 chrome/chrome_repack_locales.gni:65: if ((enable_autofill_dialog && !is_ios) || is_android) { I think ...
5 years, 11 months ago (2015-01-23 20:53:18 UTC) #4
Theresa
https://codereview.chromium.org/872023002/diff/20001/chrome/chrome_repack_locales.gni File chrome/chrome_repack_locales.gni (right): https://codereview.chromium.org/872023002/diff/20001/chrome/chrome_repack_locales.gni#newcode65 chrome/chrome_repack_locales.gni:65: if ((enable_autofill_dialog && !is_ios) || is_android) { On 2015/01/23 ...
5 years, 11 months ago (2015-01-23 21:44:06 UTC) #5
Lei Zhang
gn/gyp files lgtm
5 years, 11 months ago (2015-01-23 22:11:03 UTC) #6
newt (away)
Overall design looks pretty good. Lots of comments inline though :) Could you add a ...
5 years, 11 months ago (2015-01-27 01:45:07 UTC) #7
Theresa
newt@ PTAL -- addressed review comments and fixed a few things I noticed in testing ...
5 years, 10 months ago (2015-01-28 02:05:43 UTC) #9
Evan Stade
https://codereview.chromium.org/872023002/diff/140001/chrome/android/java/res/layout/preference_float_label_layout.xml File chrome/android/java/res/layout/preference_float_label_layout.xml (right): https://codereview.chromium.org/872023002/diff/140001/chrome/android/java/res/layout/preference_float_label_layout.xml#newcode13 chrome/android/java/res/layout/preference_float_label_layout.xml:13: android:id="@+id/address_edit_text" this file seems generic but this id is ...
5 years, 10 months ago (2015-01-28 03:07:47 UTC) #10
newt (away)
https://codereview.chromium.org/872023002/diff/140001/chrome/browser/android/preferences/autofill/autofill_profile_bridge.cc File chrome/browser/android/preferences/autofill/autofill_profile_bridge.cc (right): https://codereview.chromium.org/872023002/diff/140001/chrome/browser/android/preferences/autofill/autofill_profile_bridge.cc#newcode48 chrome/browser/android/preferences/autofill/autofill_profile_bridge.cc:48: // from Android are in the format en_US and ...
5 years, 10 months ago (2015-01-28 03:15:26 UTC) #11
Theresa
https://codereview.chromium.org/872023002/diff/140001/chrome/android/java/res/layout/preference_float_label_layout.xml File chrome/android/java/res/layout/preference_float_label_layout.xml (right): https://codereview.chromium.org/872023002/diff/140001/chrome/android/java/res/layout/preference_float_label_layout.xml#newcode13 chrome/android/java/res/layout/preference_float_label_layout.xml:13: android:id="@+id/address_edit_text" On 2015/01/28 03:07:47, Evan Stade wrote: > this ...
5 years, 10 months ago (2015-01-28 03:33:47 UTC) #12
Theresa
PTAL - changes: get application language from C++ instead of Java, rename preference_float_label_layout.xml -> preference_address_float_label_layout.xml
5 years, 10 months ago (2015-01-28 15:37:22 UTC) #13
newt (away)
https://codereview.chromium.org/872023002/diff/140001/chrome/android/java/res/layout/autofill_profile_editor.xml File chrome/android/java/res/layout/autofill_profile_editor.xml (right): https://codereview.chromium.org/872023002/diff/140001/chrome/android/java/res/layout/autofill_profile_editor.xml#newcode44 chrome/android/java/res/layout/autofill_profile_editor.xml:44: android:id="@+id/autofill_profile_editor_phone_number_label" Shorter IDs are OK too, e.g. autofill_phone_number_label or ...
5 years, 10 months ago (2015-01-28 20:20:19 UTC) #14
Theresa
https://codereview.chromium.org/872023002/diff/160001/chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillProfileEditor.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillProfileEditor.java (right): https://codereview.chromium.org/872023002/diff/160001/chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillProfileEditor.java#newcode144 chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillProfileEditor.java:144: String countryName = new Locale("", countryCode).getDisplayCountry(Locale.getDefault()); On 2015/01/28 20:20:19, ...
5 years, 10 months ago (2015-01-28 21:51:50 UTC) #15
Evan Stade
https://codereview.chromium.org/872023002/diff/140001/chrome/android/java/res/layout/preference_float_label_layout.xml File chrome/android/java/res/layout/preference_float_label_layout.xml (right): https://codereview.chromium.org/872023002/diff/140001/chrome/android/java/res/layout/preference_float_label_layout.xml#newcode14 chrome/android/java/res/layout/preference_float_label_layout.xml:14: android:singleLine="true" On 2015/01/28 03:33:47, twellington wrote: > On 2015/01/28 ...
5 years, 10 months ago (2015-01-29 01:07:22 UTC) #16
Theresa
PTAL addressed comments from newt@ and estade@ reviews https://codereview.chromium.org/872023002/diff/140001/chrome/android/java/res/layout/autofill_profile_editor.xml File chrome/android/java/res/layout/autofill_profile_editor.xml (right): https://codereview.chromium.org/872023002/diff/140001/chrome/android/java/res/layout/autofill_profile_editor.xml#newcode44 chrome/android/java/res/layout/autofill_profile_editor.xml:44: android:id="@+id/autofill_profile_editor_phone_number_label" ...
5 years, 10 months ago (2015-01-29 05:22:14 UTC) #17
newt (away)
https://codereview.chromium.org/872023002/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillProfileBridge.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillProfileBridge.java (right): https://codereview.chromium.org/872023002/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillProfileBridge.java#newcode52 chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillProfileBridge.java:52: private static void stringArrayToList(String[] array, List<String> list) { On ...
5 years, 10 months ago (2015-01-29 20:00:37 UTC) #18
Evan Stade
https://codereview.chromium.org/872023002/diff/240001/chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillProfileEditor.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillProfileEditor.java (right): https://codereview.chromium.org/872023002/diff/240001/chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillProfileEditor.java#newcode262 chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillProfileEditor.java:262: getFieldText(AddressField.STREET_ADDRESS), just checking --- this is a string with ...
5 years, 10 months ago (2015-01-29 22:29:58 UTC) #19
Theresa
PTAL https://codereview.chromium.org/872023002/diff/240001/chrome/android/java/res/layout/preference_address_float_label_layout.xml File chrome/android/java/res/layout/preference_address_float_label_layout.xml (right): https://codereview.chromium.org/872023002/diff/240001/chrome/android/java/res/layout/preference_address_float_label_layout.xml#newcode2 chrome/android/java/res/layout/preference_address_float_label_layout.xml:2: <!-- Copyright 2014 The Chromium Authors. All rights ...
5 years, 10 months ago (2015-01-29 22:31:12 UTC) #20
Theresa
https://codereview.chromium.org/872023002/diff/240001/chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillProfileEditor.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillProfileEditor.java (right): https://codereview.chromium.org/872023002/diff/240001/chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillProfileEditor.java#newcode262 chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillProfileEditor.java:262: getFieldText(AddressField.STREET_ADDRESS), On 2015/01/29 22:29:57, Evan Stade wrote: > just ...
5 years, 10 months ago (2015-01-29 22:49:42 UTC) #21
Evan Stade
https://codereview.chromium.org/872023002/diff/240001/chrome/browser/android/preferences/autofill/autofill_profile_bridge.cc File chrome/browser/android/preferences/autofill/autofill_profile_bridge.cc (right): https://codereview.chromium.org/872023002/diff/240001/chrome/browser/android/preferences/autofill/autofill_profile_bridge.cc#newcode31 chrome/browser/android/preferences/autofill/autofill_profile_bridge.cc:31: enum AddressField { On 2015/01/29 22:49:42, twellington wrote: > ...
5 years, 10 months ago (2015-01-30 00:02:18 UTC) #22
Theresa
https://codereview.chromium.org/872023002/diff/240001/chrome/browser/android/preferences/autofill/autofill_profile_bridge.cc File chrome/browser/android/preferences/autofill/autofill_profile_bridge.cc (right): https://codereview.chromium.org/872023002/diff/240001/chrome/browser/android/preferences/autofill/autofill_profile_bridge.cc#newcode31 chrome/browser/android/preferences/autofill/autofill_profile_bridge.cc:31: enum AddressField { On 2015/01/30 00:02:17, Evan Stade wrote: ...
5 years, 10 months ago (2015-01-30 00:37:06 UTC) #23
Evan Stade
On 2015/01/30 00:37:06, twellington wrote: > https://codereview.chromium.org/872023002/diff/240001/chrome/browser/android/preferences/autofill/autofill_profile_bridge.cc > File chrome/browser/android/preferences/autofill/autofill_profile_bridge.cc > (right): > > https://codereview.chromium.org/872023002/diff/240001/chrome/browser/android/preferences/autofill/autofill_profile_bridge.cc#newcode31 ...
5 years, 10 months ago (2015-01-30 00:46:45 UTC) #24
newt (away)
On 2015/01/30 00:46:45, Evan Stade wrote: > On 2015/01/30 00:37:06, twellington wrote: > > > ...
5 years, 10 months ago (2015-01-30 01:32:19 UTC) #25
newt (away)
https://codereview.chromium.org/872023002/diff/260001/chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillProfileBridge.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillProfileBridge.java (right): https://codereview.chromium.org/872023002/diff/260001/chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillProfileBridge.java#newcode45 chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillProfileBridge.java:45: * A convenience class for storing a CLDR country ...
5 years, 10 months ago (2015-01-30 01:32:31 UTC) #26
Evan Stade
re: the enum -- I don't want to hold up the review. I guess we ...
5 years, 10 months ago (2015-01-30 19:08:57 UTC) #27
newt (away)
lgtm modulo two nits from the latest patch set. Thanks for making this work!
5 years, 10 months ago (2015-01-30 19:16:17 UTC) #28
Theresa
Landing soon :D https://codereview.chromium.org/872023002/diff/260001/chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillProfileBridge.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillProfileBridge.java (right): https://codereview.chromium.org/872023002/diff/260001/chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillProfileBridge.java#newcode45 chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillProfileBridge.java:45: * A convenience class for storing ...
5 years, 10 months ago (2015-01-30 19:17:52 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/872023002/280001
5 years, 10 months ago (2015-01-30 19:20:47 UTC) #31
commit-bot: I haz the power
Committed patchset #15 (id:280001)
5 years, 10 months ago (2015-01-30 20:15:01 UTC) #32
commit-bot: I haz the power
5 years, 10 months ago (2015-01-30 20:16:05 UTC) #33
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/0bc6149395ed645213e16fa62ae3321dc0880537
Cr-Commit-Position: refs/heads/master@{#313973}

Powered by Google App Engine
This is Rietveld 408576698