summaryrefslogtreecommitdiffstats
path: root/chrome/test/ui_test_utils.h
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-10 15:52:27 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-10 15:52:27 +0000
commit43211582b1fa8c69136385250e7b0446cf364b5c (patch)
tree655ab01543012b6fd5699dee8fab92876959b7d9 /chrome/test/ui_test_utils.h
parentd43970a7ceee5fc5433787b0f28b64234a4039f2 (diff)
downloadchromium_src-43211582b1fa8c69136385250e7b0446cf364b5c.zip
chromium_src-43211582b1fa8c69136385250e7b0446cf364b5c.tar.gz
chromium_src-43211582b1fa8c69136385250e7b0446cf364b5c.tar.bz2
Moving notification types which are chrome specific to a new header file chrome_notification_types.h.
This file lives in chrome\common. The chrome specific notifications start from NOTIFICATION_CONTENT_END which defines the end of the enum used by content to define notification types. The notificaton_type.h file in content\common has been renamed to content_notification_types.h BUG=76698 Review URL: http://codereview.chromium.org/7327007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91972 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/ui_test_utils.h')
-rw-r--r--chrome/test/ui_test_utils.h27
1 files changed, 13 insertions, 14 deletions
diff --git a/chrome/test/ui_test_utils.h b/chrome/test/ui_test_utils.h
index c7c126c..a01cdae 100644
--- a/chrome/test/ui_test_utils.h
+++ b/chrome/test/ui_test_utils.h
@@ -37,7 +37,6 @@ class FilePath;
class GURL;
class MessageLoop;
class NavigationController;
-class NotificationType;
class Profile;
class RenderViewHost;
class RenderWidgetHost;
@@ -217,17 +216,17 @@ bool IsViewFocused(const Browser* browser, ViewID vid);
void ClickOnView(const Browser* browser, ViewID vid);
// Blocks until a notification for given |type| is received.
-void WaitForNotification(NotificationType type);
+void WaitForNotification(int type);
// Blocks until a notification for given |type| from the specified |source|
// is received.
-void WaitForNotificationFrom(NotificationType type,
+void WaitForNotificationFrom(int type,
const NotificationSource& source);
// Register |observer| for the given |type| and |source| and run
// the message loop until the observer posts a quit task.
void RegisterAndWait(NotificationObserver* observer,
- NotificationType type,
+ int type,
const NotificationSource& source);
// Blocks until |model| finishes loading.
@@ -268,7 +267,7 @@ bool SendKeyPressAndWait(const Browser* browser,
bool shift,
bool alt,
bool command,
- NotificationType type,
+ int type,
const NotificationSource& source) WARN_UNUSED_RESULT;
// Run a message loop only for the specified amount of time.
@@ -364,7 +363,7 @@ class TestNotificationObserver : public NotificationObserver {
}
// NotificationObserver:
- virtual void Observe(NotificationType type,
+ virtual void Observe(int type,
const NotificationSource& source,
const NotificationDetails& details);
@@ -390,7 +389,7 @@ class WindowedNotificationObserver : public NotificationObserver {
// Register to listen for notifications of the given type from either a
// specific source, or from all sources if |source| is
// NotificationService::AllSources().
- WindowedNotificationObserver(NotificationType notification_type,
+ WindowedNotificationObserver(int notification_type,
const NotificationSource& source);
virtual ~WindowedNotificationObserver();
@@ -420,7 +419,7 @@ class WindowedNotificationObserver : public NotificationObserver {
void WaitFor(const NotificationSource& source);
// NotificationObserver:
- virtual void Observe(NotificationType type,
+ virtual void Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) OVERRIDE;
@@ -442,7 +441,7 @@ template <class U>
class WindowedNotificationObserverWithDetails
: public WindowedNotificationObserver {
public:
- WindowedNotificationObserverWithDetails(NotificationType notification_type,
+ WindowedNotificationObserverWithDetails(int notification_type,
const NotificationSource& source)
: WindowedNotificationObserver(notification_type, source) {}
@@ -456,7 +455,7 @@ class WindowedNotificationObserverWithDetails
return true;
}
- virtual void Observe(NotificationType type,
+ virtual void Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
const U* details_ptr = Details<U>(details).ptr();
@@ -486,7 +485,7 @@ class TitleWatcher : public NotificationObserver {
private:
// NotificationObserver
- virtual void Observe(NotificationType type,
+ virtual void Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) OVERRIDE;
@@ -509,7 +508,7 @@ bool SendKeyPressAndWaitWithDetails(
bool shift,
bool alt,
bool command,
- NotificationType type,
+ int type,
const NotificationSource& source,
const Details<U>& details) WARN_UNUSED_RESULT;
@@ -521,7 +520,7 @@ bool SendKeyPressAndWaitWithDetails(
bool shift,
bool alt,
bool command,
- NotificationType type,
+ int type,
const NotificationSource& source,
const Details<U>& details) {
WindowedNotificationObserverWithDetails<U> observer(type, source);
@@ -559,7 +558,7 @@ class DOMMessageQueue : public NotificationObserver {
bool WaitForMessage(std::string* message) WARN_UNUSED_RESULT;
// Overridden NotificationObserver methods.
- virtual void Observe(NotificationType type,
+ virtual void Observe(int type,
const NotificationSource& source,
const NotificationDetails& details);