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

Unified Diff: webkit/glue/webview_impl.cc

Issue 155399: Add autofill dropdown support for password forms. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/glue/password_autocomplete_listener_unittest.cc ('k') | webkit/webkit.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webview_impl.cc
===================================================================
--- webkit/glue/webview_impl.cc (revision 19957)
+++ webkit/glue/webview_impl.cc (working copy)
@@ -180,6 +180,11 @@
// WebCore::PopupMenuClient implementation.
virtual void valueChanged(unsigned listIndex, bool fireEvents = true) {
text_field_->setValue(suggestions_[listIndex]);
+ EditorClientImpl* editor =
+ static_cast<EditorClientImpl*>(webview_->page()->editorClient());
+ DCHECK(editor);
+ editor->OnAutofillSuggestionAccepted(
+ static_cast<WebCore::HTMLInputElement*>(text_field_.get()));
}
virtual WebCore::String itemText(unsigned list_index) const {
« no previous file with comments | « webkit/glue/password_autocomplete_listener_unittest.cc ('k') | webkit/webkit.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698