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

Unified Diff: components/autofill/content/browser/autofill_driver_impl.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: Update test code 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/autofill_driver_impl.cc
diff --git a/components/autofill/content/browser/autofill_driver_impl.cc b/components/autofill/content/browser/autofill_driver_impl.cc
index ab30c8d66e4f3b5f0f47c0596856ab3c2c4c7498..cc51e76d94f5e4dcb01510f7bd89411b5ca6d60f 100644
--- a/components/autofill/content/browser/autofill_driver_impl.cc
+++ b/components/autofill/content/browser/autofill_driver_impl.cc
@@ -156,12 +156,21 @@ void AutofillDriverImpl::RendererShouldClearPreviewedForm() {
host->Send(new AutofillMsg_ClearPreviewedForm(host->GetRoutingID()));
}
-void AutofillDriverImpl::RendererShouldSetNodeText(
+void AutofillDriverImpl::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 AutofillDriverImpl::RendererShouldPreviewFieldWithValue(
+ const base::string16& value) {
+ if (!RendererIsAvailable())
+ return;
+ content::RenderViewHost* host = web_contents()->GetRenderViewHost();
+ host->Send(new AutofillMsg_PreviewFieldWithValue(host->GetRoutingID(),
+ value));
}
bool AutofillDriverImpl::OnMessageReceived(const IPC::Message& message) {

Powered by Google App Engine
This is Rietveld 408576698