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

Unified Diff: chrome/test/ui_test_utils.h

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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 | « chrome/test/testing_profile.cc ('k') | chrome/test/ui_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/ui_test_utils.h
===================================================================
--- chrome/test/ui_test_utils.h (revision 91968)
+++ chrome/test/ui_test_utils.h (working copy)
@@ -37,7 +37,6 @@
class GURL;
class MessageLoop;
class NavigationController;
-class NotificationType;
class Profile;
class RenderViewHost;
class RenderWidgetHost;
@@ -217,17 +216,17 @@
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 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 @@
}
// NotificationObserver:
- virtual void Observe(NotificationType type,
+ virtual void Observe(int type,
const NotificationSource& source,
const NotificationDetails& details);
@@ -390,7 +389,7 @@
// 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 @@
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 @@
class WindowedNotificationObserverWithDetails
: public WindowedNotificationObserver {
public:
- WindowedNotificationObserverWithDetails(NotificationType notification_type,
+ WindowedNotificationObserverWithDetails(int notification_type,
const NotificationSource& source)
: WindowedNotificationObserver(notification_type, source) {}
@@ -456,7 +455,7 @@
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 @@
private:
// NotificationObserver
- virtual void Observe(NotificationType type,
+ virtual void Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) OVERRIDE;
@@ -509,7 +508,7 @@
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 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 @@
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);
« no previous file with comments | « chrome/test/testing_profile.cc ('k') | chrome/test/ui_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698