Add a parameter to ShowNotification for the icon
This commit is contained in:
parent
1cf1b5243d
commit
b8689dc6cc
3 changed files with 5 additions and 0 deletions
|
@ -52,6 +52,7 @@ NotificationPresenterLinux::~NotificationPresenterLinux() {
|
|||
|
||||
void NotificationPresenterLinux::ShowNotification(
|
||||
const content::PlatformNotificationData& data,
|
||||
const SkBitmap& icon,
|
||||
scoped_ptr<content::DesktopNotificationDelegate> delegate_ptr,
|
||||
base::Closure* cancel_callback) {
|
||||
std::string title = base::UTF16ToUTF8(data.title);
|
||||
|
|
|
@ -27,6 +27,7 @@ class NotificationPresenterLinux : public NotificationPresenter {
|
|||
// NotificationPresenter:
|
||||
void ShowNotification(
|
||||
const content::PlatformNotificationData&,
|
||||
const SkBitmap& icon,
|
||||
scoped_ptr<content::DesktopNotificationDelegate> delegate,
|
||||
base::Closure* cancel_callback) override;
|
||||
|
||||
|
|
|
@ -4,6 +4,8 @@
|
|||
#include "base/callback_forward.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
|
||||
class SkBitmap;
|
||||
|
||||
namespace content {
|
||||
class DesktopNotificationDelegate;
|
||||
struct PlatformNotificationData;
|
||||
|
@ -19,6 +21,7 @@ class NotificationPresenter {
|
|||
|
||||
virtual void ShowNotification(
|
||||
const content::PlatformNotificationData&,
|
||||
const SkBitmap& icon,
|
||||
scoped_ptr<content::DesktopNotificationDelegate> delegate,
|
||||
base::Closure* cancel_callback) = 0;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue