2013-03-28 21:49:29 +00:00
|
|
|
#ifndef BRIGHTRAY_BROWSER_NOTIFICATION_PRESENTER_H_
|
|
|
|
#define BRIGHTRAY_BROWSER_NOTIFICATION_PRESENTER_H_
|
|
|
|
|
|
|
|
namespace content {
|
|
|
|
struct ShowDesktopNotificationHostMsgParams;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace brightray {
|
|
|
|
|
|
|
|
class NotificationPresenter {
|
|
|
|
public:
|
2013-03-28 22:03:58 +00:00
|
|
|
virtual ~NotificationPresenter() {};
|
2013-03-28 21:49:29 +00:00
|
|
|
|
2013-03-28 22:03:58 +00:00
|
|
|
static NotificationPresenter* Create();
|
|
|
|
|
|
|
|
virtual void ShowNotification(
|
2013-03-28 21:49:29 +00:00
|
|
|
const content::ShowDesktopNotificationHostMsgParams&,
|
|
|
|
int render_process_id,
|
2013-03-28 22:03:58 +00:00
|
|
|
int render_view_id) = 0;
|
2013-03-29 13:36:07 +00:00
|
|
|
virtual void CancelNotification(
|
|
|
|
int render_process_id,
|
|
|
|
int render_view_id,
|
|
|
|
int notification_id) = 0;
|
2013-03-28 21:49:29 +00:00
|
|
|
};
|
|
|
|
|
2013-11-17 23:20:17 +00:00
|
|
|
} // namespace brightray
|
2013-03-28 21:49:29 +00:00
|
|
|
|
|
|
|
#endif
|