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

Unified Diff: chrome/browser/automation/automation_provider_observers.h

Issue 10917042: Revert 154453 - Remove the translate pyauto test to chrome tests and all the supporting automation … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/automation/automation_provider_observers.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/automation_provider_observers.h
===================================================================
--- chrome/browser/automation/automation_provider_observers.h (revision 154462)
+++ chrome/browser/automation/automation_provider_observers.h (working copy)
@@ -64,6 +64,7 @@
class Profile;
class SavePackage;
class TabContents;
+class TranslateInfoBarDelegate;
namespace automation {
class Error;
@@ -650,6 +651,49 @@
DISALLOW_COPY_AND_ASSIGN(MetricEventDurationObserver);
};
+class PageTranslatedObserver : public content::NotificationObserver {
+ public:
+ PageTranslatedObserver(AutomationProvider* automation,
+ IPC::Message* reply_message,
+ content::WebContents* web_contents);
+ virtual ~PageTranslatedObserver();
+
+ // Overridden from content::NotificationObserver:
+ virtual void Observe(int type,
+ const content::NotificationSource& source,
+ const content::NotificationDetails& details) OVERRIDE;
+
+ private:
+ content::NotificationRegistrar registrar_;
+ base::WeakPtr<AutomationProvider> automation_;
+ scoped_ptr<IPC::Message> reply_message_;
+
+ DISALLOW_COPY_AND_ASSIGN(PageTranslatedObserver);
+};
+
+class TabLanguageDeterminedObserver : public content::NotificationObserver {
+ public:
+ TabLanguageDeterminedObserver(AutomationProvider* automation,
+ IPC::Message* reply_message,
+ content::WebContents* web_contents,
+ TranslateInfoBarDelegate* translate_bar);
+ virtual ~TabLanguageDeterminedObserver();
+
+ // Overridden from content::NotificationObserver:
+ virtual void Observe(int type,
+ const content::NotificationSource& source,
+ const content::NotificationDetails& details) OVERRIDE;
+
+ private:
+ content::NotificationRegistrar registrar_;
+ base::WeakPtr<AutomationProvider> automation_;
+ scoped_ptr<IPC::Message> reply_message_;
+ content::WebContents* web_contents_;
+ TranslateInfoBarDelegate* translate_bar_;
+
+ DISALLOW_COPY_AND_ASSIGN(TabLanguageDeterminedObserver);
+};
+
class InfoBarCountObserver : public content::NotificationObserver {
public:
InfoBarCountObserver(AutomationProvider* automation,
« no previous file with comments | « no previous file | chrome/browser/automation/automation_provider_observers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698