Chromium Code Reviews| 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
|
| +} |