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

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

Issue 2921263002: Remove many delegates, let's see what breaks
Patch Set: fix test Created 3 years, 6 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_handler.h
diff --git a/chrome/browser/notifications/notification_handler.h b/chrome/browser/notifications/notification_handler.h
index 3e513963f1025b66135ae6788d2e0abb3345005f..ffe226de06d84dfb44f819a23af2fc901ce22907 100644
--- a/chrome/browser/notifications/notification_handler.h
+++ b/chrome/browser/notifications/notification_handler.h
@@ -21,6 +21,7 @@ class NotificationHandler {
public:
virtual ~NotificationHandler() {}
+ // Called after displaying a toast in case the caller needs some processing.
virtual void OnShow(Profile* profile, const std::string& notification_id) = 0;
// Process notification close events.
@@ -39,6 +40,12 @@ class NotificationHandler {
// Open notification settings.
virtual void OpenSettings(Profile* profile) = 0;
+
+ // Whether a notification should be displayed if in full screen. This is
+ // ignored by native notifications since the decision is made by the
+ // underlying OS in that case.
+ virtual bool ShouldDisplayOnFullScreen(Profile* profile,
+ const std::string& origin) const = 0;
};
#endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698