summaryrefslogtreecommitdiffstats
path: root/webkit/glue/editor_client_impl.h
diff options
context:
space:
mode:
authortim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-14 00:19:48 +0000
committertim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-14 00:19:48 +0000
commit5c2ac85b5f50766b3fe31af931f1b2500e463bfd (patch)
tree147f50bef6f7fd32850d3df06280dc974ae72065 /webkit/glue/editor_client_impl.h
parente3a3f854c2d09b87cf1373eeaaf26cdb6decb08b (diff)
downloadchromium_src-5c2ac85b5f50766b3fe31af931f1b2500e463bfd.zip
chromium_src-5c2ac85b5f50766b3fe31af931f1b2500e463bfd.tar.gz
chromium_src-5c2ac85b5f50766b3fe31af931f1b2500e463bfd.tar.bz2
Add autofill dropdown support for password forms.
BUG=5406 Review URL: http://codereview.chromium.org/155399 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20585 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/editor_client_impl.h')
-rw-r--r--webkit/glue/editor_client_impl.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/webkit/glue/editor_client_impl.h b/webkit/glue/editor_client_impl.h
index 4bacad2a..ad133a7 100644
--- a/webkit/glue/editor_client_impl.h
+++ b/webkit/glue/editor_client_impl.h
@@ -124,6 +124,13 @@ class EditorClientImpl : public WebCore::EditorClient {
// otherwise.
virtual bool ShowFormAutofillForNode(WebCore::Node* node);
+ // Notification that the text changed in |text_field| due to acceptance of
+ // a suggestion provided by an autofill popup. Having a separate callback
+ // in this case is a simple way to break the cycle that would otherwise occur
+ // if textDidChangeInTextField was called.
+ virtual void OnAutofillSuggestionAccepted(
+ WebCore::HTMLInputElement* text_field);
+
private:
void ModifySelection(WebCore::Frame* frame,
WebCore::KeyboardEvent* event);
@@ -173,7 +180,7 @@ class EditorClientImpl : public WebCore::EditorClient {
bool ShouldSpellcheckByDefault();
// Whether the last entered key was a backspace.
- bool backspace_pressed_;
+ bool backspace_or_delete_pressed_;
// This flag is set to false if spell check for this editor is manually
// turned off. The default setting is SPELLCHECK_AUTOMATIC.