mirror of
https://github.com/electron/electron.git
synced 2026-02-08 14:15:28 -05:00
29 lines
630 B
C++
29 lines
630 B
C++
#ifndef BRIGHTRAY_BROWSER_NOTIFICATION_PRESENTER_H_
|
|
#define BRIGHTRAY_BROWSER_NOTIFICATION_PRESENTER_H_
|
|
|
|
namespace content {
|
|
struct ShowDesktopNotificationHostMsgParams;
|
|
}
|
|
|
|
namespace brightray {
|
|
|
|
class NotificationPresenter {
|
|
public:
|
|
virtual ~NotificationPresenter() {}
|
|
|
|
static NotificationPresenter* Create();
|
|
|
|
virtual void ShowNotification(
|
|
const content::ShowDesktopNotificationHostMsgParams&,
|
|
int render_process_id,
|
|
int render_view_id) = 0;
|
|
virtual void CancelNotification(
|
|
int render_process_id,
|
|
int render_view_id,
|
|
int notification_id) = 0;
|
|
};
|
|
|
|
} // namespace brightray
|
|
|
|
#endif
|