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

Issue 8885: Implementation of the UI part of the autofill (Closed)

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

Description

This CL adds the autofill UI in forms. When the user types text in a text field in a form, the renderer queries the browser for suggestion based on the entered text and displays the suggestions in a popup. Listeners are set on the form text field in a similar fashion than for password save. The popup showing the suggestion uses the same mechanism as the select popup. Note that a difference between the select and the autofill popup is that the autofill should not take focus, so the page still has focus and the user can still type in while it shows. The creation of the render widget was modified for that purpose so we can specify the popup should not be focused when shown. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=4804

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+769 lines, -134 lines) Patch
M base/string_util.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -1 line 0 comments Download
M base/string_util.cc View 1 2 3 4 5 6 7 8 9 1 chunk +13 lines, -0 lines 0 comments Download
M base/string_util_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +21 lines, -5 lines 0 comments Download
M chrome/browser/render_view_host.h View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/render_view_host.cc View 1 2 3 4 5 6 7 8 9 3 chunks +42 lines, -2 lines 0 comments Download
M chrome/browser/render_view_host_delegate.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/render_widget_helper.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/render_widget_helper.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/render_widget_host_view_win.h View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/render_widget_host_view_win.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/resource_message_filter.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resource_message_filter.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/web_contents_view.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/web_contents_view.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/web_contents_view_win.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/web_contents_view_win.cc View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/common/render_messages_internal.h View 1 2 3 4 5 6 7 8 9 4 chunks +20 lines, -3 lines 0 comments Download
M chrome/renderer/render_view.h View 1 2 3 4 5 6 7 8 9 4 chunks +16 lines, -1 line 0 comments Download
M chrome/renderer/render_view.cc View 1 2 3 4 5 6 7 8 9 5 chunks +32 lines, -4 lines 0 comments Download
M chrome/renderer/render_widget.h View 1 2 3 4 5 6 7 8 9 3 chunks +7 lines, -2 lines 0 comments Download
M chrome/renderer/render_widget.cc View 1 2 3 4 5 6 7 8 9 4 chunks +9 lines, -5 lines 0 comments Download
M chrome/renderer/render_widget_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -2 lines 0 comments Download
M webkit/build/glue/glue.vcproj View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -0 lines 0 comments Download
M webkit/build/port/port.vcproj View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M webkit/glue/SConscript View 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M webkit/glue/autocomplete_input_listener.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M webkit/glue/chrome_client_impl.h View 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M webkit/glue/chrome_client_impl.cc View 7 8 9 1 chunk +5 lines, -3 lines 0 comments Download
A webkit/glue/form_autocomplete_listener.h View 2 3 4 5 6 7 1 chunk +46 lines, -0 lines 0 comments Download
A webkit/glue/form_autocomplete_listener.cc View 2 3 4 5 6 7 8 1 chunk +35 lines, -0 lines 0 comments Download
M webkit/glue/password_autocomplete_listener.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M webkit/glue/webframeloaderclient_impl.h View 1 2 3 4 5 6 7 8 9 3 chunks +8 lines, -0 lines 0 comments Download
M webkit/glue/webframeloaderclient_impl.cc View 1 2 3 4 5 6 7 8 9 6 chunks +57 lines, -3 lines 0 comments Download
M webkit/glue/webplugin_impl_mac.mm View 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M webkit/glue/webview.h View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -0 lines 0 comments Download
M webkit/glue/webview_delegate.h View 1 2 3 4 5 6 7 8 9 2 chunks +10 lines, -1 line 0 comments Download
M webkit/glue/webview_impl.h View 1 2 3 4 5 6 7 8 9 4 chunks +16 lines, -0 lines 0 comments Download
M webkit/glue/webview_impl.cc View 1 2 3 4 5 6 7 8 9 12 chunks +209 lines, -4 lines 0 comments Download
M webkit/port/page/chromium/ChromeClientChromium.h View 1 chunk +3 lines, -1 line 0 comments Download
A webkit/port/platform/chromium/PopupMenuChromium.h View 1 2 3 4 5 6 7 8 9 1 chunk +82 lines, -0 lines 0 comments Download
M webkit/port/platform/chromium/PopupMenuChromium.cpp View 1 2 3 4 5 6 7 8 9 9 chunks +59 lines, -74 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
jcampan
Tim, could you look at: autocomplete_input_listener.h password_autocomplete_listener.cc webframeloaderclient_impl.[h,cc] form_autocomplete_listener.[h, cc] glue.vcproj base/string_util.]h,cc] base/string_util_unittest.cc Matt, could ...
12 years, 1 month ago (2008-10-29 19:35:59 UTC) #1
Matt Perry
Looks good for the most part. I'm surprised the PopupMenu code didn't need more changes ...
12 years, 1 month ago (2008-10-29 21:41:59 UTC) #2
tim (not reviewing)
mostly nits/suggestions. can't wait to try this out! http://codereview.chromium.org/8885/diff/76/94 File base/string_util.cc (right): http://codereview.chromium.org/8885/diff/76/94#newcode668 Line 668: ...
12 years, 1 month ago (2008-10-29 22:51:25 UTC) #3
jcampan
On 2008/10/29 21:41:59, mpcomplete wrote: > Looks good for the most part. I'm surprised the ...
12 years, 1 month ago (2008-10-30 00:39:57 UTC) #4
jcampan
http://codereview.chromium.org/8885/diff/76/94 File base/string_util.cc (right): http://codereview.chromium.org/8885/diff/76/94#newcode668 Line 668: if (search.size() > str.size()) On 2008/10/29 22:51:25, timsteele ...
12 years, 1 month ago (2008-10-30 00:40:17 UTC) #5
Matt Perry
LGTM
12 years, 1 month ago (2008-10-30 00:44:50 UTC) #6
tim (not reviewing)
12 years, 1 month ago (2008-10-30 01:30:04 UTC) #7
LGTM

Powered by Google App Engine
This is Rietveld 408576698