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

Unified Diff: chrome/browser/notifications/notification_test_util.h

Issue 2377553003: Add ShouldDisplayOverFullscreen support to web notifications. (Closed)
Patch Set: Final formatting fixes Created 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/notifications/notification_test_util.h
diff --git a/chrome/browser/notifications/notification_test_util.h b/chrome/browser/notifications/notification_test_util.h
index 66b01e641b5e69d91edbcdaa9c9dfa785b066c9f..5fbb3112f4d14d10670e663d68aeee0c6e0072fe 100644
--- a/chrome/browser/notifications/notification_test_util.h
+++ b/chrome/browser/notifications/notification_test_util.h
@@ -15,6 +15,7 @@
#include "chrome/browser/notifications/notification.h"
#include "chrome/browser/notifications/notification_ui_manager.h"
+class Browser;
class Profile;
// NotificationDelegate which does nothing, useful for testing when
@@ -73,4 +74,19 @@ class StubNotificationUIManager : public NotificationUIManager {
DISALLOW_COPY_AND_ASSIGN(StubNotificationUIManager);
};
+// Helper class that has to be created in the stack to check if the fullscreen
+// setting of a browser is in the desired state.
+class FullscreenStateWaiter {
+ public:
+ FullscreenStateWaiter(Browser* browser, bool desired_state);
+
+ void Wait();
+
+ private:
+ Browser* browser_;
+ bool desired_state_;
+
+ DISALLOW_COPY_AND_ASSIGN(FullscreenStateWaiter);
+};
+
#endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_TEST_UTIL_H_
« no previous file with comments | « chrome/browser/notifications/notification_object_proxy.cc ('k') | chrome/browser/notifications/notification_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698