Add a parameter to ShowNotification for the icon

This commit is contained in:
Paul Betts 2015-04-20 13:20:50 -07:00
parent 1cf1b5243d
commit b8689dc6cc
3 changed files with 5 additions and 0 deletions

View file

@ -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);

View file

@ -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;

View file

@ -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;
};