2015-12-24 13:55:18 +00:00
|
|
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
|
|
|
// Copyright (c) 2013 Adam Roben <adam@roben.org>. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE-CHROMIUM file.
|
|
|
|
|
2021-11-22 07:34:31 +00:00
|
|
|
#ifndef ELECTRON_SHELL_BROWSER_NOTIFICATIONS_MAC_NOTIFICATION_PRESENTER_MAC_H_
|
|
|
|
#define ELECTRON_SHELL_BROWSER_NOTIFICATIONS_MAC_NOTIFICATION_PRESENTER_MAC_H_
|
2015-12-24 13:55:18 +00:00
|
|
|
|
2019-06-19 20:46:59 +00:00
|
|
|
#include "shell/browser/notifications/mac/notification_center_delegate.h"
|
|
|
|
#include "shell/browser/notifications/notification_presenter.h"
|
2015-12-24 13:55:18 +00:00
|
|
|
|
2018-10-17 18:01:11 +00:00
|
|
|
namespace electron {
|
2015-12-24 13:55:18 +00:00
|
|
|
|
2015-12-25 02:16:07 +00:00
|
|
|
class CocoaNotification;
|
|
|
|
|
2015-12-24 13:55:18 +00:00
|
|
|
class NotificationPresenterMac : public NotificationPresenter {
|
|
|
|
public:
|
2021-06-01 01:46:25 +00:00
|
|
|
CocoaNotification* GetNotification(NSUserNotification* ns_notification);
|
2015-12-25 02:16:07 +00:00
|
|
|
|
2015-12-24 13:55:18 +00:00
|
|
|
NotificationPresenterMac();
|
2018-04-17 23:03:51 +00:00
|
|
|
~NotificationPresenterMac() override;
|
2015-12-24 13:55:18 +00:00
|
|
|
|
|
|
|
private:
|
2017-04-03 08:38:21 +00:00
|
|
|
Notification* CreateNotificationObject(
|
|
|
|
NotificationDelegate* delegate) override;
|
2017-01-10 15:34:41 +00:00
|
|
|
|
2023-08-04 08:47:29 +00:00
|
|
|
NotificationCenterDelegate* __strong notification_center_delegate_;
|
2015-12-24 13:55:18 +00:00
|
|
|
};
|
|
|
|
|
2018-10-17 18:01:11 +00:00
|
|
|
} // namespace electron
|
2015-12-24 13:55:18 +00:00
|
|
|
|
2021-11-22 07:34:31 +00:00
|
|
|
#endif // ELECTRON_SHELL_BROWSER_NOTIFICATIONS_MAC_NOTIFICATION_PRESENTER_MAC_H_
|