Refactor notification presenter for new desktop notification interface.
This commit is contained in:
parent
4e63780e4a
commit
6dd580526e
5 changed files with 82 additions and 131 deletions
|
@ -1,7 +1,10 @@
|
|||
#ifndef BRIGHTRAY_BROWSER_NOTIFICATION_PRESENTER_H_
|
||||
#define BRIGHTRAY_BROWSER_NOTIFICATION_PRESENTER_H_
|
||||
|
||||
#include "base/callback_forward.h"
|
||||
|
||||
namespace content {
|
||||
class DesktopNotificationDelegate;
|
||||
struct ShowDesktopNotificationHostMsgParams;
|
||||
}
|
||||
|
||||
|
@ -15,12 +18,8 @@ class NotificationPresenter {
|
|||
|
||||
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;
|
||||
content::DesktopNotificationDelegate* delegate,
|
||||
base::Closure* cancel_callback) = 0;
|
||||
};
|
||||
|
||||
} // namespace brightray
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue