From 93b9d6948d212b630a115dc4b77bbe6bf2b3b671 Mon Sep 17 00:00:00 2001 From: "jam@chromium.org" Date: Wed, 13 Apr 2011 00:44:31 +0000 Subject: 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 --- chrome/renderer/autofill/autofill_agent.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'chrome/renderer/autofill/autofill_agent.h') 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, -- cgit v1.1