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