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

Unified Diff: content/renderer/autofill_dispatcher.cc

Issue 8353025: External autofill delegates. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Carnitasify Created 9 years, 2 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: content/renderer/autofill_dispatcher.cc
diff --git a/content/renderer/autofill_dispatcher.cc b/content/renderer/autofill_dispatcher.cc
new file mode 100644
index 0000000000000000000000000000000000000000..ba2c5714b2a3afa71efbe2e03bb1ca5e977b05c0
--- /dev/null
+++ b/content/renderer/autofill_dispatcher.cc
@@ -0,0 +1,31 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/renderer/autofill_dispatcher.h"
+
+#include "content/common/autofill_messages.h"
+#include "content/renderer/render_view_impl.h"
+
+
+AutofillDispatcher::AutofillDispatcher(RenderViewImpl* render_view)
+ : content::RenderViewObserver(render_view) {
+}
+
+AutofillDispatcher::~AutofillDispatcher() {}
+
+bool AutofillDispatcher::OnMessageReceived(const IPC::Message& message) {
+ bool handled = true;
+ IPC_BEGIN_MESSAGE_MAP(AutofillDispatcher, message)
+ IPC_MESSAGE_HANDLER(AutofillMsg_SelectAutofillSuggestionAtIndex,
+ OnSelectAutofillSuggestionAtIndex)
+ IPC_MESSAGE_UNHANDLED(handled = false)
+ IPC_END_MESSAGE_MAP()
+ return handled;
+}
+
+void AutofillDispatcher::OnSelectAutofillSuggestionAtIndex(int listIndex) {
+ NOTIMPLEMENTED();
+ // TODO(jrg): enable once changes land in WebKit
+ // render_view()->webview()->selectAutofillSuggestionAtIndex(listIndex);
Ilya Sherman 2011/10/26 11:09:58 What will |selectAutofillSuggestionAtIndex| do? I
John Grabowski 2011/10/27 03:05:59 Briefly, at this time WebKit owns the list of sugg
Ilya Sherman 2011/10/27 11:01:55 Hmm, ok. I think it might be easier to avoid addi
+}

Powered by Google App Engine
This is Rietveld 408576698