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

Issue 1038503003: Autofill OSX: Add PermanentErrorMessage box and label. (Closed)

Created:
5 years, 9 months ago by bondd
Modified:
5 years, 9 months ago
CC:
chromium-reviews, estade+watch_chromium.org, rouslan+autofillwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Autofill OSX: Add PermanentErrorMessage box and label. Adds red permanent error message banner between title and instructions. Error messages passed to CardUnmaskPromptViewBridge::GotVerificationResult() with allow_retry == false are displayed. The banner is hidden until an error message is passed to GotVerificationResult(). Note that the red banner does not extend to the full width of the dialog (see screenshot attached to bug). Extending to the full dialog width requires significant refactoring of the layout code, so I'm doing it in two parts. This CL adds the banner functionality, and a separate CL will fix the layout. Dialog will re-layout to fit entire message if a multiline message is set. Also adds an ASCII art diagram of the dialog layout. Screenshot attached to bug: https://code.google.com/p/chromium/issues/detail?id=448572#c15 BUG=448572 Committed: https://crrev.com/48a0519f92bfedc80eecef85436f707ab068ccbf Cr-Commit-Position: refs/heads/master@{#322441}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Replace +sizeTextField with WrapOrSizeToFit() and make label autoresize. #

Total comments: 8

Patch Set 3 : Address groby@ comments on patch set 2. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -26 lines) Patch
M chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm View 1 2 8 chunks +81 lines, -26 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
bondd
5 years, 9 months ago (2015-03-25 02:59:43 UTC) #4
groby-ooo-7-16
https://codereview.chromium.org/1038503003/diff/20001/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm File chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm (right): https://codereview.chromium.org/1038503003/diff/20001/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm#newcode222 chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm:222: - (void)setPermanentErrorMessage:(const base::string16&)text { OK, I still have to ...
5 years, 9 months ago (2015-03-25 19:32:36 UTC) #5
bondd
https://codereview.chromium.org/1038503003/diff/20001/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm File chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm (right): https://codereview.chromium.org/1038503003/diff/20001/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm#newcode222 chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm:222: - (void)setPermanentErrorMessage:(const base::string16&)text { On 2015/03/25 19:32:35, groby wrote: ...
5 years, 9 months ago (2015-03-26 00:17:59 UTC) #6
groby-ooo-7-16
https://codereview.chromium.org/1038503003/diff/40001/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm File chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm (right): https://codereview.chromium.org/1038503003/diff/40001/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm#newcode31 chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm:31: const SkColor kPermanentErrorTextColor = 0xffffffff; SkColor_WHITE; https://codereview.chromium.org/1038503003/diff/40001/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm#newcode32 chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm:32: const ...
5 years, 9 months ago (2015-03-26 01:35:27 UTC) #7
bondd
https://codereview.chromium.org/1038503003/diff/40001/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm File chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm (right): https://codereview.chromium.org/1038503003/diff/40001/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm#newcode31 chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm:31: const SkColor kPermanentErrorTextColor = 0xffffffff; On 2015/03/26 01:35:27, groby ...
5 years, 9 months ago (2015-03-26 02:54:29 UTC) #8
groby-ooo-7-16
lgtm
5 years, 9 months ago (2015-03-26 17:53:39 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1038503003/60001
5 years, 9 months ago (2015-03-26 18:04:07 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:60001)
5 years, 9 months ago (2015-03-26 19:10:13 UTC) #12
commit-bot: I haz the power
5 years, 9 months ago (2015-03-26 19:10:57 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/48a0519f92bfedc80eecef85436f707ab068ccbf
Cr-Commit-Position: refs/heads/master@{#322441}

Powered by Google App Engine
This is Rietveld 408576698