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

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

Issue 2921263002: Remove many delegates, let's see what breaks
Patch Set: compile 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..7e137c13b19f07744b5064d0de3dac279f9587f7 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.
@@ -30,7 +31,7 @@ class NotificationHandler {
bool by_user) = 0;
// Process cliks to a notification or its buttons, depending on
- // |action_index|.
+ // |action_index|.eb
virtual void OnClick(Profile* profile,
const std::string& origin,
const std::string& notification_id,
@@ -39,6 +40,11 @@ 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.
+ virtual bool ShouldDisplayOnFullScreen(Profile* profile,
+ const std::string& origin) const = 0;
};
#endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_HANDLER_H_
« no previous file with comments | « chrome/browser/notifications/notification_display_service.cc ('k') | chrome/browser/notifications/notification_object_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698