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

Issue 2874933008: Adds animation as feature variation to keyboard accessory. (Closed)

Created:
3 years, 7 months ago by csashi
Modified:
3 years, 7 months ago
CC:
chromium-reviews, blundell+watchlist_chromium.org, droger+watchlist_chromium.org, rouslan+autofill_chromium.org, rogerm+autofillwatch_chromium.org, sebsg+autofillwatch_chromium.org, sdefresne+watchlist_chromium.org, browser-components-watch_chromium.org, mathp+autofillwatch_chromium.org, asvitkine+watch_chromium.org, agrieve+watch_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Adds animation as feature variation to keyboard accessory. Moves keyboard accessory feature flag from switches to feature_list. Desired layout and animation: https://folio.googleplex.com/chrome-ux/mocks/304-payments-zero-integration/ZI_Keyacc_Onboarding#%2F14-icon-white%20bg-no%20overlay-video.mp4 Design doc: https://docs.google.com/document/d/1LPO-unUyQ-YEGKpxB7tYA3j8yrwblyKf_U0eaBNBFx8/edit# BUG=724624 Review-Url: https://codereview.chromium.org/2874933008 Cr-Commit-Position: refs/heads/master@{#473350} Committed: https://chromium.googlesource.com/chromium/src/+/a447acf9e15594e71b329965d49e7334ff388563

Patch Set 1 #

Patch Set 2 : Adds feature variation to limit label width. #

Patch Set 3 : Adds feature variation to limit label width. #

Patch Set 4 : Adds icon hint at beginning of keyboard accessory suggestions as a variation. #

Patch Set 5 : Adds targetApi for ic_create_googblue.xml #

Patch Set 6 : Adds targetApi for ic_create_googblue.xml #

Patch Set 7 : Updates unit tests. #

Patch Set 8 : Updates unit tests. #

Patch Set 9 : Merge forward #

Total comments: 20

Patch Set 10 : Removes constructor parameter for 'hint' suggestion, call animation.start() on Animator directly. #

Patch Set 11 : Postpone RTL animation with TODO until we understand expected behavior. #

Total comments: 25

Patch Set 12 : createSeparatorView to try and align settings icon. Replace ic_create_googblue with bookmark_edit_n… #

Patch Set 13 : Renames bookmark_edit_normal to ic_edit_24dp. Adds blue tint for keyboard accessory. #

Total comments: 2

Patch Set 14 : Cancels pending animations, removes hint view after reverse animation and forces layout redraw. #

Patch Set 15 : Cancels pending animations, removes hint view after reverse animation and forces layout redraw. #

Total comments: 20

Patch Set 16 : Uses only 1 Animator object. Removes redundant call to invalidate. #

Total comments: 2

Patch Set 17 : Switch to base/metrics/field_trial_params.h API from variations:: #

Unified diffs Side-by-side diffs Delta from patch set Stats (+321 lines, -90 lines) Patch
D chrome/android/java/res/drawable-hdpi/bookmark_edit_normal.png View 1 2 3 4 5 6 7 8 9 10 11 12 Binary file 0 comments Download
A + chrome/android/java/res/drawable-hdpi/ic_edit_24dp.png View 1 2 3 4 5 6 7 8 9 10 11 12 Binary file 0 comments Download
D chrome/android/java/res/drawable-mdpi/bookmark_edit_normal.png View 1 2 3 4 5 6 7 8 9 10 11 12 Binary file 0 comments Download
A + chrome/android/java/res/drawable-mdpi/ic_edit_24dp.png View 1 2 3 4 5 6 7 8 9 10 11 12 Binary file 0 comments Download
D chrome/android/java/res/drawable-xhdpi/bookmark_edit_normal.png View 1 2 3 4 5 6 7 8 9 10 11 12 Binary file 0 comments Download
A + chrome/android/java/res/drawable-xhdpi/ic_edit_24dp.png View 1 2 3 4 5 6 7 8 9 10 11 12 Binary file 0 comments Download
D chrome/android/java/res/drawable-xxhdpi/bookmark_edit_normal.png View 1 2 3 4 5 6 7 8 9 10 11 12 Binary file 0 comments Download
A + chrome/android/java/res/drawable-xxhdpi/ic_edit_24dp.png View 1 2 3 4 5 6 7 8 9 10 11 12 Binary file 0 comments Download
D chrome/android/java/res/drawable-xxxhdpi/bookmark_edit_normal.png View 1 2 3 4 5 6 7 8 9 10 11 12 Binary file 0 comments Download
A + chrome/android/java/res/drawable-xxxhdpi/ic_edit_24dp.png View 1 2 3 4 5 6 7 8 9 10 11 12 Binary file 0 comments Download
M chrome/android/java/res/layout/payment_option_edit_icon.xml View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/res/menu/bookmark_action_bar_menu.xml View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ChromeSwitches.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillKeyboardAccessoryBridge.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +9 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferences.java View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -2 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/autofill/AutofillKeyboardAccessoryTest.java View 1 2 3 4 5 6 7 8 9 4 chunks +3 lines, -7 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 9 3 chunks +39 lines, -4 lines 0 comments Download
M chrome/browser/android/resource_id.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/android/autofill/autofill_keyboard_accessory_view.h View 1 2 3 4 5 6 7 8 9 2 chunks +10 lines, -3 lines 0 comments Download
M chrome/browser/ui/android/autofill/autofill_keyboard_accessory_view.cc View 1 2 3 4 5 6 7 8 9 3 chunks +21 lines, -9 lines 0 comments Download
M chrome/browser/ui/android/autofill/autofill_popup_view_android.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/autofill/autofill_popup_layout_model.cc View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M components/autofill/android/java/res/values/colors.xml View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -1 line 0 comments Download
M components/autofill/android/java/res/values/dimens.xml View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill/android/java/src/org/chromium/components/autofill/AutofillKeyboardAccessory.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 7 chunks +139 lines, -19 lines 0 comments Download
M components/autofill/core/browser/autofill_external_delegate.cc View 1 2 3 4 5 6 7 8 9 2 chunks +15 lines, -4 lines 0 comments Download
M components/autofill/core/browser/popup_item_ids.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill/core/common/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill/core/common/autofill_switches.h View 1 chunk +0 lines, -5 lines 0 comments Download
M components/autofill/core/common/autofill_switches.cc View 1 chunk +0 lines, -10 lines 0 comments Download
M components/autofill/core/common/autofill_util.h View 1 2 3 4 5 6 7 8 9 2 chunks +20 lines, -0 lines 0 comments Download
M components/autofill/core/common/autofill_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +45 lines, -6 lines 0 comments Download
M components/resources/autofill_scaled_resources.grdp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/enums.xml View 1 2 3 4 5 6 7 4 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 86 (59 generated)
csashi
Hi Rouslan, Can you take a first look. I can add other reviewers after your ...
3 years, 7 months ago (2017-05-12 23:11:18 UTC) #2
please use gerrit instead
https://codereview.chromium.org/2874933008/diff/160001/chrome/android/java/res/drawable/ic_create_googblue.xml File chrome/android/java/res/drawable/ic_create_googblue.xml (right): https://codereview.chromium.org/2874933008/diff/160001/chrome/android/java/res/drawable/ic_create_googblue.xml#newcode2 chrome/android/java/res/drawable/ic_create_googblue.xml:2: <!-- Copyright 2016 The Chromium Authors. All rights reserved. ...
3 years, 7 months ago (2017-05-15 14:37:29 UTC) #28
csashi
Hi Rouslan, Please take a look. Thanks! -sashi. https://codereview.chromium.org/2874933008/diff/160001/chrome/android/java/res/drawable/ic_create_googblue.xml File chrome/android/java/res/drawable/ic_create_googblue.xml (right): https://codereview.chromium.org/2874933008/diff/160001/chrome/android/java/res/drawable/ic_create_googblue.xml#newcode2 chrome/android/java/res/drawable/ic_create_googblue.xml:2: <!-- ...
3 years, 7 months ago (2017-05-15 20:07:26 UTC) #29
please use gerrit instead
lgtm
3 years, 7 months ago (2017-05-15 20:12:09 UTC) #32
csashi
Hi Ted, Please review changes in chrome/android and chrome/browser Hi Mathieu, Please review changes in ...
3 years, 7 months ago (2017-05-15 20:44:56 UTC) #34
Mathieu
components/autofill lgtm
3 years, 7 months ago (2017-05-16 00:27:38 UTC) #38
Ted C
https://codereview.chromium.org/2874933008/diff/200001/chrome/android/java/res/drawable/ic_create_googblue.xml File chrome/android/java/res/drawable/ic_create_googblue.xml (right): https://codereview.chromium.org/2874933008/diff/200001/chrome/android/java/res/drawable/ic_create_googblue.xml#newcode6 chrome/android/java/res/drawable/ic_create_googblue.xml:6: <vector xmlns:android="http://schemas.android.com/apk/res/android" Hmm..we already have two pencil icons in ...
3 years, 7 months ago (2017-05-17 00:04:30 UTC) #43
Ted C
+twellington for the icon de-duplicate comment
3 years, 7 months ago (2017-05-17 00:04:56 UTC) #45
csashi
Hi Ted and Theresa, Please take a look. Thanks! -sashi. https://codereview.chromium.org/2874933008/diff/200001/chrome/android/java/res/drawable/ic_create_googblue.xml File chrome/android/java/res/drawable/ic_create_googblue.xml (right): https://codereview.chromium.org/2874933008/diff/200001/chrome/android/java/res/drawable/ic_create_googblue.xml#newcode6 ...
3 years, 7 months ago (2017-05-17 01:14:16 UTC) #46
Theresa
https://codereview.chromium.org/2874933008/diff/200001/chrome/android/java/res/drawable/ic_create_googblue.xml File chrome/android/java/res/drawable/ic_create_googblue.xml (right): https://codereview.chromium.org/2874933008/diff/200001/chrome/android/java/res/drawable/ic_create_googblue.xml#newcode6 chrome/android/java/res/drawable/ic_create_googblue.xml:6: <vector xmlns:android="http://schemas.android.com/apk/res/android" On 2017/05/17 01:14:15, csashi wrote: > On ...
3 years, 7 months ago (2017-05-17 15:13:46 UTC) #47
csashi
Hi Theresa and Ted, Please take a look. Thanks! I can remove the bookmark_edit_active in ...
3 years, 7 months ago (2017-05-17 18:38:53 UTC) #48
csashi
https://codereview.chromium.org/2874933008/diff/200001/components/autofill/android/java/src/org/chromium/components/autofill/AutofillKeyboardAccessory.java File components/autofill/android/java/src/org/chromium/components/autofill/AutofillKeyboardAccessory.java (right): https://codereview.chromium.org/2874933008/diff/200001/components/autofill/android/java/src/org/chromium/components/autofill/AutofillKeyboardAccessory.java#newcode84 components/autofill/android/java/src/org/chromium/components/autofill/AutofillKeyboardAccessory.java:84: public void showWithSuggestions(AutofillSuggestion[] suggestions, final boolean isRtl) { On ...
3 years, 7 months ago (2017-05-18 00:04:06 UTC) #53
csashi
Hi Ted and Theresa, I resolved the post animation alignment issue. Please take a look. ...
3 years, 7 months ago (2017-05-18 00:53:04 UTC) #54
Ted C
https://codereview.chromium.org/2874933008/diff/240001/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillKeyboardAccessoryBridge.java File chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillKeyboardAccessoryBridge.java (right): https://codereview.chromium.org/2874933008/diff/240001/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillKeyboardAccessoryBridge.java#newcode75 chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillKeyboardAccessoryBridge.java:75: * direction. We reverse animation to scroll the first ...
3 years, 7 months ago (2017-05-19 16:49:46 UTC) #59
csashi
https://codereview.chromium.org/2874933008/diff/240001/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillKeyboardAccessoryBridge.java File chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillKeyboardAccessoryBridge.java (right): https://codereview.chromium.org/2874933008/diff/240001/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillKeyboardAccessoryBridge.java#newcode75 chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillKeyboardAccessoryBridge.java:75: * direction. We reverse animation to scroll the first ...
3 years, 7 months ago (2017-05-19 17:25:44 UTC) #60
csashi
On 2017/05/19 17:25:44, csashi wrote: > https://codereview.chromium.org/2874933008/diff/240001/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillKeyboardAccessoryBridge.java > File > chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillKeyboardAccessoryBridge.java > (right): > > ...
3 years, 7 months ago (2017-05-19 17:26:07 UTC) #61
Ted C
lgtm https://codereview.chromium.org/2874933008/diff/280001/components/autofill/android/java/src/org/chromium/components/autofill/AutofillKeyboardAccessory.java File components/autofill/android/java/src/org/chromium/components/autofill/AutofillKeyboardAccessory.java (right): https://codereview.chromium.org/2874933008/diff/280001/components/autofill/android/java/src/org/chromium/components/autofill/AutofillKeyboardAccessory.java#newcode193 components/autofill/android/java/src/org/chromium/components/autofill/AutofillKeyboardAccessory.java:193: this, View.TRANSLATION_X, -mStartAnimationTranslationPx, 0); On 2017/05/19 17:25:43, csashi ...
3 years, 7 months ago (2017-05-19 17:36:14 UTC) #62
csashi
https://codereview.chromium.org/2874933008/diff/280001/components/autofill/android/java/src/org/chromium/components/autofill/AutofillKeyboardAccessory.java File components/autofill/android/java/src/org/chromium/components/autofill/AutofillKeyboardAccessory.java (right): https://codereview.chromium.org/2874933008/diff/280001/components/autofill/android/java/src/org/chromium/components/autofill/AutofillKeyboardAccessory.java#newcode193 components/autofill/android/java/src/org/chromium/components/autofill/AutofillKeyboardAccessory.java:193: this, View.TRANSLATION_X, -mStartAnimationTranslationPx, 0); On 2017/05/19 17:36:14, Ted C ...
3 years, 7 months ago (2017-05-19 17:42:13 UTC) #63
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2874933008/300001
3 years, 7 months ago (2017-05-19 17:43:43 UTC) #66
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/442607)
3 years, 7 months ago (2017-05-19 17:54:01 UTC) #68
csashi
On 2017/05/19 17:54:01, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 7 months ago (2017-05-19 18:11:35 UTC) #70
rkaplow
lgtm
3 years, 7 months ago (2017-05-19 19:48:28 UTC) #73
Alexei Svitkine (slow)
This seems like a sizeable CL. Can you associate it with a relevant crbug? File ...
3 years, 7 months ago (2017-05-19 19:57:22 UTC) #75
csashi
https://codereview.chromium.org/2874933008/diff/300001/components/autofill/core/common/autofill_util.cc File components/autofill/core/common/autofill_util.cc (right): https://codereview.chromium.org/2874933008/diff/300001/components/autofill/core/common/autofill_util.cc#newcode73 components/autofill/core/common/autofill_util.cc:73: const std::string param_value = variations::GetVariationParamValueByFeature( On 2017/05/19 19:57:22, Alexei ...
3 years, 7 months ago (2017-05-19 20:41:22 UTC) #79
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2874933008/320001
3 years, 7 months ago (2017-05-19 20:42:40 UTC) #82
Alexei Svitkine (slow)
lgtm
3 years, 7 months ago (2017-05-19 20:44:09 UTC) #83
commit-bot: I haz the power
3 years, 7 months ago (2017-05-19 22:05:51 UTC) #86
Message was sent while issue was closed.
Committed patchset #17 (id:320001) as
https://chromium.googlesource.com/chromium/src/+/a447acf9e15594e71b329965d49e...

Powered by Google App Engine
This is Rietveld 408576698