Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "content/renderer/autofill_dispatcher.h" | |
| 6 | |
| 7 #include "content/common/autofill_messages.h" | |
| 8 #include "content/renderer/render_view_impl.h" | |
| 9 | |
| 10 | |
| 11 AutofillDispatcher::AutofillDispatcher(RenderViewImpl* render_view) | |
| 12 : content::RenderViewObserver(render_view) { | |
| 13 } | |
| 14 | |
| 15 AutofillDispatcher::~AutofillDispatcher() {} | |
| 16 | |
| 17 bool AutofillDispatcher::OnMessageReceived(const IPC::Message& message) { | |
| 18 bool handled = true; | |
| 19 IPC_BEGIN_MESSAGE_MAP(AutofillDispatcher, message) | |
| 20 IPC_MESSAGE_HANDLER(AutofillMsg_SelectAutofillSuggestionAtIndex, | |
| 21 OnSelectAutofillSuggestionAtIndex) | |
| 22 IPC_MESSAGE_UNHANDLED(handled = false) | |
| 23 IPC_END_MESSAGE_MAP() | |
| 24 return handled; | |
| 25 } | |
| 26 | |
| 27 void AutofillDispatcher::OnSelectAutofillSuggestionAtIndex(int listIndex) { | |
| 28 NOTIMPLEMENTED(); | |
| 29 // TODO(jrg): enable once changes land in WebKit | |
| 30 // 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
| |
| 31 } | |
| OLD | NEW |