|
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
|
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
|
Total messages: 7 (0 generated)
|