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

Side by Side 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, 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;
67 68
68 namespace automation { 69 namespace automation {
69 class Error; 70 class Error;
70 } 71 }
71 72
72 #if defined(OS_CHROMEOS) 73 #if defined(OS_CHROMEOS)
73 namespace chromeos { 74 namespace chromeos {
74 class ExistingUserController; 75 class ExistingUserController;
75 class WizardScreen; 76 class WizardScreen;
76 } 77 }
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 644
644 private: 645 private:
645 content::NotificationRegistrar registrar_; 646 content::NotificationRegistrar registrar_;
646 647
647 typedef std::map<std::string, int> EventDurationMap; 648 typedef std::map<std::string, int> EventDurationMap;
648 EventDurationMap durations_; 649 EventDurationMap durations_;
649 650
650 DISALLOW_COPY_AND_ASSIGN(MetricEventDurationObserver); 651 DISALLOW_COPY_AND_ASSIGN(MetricEventDurationObserver);
651 }; 652 };
652 653
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
653 class InfoBarCountObserver : public content::NotificationObserver { 697 class InfoBarCountObserver : public content::NotificationObserver {
654 public: 698 public:
655 InfoBarCountObserver(AutomationProvider* automation, 699 InfoBarCountObserver(AutomationProvider* automation,
656 IPC::Message* reply_message, 700 IPC::Message* reply_message,
657 TabContents* tab_contents, 701 TabContents* tab_contents,
658 size_t target_count); 702 size_t target_count);
659 virtual ~InfoBarCountObserver(); 703 virtual ~InfoBarCountObserver();
660 704
661 // Overridden from content::NotificationObserver: 705 // Overridden from content::NotificationObserver:
662 virtual void Observe(int type, 706 virtual void Observe(int type,
(...skipping 1163 matching lines...) Expand 10 before | Expand all | Expand 10 after
1826 base::WeakPtr<AutomationProvider> automation_; 1870 base::WeakPtr<AutomationProvider> automation_;
1827 scoped_ptr<IPC::Message> reply_message_; 1871 scoped_ptr<IPC::Message> reply_message_;
1828 int new_window_id_; 1872 int new_window_id_;
1829 int num_loads_; 1873 int num_loads_;
1830 1874
1831 DISALLOW_COPY_AND_ASSIGN( 1875 DISALLOW_COPY_AND_ASSIGN(
1832 BrowserOpenedWithExistingProfileNotificationObserver); 1876 BrowserOpenedWithExistingProfileNotificationObserver);
1833 }; 1877 };
1834 1878
1835 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ 1879 #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