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

Issue 51933002: [rAC, OSX] Autofill popup should be shown on 2nd click. (Closed)

Created:
7 years, 1 month ago by groby-ooo-7-16
Modified:
7 years, 1 month ago
CC:
chromium-reviews, benquan, Dane Wallinga, dyu1, estade+watch_chromium.org, Ilya Sherman, rouslan+autofillwatch_chromium.org
Visibility:
Public.

Description

[rAC, OSX] Autofill popup should be shown on 2nd click. Desired behavior: Clicking on a field or giving it focus via tab should result in the validation error message coming up, if any. Clicking on an already focused field should toggle autofill suggestions with validation messages. Leaving an input field with either a validation message or an autofill suggestion should hide both. The tricky part: distinguishing mouse clicks that would give focus, and mouse clicks that are on a focused field. Since mouseDown: messages in OSX are only sent to fields that already have firstResponder status, this requires a bit of trickery - this CL exploits the fact that for an NSTextField, the first click goes to the NSTextField, and subsequent ones go to the field editor. Bonus trickery: Rapid clicking on an NSTextField prevents the field editor from taking over until the user has calmed down, so the code filters only the first click after becomeFirstResponder. R=rsesek@chromium.org BUG=308156 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=232970

Patch Set 1 #

Total comments: 25

Patch Set 2 : Review fixes. #

Patch Set 3 : More review fixes. #

Patch Set 4 : Missing fixes. #

Total comments: 6

Patch Set 5 : More review fixes. #

Total comments: 2

Patch Set 6 : Review fix. #

Patch Set 7 : Fix test helper. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -9 lines) Patch
M chrome/browser/ui/cocoa/autofill/autofill_details_container.mm View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.mm View 1 2 3 4 5 5 chunks +44 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/autofill/autofill_input_field.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/autofill/autofill_section_container.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/autofill/autofill_section_container.mm View 1 2 3 4 5 6 3 chunks +13 lines, -6 lines 0 comments Download
M chrome/browser/ui/cocoa/autofill/autofill_textfield.h View 1 2 3 4 1 chunk +14 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/autofill/autofill_textfield.mm View 1 2 3 2 chunks +21 lines, -1 line 0 comments Download

Messages

Total messages: 25 (0 generated)
groby-ooo-7-16
7 years, 1 month ago (2013-10-30 01:20:06 UTC) #1
Robert Sesek
+shess for his knowledge of NSTextField and their editors. https://codereview.chromium.org/51933002/diff/1/chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.mm File chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.mm (right): https://codereview.chromium.org/51933002/diff/1/chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.mm#newcode257 chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.mm:257: ...
7 years, 1 month ago (2013-10-30 14:44:31 UTC) #2
groby-ooo-7-16
rsesek: Addressed comments shess: PTAL https://codereview.chromium.org/51933002/diff/1/chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.mm File chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.mm (right): https://codereview.chromium.org/51933002/diff/1/chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.mm#newcode257 chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.mm:257: NSLog(@"FieldEditor mouseDown"); On 2013/10/30 ...
7 years, 1 month ago (2013-10-30 17:38:10 UTC) #3
Scott Hess - ex-Googler
From the CL description, I'm not entirely clear I understand why the trickery is necessary. ...
7 years, 1 month ago (2013-10-30 17:57:23 UTC) #4
groby-ooo-7-16
I need to distinguish between "first click on field iff it made the field firstResponder" ...
7 years, 1 month ago (2013-10-30 19:13:36 UTC) #5
groby-ooo-7-16
PTAL https://codereview.chromium.org/51933002/diff/1/chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.mm File chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.mm (right): https://codereview.chromium.org/51933002/diff/1/chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.mm#newcode264 chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.mm:264: [[inputField delegate] onMouseDown:inputField]; On 2013/10/30 19:13:36, groby wrote: ...
7 years, 1 month ago (2013-10-31 00:02:43 UTC) #6
groby-ooo-7-16
Ping?
7 years, 1 month ago (2013-10-31 22:56:10 UTC) #7
Scott Hess - ex-Googler
On 2013/10/30 19:13:36, groby wrote: > I need to distinguish between "first click on field ...
7 years, 1 month ago (2013-11-01 00:37:07 UTC) #8
groby-ooo-7-16
It's not special at all - I was just outlining the three cases since they're ...
7 years, 1 month ago (2013-11-01 03:48:44 UTC) #9
Scott Hess - ex-Googler
LGTM. Thanks for bearing with me. https://codereview.chromium.org/51933002/diff/1/chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.mm File chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.mm (right): https://codereview.chromium.org/51933002/diff/1/chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.mm#newcode264 chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.mm:264: [[inputField delegate] onMouseDown:inputField]; ...
7 years, 1 month ago (2013-11-02 00:26:21 UTC) #10
groby-ooo-7-16
Thanks for reviewing it! https://codereview.chromium.org/51933002/diff/170001/chrome/browser/ui/cocoa/autofill/autofill_textfield.h File chrome/browser/ui/cocoa/autofill/autofill_textfield.h (right): https://codereview.chromium.org/51933002/diff/170001/chrome/browser/ui/cocoa/autofill/autofill_textfield.h#newcode13 chrome/browser/ui/cocoa/autofill/autofill_textfield.h:13: @protocol AutofillTextFieldDelegate On 2013/11/02 00:26:22, ...
7 years, 1 month ago (2013-11-02 02:40:51 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/groby@chromium.org/51933002/330001
7 years, 1 month ago (2013-11-02 02:41:35 UTC) #12
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=217996
7 years, 1 month ago (2013-11-02 04:39:25 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/groby@chromium.org/51933002/330001
7 years, 1 month ago (2013-11-04 08:36:23 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/groby@chromium.org/51933002/330001
7 years, 1 month ago (2013-11-04 08:36:57 UTC) #15
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=184104
7 years, 1 month ago (2013-11-04 11:31:10 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/groby@chromium.org/51933002/690001
7 years, 1 month ago (2013-11-04 21:18:48 UTC) #17
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=218945
7 years, 1 month ago (2013-11-05 01:48:36 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/groby@chromium.org/51933002/690001
7 years, 1 month ago (2013-11-05 02:02:25 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/groby@chromium.org/51933002/690001
7 years, 1 month ago (2013-11-05 03:08:04 UTC) #20
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 1 month ago (2013-11-05 04:24:47 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/groby@chromium.org/51933002/690001
7 years, 1 month ago (2013-11-05 04:28:39 UTC) #22
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=184875
7 years, 1 month ago (2013-11-05 07:36:17 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/groby@chromium.org/51933002/690001
7 years, 1 month ago (2013-11-05 07:38:26 UTC) #24
commit-bot: I haz the power
7 years, 1 month ago (2013-11-05 13:58:23 UTC) #25
Message was sent while issue was closed.
Change committed as 232970

Powered by Google App Engine
This is Rietveld 408576698