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_ |