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

Unified Diff: components/autofill/content/browser/content_autofill_driver.cc

Issue 148413002: Add "previewing on hover" support for single-field autocomplete input (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and update code as per Ilya's comments Created 6 years, 9 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
Index: components/autofill/content/browser/content_autofill_driver.cc
diff --git a/components/autofill/content/browser/content_autofill_driver.cc b/components/autofill/content/browser/content_autofill_driver.cc
index 02aaf22f12a270655847b124e20b9d227c014c43..0748f5561cdef0a644edb9b92b30a250f807e31d 100644
--- a/components/autofill/content/browser/content_autofill_driver.cc
+++ b/components/autofill/content/browser/content_autofill_driver.cc
@@ -156,12 +156,20 @@ void ContentAutofillDriver::RendererShouldClearPreviewedForm() {
host->Send(new AutofillMsg_ClearPreviewedForm(host->GetRoutingID()));
}
-void ContentAutofillDriver::RendererShouldSetNodeText(
+void ContentAutofillDriver::RendererShouldFillFieldWithValue(
const base::string16& value) {
if (!RendererIsAvailable())
return;
content::RenderViewHost* host = web_contents()->GetRenderViewHost();
- host->Send(new AutofillMsg_SetNodeText(host->GetRoutingID(), value));
+ host->Send(new AutofillMsg_FillFieldWithValue(host->GetRoutingID(), value));
+}
+void ContentAutofillDriver::RendererShouldPreviewFieldWithValue(
+ const base::string16& value) {
+ if (!RendererIsAvailable())
+ return;
+ content::RenderViewHost* host = web_contents()->GetRenderViewHost();
+ host->Send(new AutofillMsg_PreviewFieldWithValue(host->GetRoutingID(),
+ value));
}
bool ContentAutofillDriver::OnMessageReceived(const IPC::Message& message) {

Powered by Google App Engine
This is Rietveld 408576698