Simplify the management of objects
This commit is contained in:
parent
4f73de0930
commit
f9f8a289d9
5 changed files with 58 additions and 60 deletions
|
@ -16,16 +16,10 @@
|
|||
#ifndef BRIGHTRAY_BROWSER_WIN_NOTIFICATION_PRESENTER_WIN_H_
|
||||
#define BRIGHTRAY_BROWSER_WIN_NOTIFICATION_PRESENTER_WIN_H_
|
||||
|
||||
#include <windows.ui.notifications.h>
|
||||
#include <wrl/implements.h>
|
||||
|
||||
#include "base/compiler_specific.h"
|
||||
#include "browser/notification_presenter.h"
|
||||
|
||||
namespace brightray {
|
||||
|
||||
class WindowsToastNotification;
|
||||
|
||||
class NotificationPresenterWin : public NotificationPresenter {
|
||||
public:
|
||||
NotificationPresenterWin();
|
||||
|
@ -37,11 +31,8 @@ class NotificationPresenterWin : public NotificationPresenter {
|
|||
scoped_ptr<content::DesktopNotificationDelegate> delegate,
|
||||
base::Closure* cancel_callback) override;
|
||||
|
||||
void RemoveNotification();
|
||||
|
||||
private:
|
||||
WindowsToastNotification* wtn;
|
||||
Microsoft::WRL::ComPtr<ABI::Windows::UI::Notifications::IToastNotification> m_lastNotification;
|
||||
DISALLOW_COPY_AND_ASSIGN(NotificationPresenterWin);
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue