summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/autofill/autofill_agent.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-13 00:44:31 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-13 00:44:31 +0000
commit93b9d6948d212b630a115dc4b77bbe6bf2b3b671 (patch)
tree92e02d514f2b44cdd2b7f82063ed3e91af3773bf /chrome/renderer/autofill/autofill_agent.h
parent71504b42e176b37b9324897a53908df5ba6c723e (diff)
downloadchromium_src-93b9d6948d212b630a115dc4b77bbe6bf2b3b671.zip
chromium_src-93b9d6948d212b630a115dc4b77bbe6bf2b3b671.tar.gz
chromium_src-93b9d6948d212b630a115dc4b77bbe6bf2b3b671.tar.bz2
Move code that talks to spelling and translate out of content. I create ChromeRenderObserver, which is a RenderViewObserver for the Chrome layer. Also, I added a TranslateTabHelper to hold the per-tab language data and moved LanguageState back to chrome since it's not used by content.
Review URL: http://codereview.chromium.org/6824068 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81341 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/autofill/autofill_agent.h')
-rw-r--r--chrome/renderer/autofill/autofill_agent.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/renderer/autofill/autofill_agent.h b/chrome/renderer/autofill/autofill_agent.h
index c3255fb..ba7dba9 100644
--- a/chrome/renderer/autofill/autofill_agent.h
+++ b/chrome/renderer/autofill/autofill_agent.h
@@ -38,6 +38,10 @@ class AutofillAgent : public RenderViewObserver,
PasswordAutofillManager* password_autofill_manager);
virtual ~AutofillAgent();
+ // Called when the translate helper has finished translating the page. We
+ // use this signal to re-scan the page for forms.
+ void FrameTranslated(WebKit::WebFrame* frame);
+
// WebKit::WebAutoFillClient implementation. Public for tests.
virtual void didAcceptAutoFillSuggestion(const WebKit::WebNode& node,
const WebKit::WebString& value,
@@ -71,7 +75,6 @@ class AutofillAgent : public RenderViewObserver,
virtual void FrameWillClose(WebKit::WebFrame* frame);
virtual void WillSubmitForm(WebKit::WebFrame* frame,
const WebKit::WebFormElement& form);
- virtual void FrameTranslated(WebKit::WebFrame* frame);
// PageClickListener implementation:
virtual bool InputElementClicked(const WebKit::WebInputElement& element,