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

Issue 2517843002: Http Bad: Put icon on the left of http warning message on Views (Closed)

Created:
4 years, 1 month ago by lshang
Modified:
4 years ago
CC:
chromium-reviews, rouslan+autofill_chromium.org, tfarina, sebsg+autofillwatch_chromium.org, jdonnelly+autofillwatch_chromium.org, mathp+autofillwatch_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Http Bad: Put icon on the left of http warning message on Views The order of elements in http bad warning message is: icon, value, label. So this CL puts icon on the left of autofill entry when drawing it. It also adjusts label font size, name padding and icon padding accordingly. specs: go/fns-ui-spec screenshots: https://screenshot.googleplex.com/bD2gRETFRPo https://screenshot.googleplex.com/t81q78qYwLk BUG=662298 Committed: https://crrev.com/833bf5f37ae5a52da4669ecd9a8cc60b838d8d25 Cr-Commit-Position: refs/heads/master@{#435722}

Patch Set 1 #

Patch Set 2 : add test #

Total comments: 8

Patch Set 3 : merge two Draw methods and add ascii art #

Total comments: 10

Patch Set 4 : add comments #

Total comments: 12

Patch Set 5 : update #

Total comments: 4

Patch Set 6 : update #

Patch Set 7 : fix mac #

Patch Set 8 : fix mac #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -36 lines) Patch
M chrome/browser/ui/autofill/autofill_popup_controller_impl.cc View 3 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/autofill/autofill_popup_layout_model.h View 1 2 3 4 5 2 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_popup_layout_model.cc View 1 2 3 4 2 chunks +12 lines, -3 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_popup_layout_model_unittest.cc View 1 2 4 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm View 1 2 3 4 5 6 7 3 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/views/autofill/autofill_popup_view_views.cc View 1 2 3 4 5 2 chunks +83 lines, -23 lines 0 comments Download

Messages

Total messages: 44 (27 generated)
lshang
Hi Mathieu, this CL changed style of http warning message on Views. Since the element ...
4 years, 1 month ago (2016-11-20 10:42:22 UTC) #3
Mathieu
Hi Liu, here are some comments. I'm also adding Evan who is the owner of ...
4 years, 1 month ago (2016-11-22 14:36:45 UTC) #9
Evan Stade
can you ping me after addressing mathp's comments to his satisfaction? thanks.
4 years, 1 month ago (2016-11-22 16:38:24 UTC) #10
lshang
Thanks Mathieu, PTAL again? https://codereview.chromium.org/2517843002/diff/20001/chrome/browser/ui/autofill/autofill_popup_layout_model.cc File chrome/browser/ui/autofill/autofill_popup_layout_model.cc (right): https://codereview.chromium.org/2517843002/diff/20001/chrome/browser/ui/autofill/autofill_popup_layout_model.cc#newcode189 chrome/browser/ui/autofill/autofill_popup_layout_model.cc:189: if (id == POPUP_ITEM_ID_HTTP_NOT_SECURE_WARNING_MESSAGE) On ...
4 years ago (2016-11-27 04:59:13 UTC) #16
Mathieu
lgtm. There is no perfect solution but your drawings really help. I think we will ...
4 years ago (2016-11-28 15:01:36 UTC) #19
lshang
Thanks Mathieu. estade@ PTAL again? https://codereview.chromium.org/2517843002/diff/60001/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc File chrome/browser/ui/views/autofill/autofill_popup_view_views.cc (right): https://codereview.chromium.org/2517843002/diff/60001/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc#newcode85 chrome/browser/ui/views/autofill/autofill_popup_view_views.cc:85: * ............................................................................ On 2016/11/28 ...
4 years ago (2016-11-29 10:44:31 UTC) #20
Evan Stade
just nits https://codereview.chromium.org/2517843002/diff/80001/chrome/browser/ui/autofill/autofill_popup_layout_model.cc File chrome/browser/ui/autofill/autofill_popup_layout_model.cc (right): https://codereview.chromium.org/2517843002/diff/80001/chrome/browser/ui/autofill/autofill_popup_layout_model.cc#newcode120 chrome/browser/ui/autofill/autofill_popup_layout_model.cc:120: bool isWarningMessage = (suggestions[row].frontend_id == is_warning_message https://codereview.chromium.org/2517843002/diff/80001/chrome/browser/ui/autofill/autofill_popup_layout_model.cc#newcode132 ...
4 years ago (2016-11-29 15:43:17 UTC) #21
lshang
Thanks! Learnt a lot for coding style. https://codereview.chromium.org/2517843002/diff/80001/chrome/browser/ui/autofill/autofill_popup_layout_model.cc File chrome/browser/ui/autofill/autofill_popup_layout_model.cc (right): https://codereview.chromium.org/2517843002/diff/80001/chrome/browser/ui/autofill/autofill_popup_layout_model.cc#newcode120 chrome/browser/ui/autofill/autofill_popup_layout_model.cc:120: bool isWarningMessage ...
4 years ago (2016-11-30 05:43:36 UTC) #22
Evan Stade
thanks, lgtm https://codereview.chromium.org/2517843002/diff/100001/chrome/browser/ui/autofill/autofill_popup_layout_model.h File chrome/browser/ui/autofill/autofill_popup_layout_model.h (right): https://codereview.chromium.org/2517843002/diff/100001/chrome/browser/ui/autofill/autofill_popup_layout_model.h#newcode42 chrome/browser/ui/autofill/autofill_popup_layout_model.h:42: // The amount of padding around icons ...
4 years ago (2016-11-30 16:22:31 UTC) #23
lshang
Thanks Evan! https://codereview.chromium.org/2517843002/diff/100001/chrome/browser/ui/autofill/autofill_popup_layout_model.h File chrome/browser/ui/autofill/autofill_popup_layout_model.h (right): https://codereview.chromium.org/2517843002/diff/100001/chrome/browser/ui/autofill/autofill_popup_layout_model.h#newcode42 chrome/browser/ui/autofill/autofill_popup_layout_model.h:42: // The amount of padding around icons ...
4 years ago (2016-12-01 07:42:14 UTC) #24
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/2517843002/120001
4 years ago (2016-12-01 07:42:51 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/345772)
4 years ago (2016-12-01 08:11:29 UTC) #29
lshang
+avi@ for changes in autofill_popup_view_cocoa.mm, PTAL thanks!
4 years ago (2016-12-01 09:00:37 UTC) #31
Avi (use Gerrit)
lgtm
4 years ago (2016-12-01 15:51:01 UTC) #36
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/2517843002/160001
4 years ago (2016-12-01 21:31:37 UTC) #39
commit-bot: I haz the power
Committed patchset #8 (id:160001)
4 years ago (2016-12-01 21:39:49 UTC) #42
commit-bot: I haz the power
4 years ago (2016-12-01 21:43:27 UTC) #44
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/833bf5f37ae5a52da4669ecd9a8cc60b838d8d25
Cr-Commit-Position: refs/heads/master@{#435722}

Powered by Google App Engine
This is Rietveld 408576698