Move notification-related code into a new NotificationPresenter class
This commit is contained in:
parent
1328c85eef
commit
3c41af84a1
6 changed files with 58 additions and 5 deletions
23
brightray/browser/notification_presenter.h
Normal file
23
brightray/browser/notification_presenter.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
#ifndef BRIGHTRAY_BROWSER_NOTIFICATION_PRESENTER_H_
|
||||
#define BRIGHTRAY_BROWSER_NOTIFICATION_PRESENTER_H_
|
||||
|
||||
namespace content {
|
||||
struct ShowDesktopNotificationHostMsgParams;
|
||||
}
|
||||
|
||||
namespace brightray {
|
||||
|
||||
class NotificationPresenter {
|
||||
public:
|
||||
NotificationPresenter();
|
||||
~NotificationPresenter();
|
||||
|
||||
void ShowNotification(
|
||||
const content::ShowDesktopNotificationHostMsgParams&,
|
||||
int render_process_id,
|
||||
int render_view_id);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue