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.
|
|
|
|
|
2017-05-18 22:05:25 +00:00
|
|
|
#ifndef BRIGHTRAY_BROWSER_MAC_NOTIFICATION_PRESENTER_MAC_H_
|
|
|
|
#define BRIGHTRAY_BROWSER_MAC_NOTIFICATION_PRESENTER_MAC_H_
|
2015-12-24 13:55:18 +00:00
|
|
|
|
2015-12-25 02:16:07 +00:00
|
|
|
#include "base/mac/scoped_nsobject.h"
|
2017-05-18 22:58:12 +00:00
|
|
|
#include "brightray/browser/mac/notification_center_delegate.h"
|
|
|
|
#include "brightray/browser/notification_presenter.h"
|
2015-12-24 13:55:18 +00:00
|
|
|
|
|
|
|
namespace brightray {
|
|
|
|
|
2015-12-25 02:16:07 +00:00
|
|
|
class CocoaNotification;
|
|
|
|
|
2015-12-24 13:55:18 +00:00
|
|
|
class NotificationPresenterMac : public NotificationPresenter {
|
|
|
|
public:
|
2015-12-25 02:16:07 +00:00
|
|
|
CocoaNotification* GetNotification(NSUserNotification* notif);
|
|
|
|
|
2015-12-24 13:55:18 +00:00
|
|
|
NotificationPresenterMac();
|
|
|
|
~NotificationPresenterMac();
|
|
|
|
|
|
|
|
private:
|
2017-04-03 08:38:21 +00:00
|
|
|
Notification* CreateNotificationObject(
|
|
|
|
NotificationDelegate* delegate) override;
|
2017-01-10 15:34:41 +00:00
|
|
|
|
2015-12-25 02:16:07 +00:00
|
|
|
base::scoped_nsobject<NotificationCenterDelegate>
|
|
|
|
notification_center_delegate_;
|
|
|
|
|
2015-12-24 13:55:18 +00:00
|
|
|
DISALLOW_COPY_AND_ASSIGN(NotificationPresenterMac);
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace brightray
|
|
|
|
|
2017-05-18 22:05:25 +00:00
|
|
|
#endif // BRIGHTRAY_BROWSER_MAC_NOTIFICATION_PRESENTER_MAC_H_
|