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

Issue 11479: New take at implementing autofill using the editor client API (Closed)

Created:
12 years, 1 month ago by jcampan
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

A new implementation of the autofill using the editor client API. This simplifies code as we don't need to listen for events on input elements, the editor client API is only triggered when the text changes. The only quirk we have to work around is that when the editor client API notifies us that the text has changed, the selection is not set properly, preventing us from reliably finding out if the caret is at the end of the text. To work around that issue, we post a task that does the autofill after the text change callback. BUG=None TEST=Trigger the autofill behavior with form and passwords. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=5742

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+209 lines, -695 lines) Patch
M webkit/build/glue/glue.vcproj View 2 chunks +0 lines, -16 lines 0 comments Download
D webkit/glue/autocomplete_input_listener.cc View 1 chunk +0 lines, -231 lines 0 comments Download
D webkit/glue/autocomplete_input_listener_unittest.cc View 1 chunk +0 lines, -227 lines 0 comments Download
M webkit/glue/dom_operations.cc View 2 chunks +1 line, -5 lines 0 comments Download
M webkit/glue/editor_client_impl.h View 4 chunks +11 lines, -10 lines 0 comments Download
M webkit/glue/editor_client_impl.cc View 1 8 chunks +84 lines, -37 lines 0 comments Download
D webkit/glue/form_autocomplete_listener.h View 1 chunk +0 lines, -40 lines 0 comments Download
D webkit/glue/form_autocomplete_listener.cc View 1 chunk +0 lines, -35 lines 0 comments Download
M webkit/glue/password_autocomplete_listener.h View 1 2 chunks +33 lines, -5 lines 0 comments Download
M webkit/glue/password_autocomplete_listener.cc View 1 chunk +30 lines, -0 lines 0 comments Download
M webkit/glue/password_autocomplete_listener_unittest.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M webkit/glue/webframe_impl.h View 1 2 3 chunks +22 lines, -10 lines 0 comments Download
M webkit/glue/webframe_impl.cc View 1 2 3 chunks +20 lines, -10 lines 0 comments Download
M webkit/glue/webframeloaderclient_impl.h View 1 chunk +0 lines, -5 lines 0 comments Download
M webkit/glue/webframeloaderclient_impl.cc View 5 chunks +6 lines, -58 lines 0 comments Download
M webkit/tools/test_shell/keyboard_unittest.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/tools/test_shell/test_shell_tests.vcproj View 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
jcampan
12 years, 1 month ago (2008-11-19 18:26:38 UTC) #1
darin (slow to review)
http://codereview.chromium.org/11479/diff/1/10 File webkit/glue/webframe_impl.h (right): http://codereview.chromium.org/11479/diff/1/10#newcode278 Line 278: RefPtr<WebCore::HTMLInputElement> input_element, this looks like an improper usage ...
12 years, 1 month ago (2008-11-19 18:33:45 UTC) #2
tim (not reviewing)
http://codereview.chromium.org/11479/diff/1/12 File webkit/glue/editor_client_impl.cc (right): http://codereview.chromium.org/11479/diff/1/12#newcode623 Line 623: // Don't attempt to autofill with too large ...
12 years, 1 month ago (2008-11-19 19:59:27 UTC) #3
jcampan
http://codereview.chromium.org/11479/diff/1/12 File webkit/glue/editor_client_impl.cc (right): http://codereview.chromium.org/11479/diff/1/12#newcode623 Line 623: // Don't attempt to autofill with too large ...
12 years, 1 month ago (2008-11-19 20:29:34 UTC) #4
tim (not reviewing)
http://codereview.chromium.org/11479/diff/1/12 File webkit/glue/editor_client_impl.cc (right): http://codereview.chromium.org/11479/diff/1/12#newcode642 Line 642: // Only autofill when there is some text ...
12 years, 1 month ago (2008-11-19 21:04:38 UTC) #5
jcampan
Tim, I see why I missed the hashmap, I was looking for specifically a HashMap<RefPtr<... ...
12 years, 1 month ago (2008-11-19 22:06:25 UTC) #6
tim (not reviewing)
12 years, 1 month ago (2008-11-19 23:33:23 UTC) #7
LGTM

Powered by Google App Engine
This is Rietveld 408576698