notification_presenter_win7.h 921 B

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. #include "brightray/browser/notification_presenter.h"
  3. #include "brightray/browser/win/win32_desktop_notifications/desktop_notification_controller.h"
  4. namespace brightray {
  5. class Win32Notification;
  6. class NotificationPresenterWin7 : public NotificationPresenter,
  7. public DesktopNotificationController {
  8. public:
  9. NotificationPresenterWin7() = default;
  10. Win32Notification* GetNotificationObjectByRef(
  11. const DesktopNotificationController::Notification& ref);
  12. Win32Notification* GetNotificationObjectByTag(const std::string& tag);
  13. private:
  14. brightray::Notification* CreateNotificationObject(
  15. NotificationDelegate* delegate) override;
  16. void OnNotificationClicked(Notification& notification) override;
  17. void OnNotificationDismissed(Notification& notification) override;
  18. DISALLOW_COPY_AND_ASSIGN(NotificationPresenterWin7);
  19. };
  20. } // namespace brightray