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

Unified Diff: components/autofill/renderer/password_autofill_agent.cc

Issue 13601005: [Autofill] Give the PasswordAutofillAgent first shot at handling mouse events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase harder Created 7 years, 8 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 | « components/autofill/renderer/password_autofill_agent.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/renderer/password_autofill_agent.cc
diff --git a/components/autofill/renderer/password_autofill_agent.cc b/components/autofill/renderer/password_autofill_agent.cc
index c76b74585d4674074e5aea22c29c58d060077e15..d266757d0dea0e9ab199ff47dd80101dc3d4505f 100644
--- a/components/autofill/renderer/password_autofill_agent.cc
+++ b/components/autofill/renderer/password_autofill_agent.cc
@@ -334,8 +334,18 @@ bool PasswordAutofillAgent::DidClearAutofillSelection(
return FindLoginInfo(node, &input, &password);
}
+bool PasswordAutofillAgent::ShowSuggestions(
+ const WebKit::WebInputElement& element) {
+ LoginToPasswordInfoMap::const_iterator iter =
+ login_to_password_info_.find(element);
+ if (iter == login_to_password_info_.end())
+ return false;
+
+ return ShowSuggestionPopup(iter->second.fill_data, element);
+}
+
void PasswordAutofillAgent::SendPasswordForms(WebKit::WebFrame* frame,
- bool only_visible) {
+ bool only_visible) {
// Make sure that this security origin is allowed to use password manager.
WebKit::WebSecurityOrigin origin = frame->document().securityOrigin();
if (!origin.canAccessPasswordManager())
« no previous file with comments | « components/autofill/renderer/password_autofill_agent.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698