summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/autofill_helper.h
diff options
context:
space:
mode:
authordhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-20 01:04:26 +0000
committerdhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-20 01:04:26 +0000
commit7aab84ba9061a72fa5b82ecb738c3263e66ff079 (patch)
treede942533e3e31f9df88c3222c4d6cfe65c5cdc5f /chrome/renderer/autofill_helper.h
parent14eb15af3c97923a782f7f90ec3f4bdf0e142f93 (diff)
downloadchromium_src-7aab84ba9061a72fa5b82ecb738c3263e66ff079.zip
chromium_src-7aab84ba9061a72fa5b82ecb738c3263e66ff079.tar.gz
chromium_src-7aab84ba9061a72fa5b82ecb738c3263e66ff079.tar.bz2
Up/Down arrow keys no longer bring up autofill menu
Adds key down event handling to AutoFillHelper to replace deprecated queryAutofillSuggestions callback. BUG=62587 TEST=Manual, according to bug: Load fillable form, arrow up/down in input field, expect Autofill suggestions to show. Review URL: http://codereview.chromium.org/5206003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66858 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/autofill_helper.h')
-rw-r--r--chrome/renderer/autofill_helper.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/chrome/renderer/autofill_helper.h b/chrome/renderer/autofill_helper.h
index 13e7ab7..eaf4e0e 100644
--- a/chrome/renderer/autofill_helper.h
+++ b/chrome/renderer/autofill_helper.h
@@ -17,6 +17,7 @@ class RenderView;
namespace WebKit {
class WebInputElement;
+class WebKeyboardEvent;
class WebString;
}
@@ -85,10 +86,11 @@ class AutoFillHelper : public PageClickListener {
// WebViewClient editor call forwarded by the RenderView.
void TextDidChangeInTextField(const WebKit::WebInputElement& element);
- // Called when an input element in the page has been clicked.
- // |already_focused| is true if |element| was focused before it was clicked.
- void InputElementClicked(const WebKit::WebInputElement& element,
- bool already_focused);
+ // WebViewClient editor call forwarded by the RenderView. For lower level
+ // event translation. Specifically, for down/up key presses in an input
+ // element.
+ void KeyDownInTextField(const WebKit::WebInputElement& element,
+ const WebKit::WebKeyboardEvent& event);
private:
enum AutoFillAction {
@@ -122,9 +124,9 @@ class AutoFillHelper : public PageClickListener {
// |value| is the current text in the field, and |unique_id| is the selected
// profile's unique ID. |action| specifies whether to Fill or Preview the
// values returned from the AutoFillManager.
- void QueryAutoFillFormData(const WebKit::WebNode& node,
- int unique_id,
- AutoFillAction action);
+ void FillAutoFillFormData(const WebKit::WebNode& node,
+ int unique_id,
+ AutoFillAction action);
// Scans the given frame for forms and sends them up to the browser.
void SendForms(WebKit::WebFrame* frame);