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

Unified Diff: chrome/test/base/ui_test_utils.h

Issue 10079023: Move notifications used only in chrome/ out of content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: six! Created 8 years, 8 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
Index: chrome/test/base/ui_test_utils.h
diff --git a/chrome/test/base/ui_test_utils.h b/chrome/test/base/ui_test_utils.h
index 7bbc2f13e74c13a213cc6e7ef6c8fab045feb499..68ea3c24c7c4f00e94e9b7538f9ee8242468240f 100644
--- a/chrome/test/base/ui_test_utils.h
+++ b/chrome/test/base/ui_test_utils.h
@@ -448,6 +448,21 @@ class WindowedNotificationObserver : public content::NotificationObserver {
DISALLOW_COPY_AND_ASSIGN(WindowedNotificationObserver);
};
+// A WindowedNotificationObserver hard-wired to observe
+// chrome::NOTIFICATION_TAB_ADDED.
+class WindowedTabAddedNotificationObserver
+ : public WindowedNotificationObserver {
+ public:
+ // Register to listen for notifications of NOTIFICATION_TAB_ADDED from either
+ // a specific source, or from all sources if |source| is
+ // NotificationService::AllSources().
+ WindowedTabAddedNotificationObserver(
+ const content::NotificationSource& source);
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(WindowedTabAddedNotificationObserver);
+};
+
// Similar to WindowedNotificationObserver but also provides a way of retrieving
// the details associated with the notification.
// Note that in order to use that class the details class should be copiable,

Powered by Google App Engine
This is Rietveld 408576698