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

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

Issue 2093953002: Introduce a new API to handle native notification clicks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 5 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/message_center_display_service.h
diff --git a/chrome/browser/notifications/message_center_display_service.h b/chrome/browser/notifications/message_center_display_service.h
index bbe9063af7718d229ff39e4437fe438befe3dd7f..83ba314e9d6ee0865cfe37461486285014c5c4c4 100644
--- a/chrome/browser/notifications/message_center_display_service.h
+++ b/chrome/browser/notifications/message_center_display_service.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_DISPLAY_SERVICE_H_
#include "base/macros.h"
+#include "chrome/browser/notifications/notification_common.h"
#include "chrome/browser/notifications/notification_display_service.h"
class Notification;
@@ -21,9 +22,11 @@ class MessageCenterDisplayService : public NotificationDisplayService {
~MessageCenterDisplayService() override;
// NotificationDisplayService implementation.
- void Display(const std::string& notification_id,
+ void Display(NotificationCommon::Type notification_type,
+ const std::string& notification_id,
const Notification& notification) override;
- void Close(const std::string& notification_id) override;
+ void Close(NotificationCommon::Type notification_type,
+ const std::string& notification_id) override;
bool GetDisplayed(std::set<std::string>* notifications) const override;
bool SupportsNotificationCenter() const override;

Powered by Google App Engine
This is Rietveld 408576698