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

Side by Side 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, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698