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

Side by Side Diff: chrome/browser/automation/automation_provider_observers.h

Issue 10922002: Remove the translate pyauto test to chrome tests and all the supporting automation hooks. I've adde… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: take out data files so patch applies, will remove separately Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/automation/automation_provider_observers.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ 5 #ifndef CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ 6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 class AutomationProvider; 57 class AutomationProvider;
58 class BalloonCollection; 58 class BalloonCollection;
59 class Browser; 59 class Browser;
60 class ExtensionProcessManager; 60 class ExtensionProcessManager;
61 class ExtensionService; 61 class ExtensionService;
62 class InfoBarTabHelper; 62 class InfoBarTabHelper;
63 class Notification; 63 class Notification;
64 class Profile; 64 class Profile;
65 class SavePackage; 65 class SavePackage;
66 class TabContents; 66 class TabContents;
67 class TranslateInfoBarDelegate;
68 67
69 namespace automation { 68 namespace automation {
70 class Error; 69 class Error;
71 } 70 }
72 71
73 #if defined(OS_CHROMEOS) 72 #if defined(OS_CHROMEOS)
74 namespace chromeos { 73 namespace chromeos {
75 class ExistingUserController; 74 class ExistingUserController;
76 class WizardScreen; 75 class WizardScreen;
77 } 76 }
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 643
645 private: 644 private:
646 content::NotificationRegistrar registrar_; 645 content::NotificationRegistrar registrar_;
647 646
648 typedef std::map<std::string, int> EventDurationMap; 647 typedef std::map<std::string, int> EventDurationMap;
649 EventDurationMap durations_; 648 EventDurationMap durations_;
650 649
651 DISALLOW_COPY_AND_ASSIGN(MetricEventDurationObserver); 650 DISALLOW_COPY_AND_ASSIGN(MetricEventDurationObserver);
652 }; 651 };
653 652
654 class PageTranslatedObserver : public content::NotificationObserver {
655 public:
656 PageTranslatedObserver(AutomationProvider* automation,
657 IPC::Message* reply_message,
658 content::WebContents* web_contents);
659 virtual ~PageTranslatedObserver();
660
661 // Overridden from content::NotificationObserver:
662 virtual void Observe(int type,
663 const content::NotificationSource& source,
664 const content::NotificationDetails& details) OVERRIDE;
665
666 private:
667 content::NotificationRegistrar registrar_;
668 base::WeakPtr<AutomationProvider> automation_;
669 scoped_ptr<IPC::Message> reply_message_;
670
671 DISALLOW_COPY_AND_ASSIGN(PageTranslatedObserver);
672 };
673
674 class TabLanguageDeterminedObserver : public content::NotificationObserver {
675 public:
676 TabLanguageDeterminedObserver(AutomationProvider* automation,
677 IPC::Message* reply_message,
678 content::WebContents* web_contents,
679 TranslateInfoBarDelegate* translate_bar);
680 virtual ~TabLanguageDeterminedObserver();
681
682 // Overridden from content::NotificationObserver:
683 virtual void Observe(int type,
684 const content::NotificationSource& source,
685 const content::NotificationDetails& details) OVERRIDE;
686
687 private:
688 content::NotificationRegistrar registrar_;
689 base::WeakPtr<AutomationProvider> automation_;
690 scoped_ptr<IPC::Message> reply_message_;
691 content::WebContents* web_contents_;
692 TranslateInfoBarDelegate* translate_bar_;
693
694 DISALLOW_COPY_AND_ASSIGN(TabLanguageDeterminedObserver);
695 };
696
697 class InfoBarCountObserver : public content::NotificationObserver { 653 class InfoBarCountObserver : public content::NotificationObserver {
698 public: 654 public:
699 InfoBarCountObserver(AutomationProvider* automation, 655 InfoBarCountObserver(AutomationProvider* automation,
700 IPC::Message* reply_message, 656 IPC::Message* reply_message,
701 TabContents* tab_contents, 657 TabContents* tab_contents,
702 size_t target_count); 658 size_t target_count);
703 virtual ~InfoBarCountObserver(); 659 virtual ~InfoBarCountObserver();
704 660
705 // Overridden from content::NotificationObserver: 661 // Overridden from content::NotificationObserver:
706 virtual void Observe(int type, 662 virtual void Observe(int type,
(...skipping 1163 matching lines...) Expand 10 before | Expand all | Expand 10 after
1870 base::WeakPtr<AutomationProvider> automation_; 1826 base::WeakPtr<AutomationProvider> automation_;
1871 scoped_ptr<IPC::Message> reply_message_; 1827 scoped_ptr<IPC::Message> reply_message_;
1872 int new_window_id_; 1828 int new_window_id_;
1873 int num_loads_; 1829 int num_loads_;
1874 1830
1875 DISALLOW_COPY_AND_ASSIGN( 1831 DISALLOW_COPY_AND_ASSIGN(
1876 BrowserOpenedWithExistingProfileNotificationObserver); 1832 BrowserOpenedWithExistingProfileNotificationObserver);
1877 }; 1833 };
1878 1834
1879 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ 1835 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
OLDNEW
« 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