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

Side by Side Diff: webkit/glue/form_autocomplete_listener.cc

Issue 11479: New take at implementing autofill using the editor client API (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 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
« no previous file with comments | « webkit/glue/form_autocomplete_listener.h ('k') | webkit/glue/password_autocomplete_listener.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2006-2008 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 "config.h"
6
7 #include "webkit/glue/form_autocomplete_listener.h"
8
9 MSVC_PUSH_WARNING_LEVEL(0);
10 #include "HTMLInputElement.h"
11 MSVC_POP_WARNING();
12
13 #undef LOG
14
15 #include "webkit/glue/autocomplete_input_listener.h"
16 #include "webkit/glue/glue_util.h"
17 #include "webkit/glue/webview_delegate.h"
18
19 namespace webkit_glue {
20
21 FormAutocompleteListener::FormAutocompleteListener(
22 WebViewDelegate* webview_delegate)
23 : webview_delegate_(webview_delegate) {
24 }
25
26 void FormAutocompleteListener::OnInlineAutocompleteNeeded(
27 WebCore::HTMLInputElement* input_element,
28 const std::wstring& user_input) {
29 std::wstring name = webkit_glue::StringToStdWString(input_element->
30 name().string());
31 webview_delegate_->QueryFormFieldAutofill(name, user_input,
32 reinterpret_cast<int64>(input_element));
33 }
34
35 } // namespace
OLDNEW
« no previous file with comments | « webkit/glue/form_autocomplete_listener.h ('k') | webkit/glue/password_autocomplete_listener.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698