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

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

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/editor_client_impl.cc ('k') | webkit/glue/form_autocomplete_listener.cc » ('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 #ifndef WEBKIT_GLUE_FORM_AUTOCOMPLETE_LISTENER_
6 #define WEBKIT_GLUE_FORM_AUTOCOMPLETE_LISTENER_
7
8 #include <string>
9
10 #include "webkit/glue/autocomplete_input_listener.h"
11
12 class WebViewDelegate;
13
14 namespace webkit_glue {
15
16 // This class listens for the user typing in a text input in a form and queries
17 // the browser for autofill information.
18
19 class FormAutocompleteListener : public AutocompleteInputListener {
20 public:
21 explicit FormAutocompleteListener(WebViewDelegate* webview_delegate);
22 virtual ~FormAutocompleteListener() { }
23
24 // AutocompleteInputListener implementation.
25 virtual void OnBlur(WebCore::HTMLInputElement* input_element,
26 const std::wstring& user_input) { }
27 virtual void OnInlineAutocompleteNeeded(WebCore::HTMLInputElement* element,
28 const std::wstring& user_input);
29
30 private:
31 // The delegate associated with the WebView that contains thhe input we are
32 // listening to.
33 WebViewDelegate* webview_delegate_;
34
35 DISALLOW_COPY_AND_ASSIGN(FormAutocompleteListener);
36 };
37
38 } // webkit_glue
39
40 #endif // WEBKIT_GLUE_FORM_AUTOCOMPLETE_LISTENER_
OLDNEW
« no previous file with comments | « webkit/glue/editor_client_impl.cc ('k') | webkit/glue/form_autocomplete_listener.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698