notification_presenter_mac.h 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. // Copyright (c) 2012 The Chromium Authors. All rights reserved.
  2. // Copyright (c) 2013 Adam Roben <[email protected]>. All rights reserved.
  3. // Use of this source code is governed by a BSD-style license that can be
  4. // found in the LICENSE-CHROMIUM file.
  5. #ifndef ELECTRON_SHELL_BROWSER_NOTIFICATIONS_MAC_NOTIFICATION_PRESENTER_MAC_H_
  6. #define ELECTRON_SHELL_BROWSER_NOTIFICATIONS_MAC_NOTIFICATION_PRESENTER_MAC_H_
  7. #include "shell/browser/notifications/mac/notification_center_delegate.h"
  8. #include "shell/browser/notifications/notification_presenter.h"
  9. namespace electron {
  10. class CocoaNotification;
  11. class NotificationPresenterMac : public NotificationPresenter {
  12. public:
  13. CocoaNotification* GetNotification(NSUserNotification* ns_notification);
  14. NotificationPresenterMac();
  15. ~NotificationPresenterMac() override;
  16. private:
  17. // NotificationPresenter
  18. Notification* CreateNotificationObject(
  19. NotificationDelegate* delegate) override;
  20. NotificationCenterDelegate* __strong notification_center_delegate_;
  21. };
  22. } // namespace electron
  23. #endif // ELECTRON_SHELL_BROWSER_NOTIFICATIONS_MAC_NOTIFICATION_PRESENTER_MAC_H_