electron/shell/browser/notifications/mac/notification_presenter_mac.h

37 lines
1.1 KiB
C
Raw Normal View History

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.
2019-06-19 20:56:58 +00:00
#ifndef SHELL_BROWSER_NOTIFICATIONS_MAC_NOTIFICATION_PRESENTER_MAC_H_
#define SHELL_BROWSER_NOTIFICATIONS_MAC_NOTIFICATION_PRESENTER_MAC_H_
2015-12-24 13:55:18 +00:00
#include "base/mac/scoped_nsobject.h"
#include "shell/browser/notifications/mac/notification_center_delegate.h"
#include "shell/browser/notifications/notification_presenter.h"
2015-12-24 13:55:18 +00:00
namespace electron {
2015-12-24 13:55:18 +00:00
class CocoaNotification;
2015-12-24 13:55:18 +00:00
class NotificationPresenterMac : public NotificationPresenter {
public:
CocoaNotification* GetNotification(NSUserNotification* notif);
2015-12-24 13:55:18 +00:00
NotificationPresenterMac();
~NotificationPresenterMac() override;
2015-12-24 13:55:18 +00:00
private:
Notification* CreateNotificationObject(
NotificationDelegate* delegate) override;
base::scoped_nsobject<NotificationCenterDelegate>
notification_center_delegate_;
2015-12-24 13:55:18 +00:00
DISALLOW_COPY_AND_ASSIGN(NotificationPresenterMac);
};
} // namespace electron
2015-12-24 13:55:18 +00:00
2019-06-19 20:56:58 +00:00
#endif // SHELL_BROWSER_NOTIFICATIONS_MAC_NOTIFICATION_PRESENTER_MAC_H_