win: Remove NotifyIconHostStateChanger

We don't need the ability it provided, and it is causing crashes on some
machines.

Fixes #850.
This commit is contained in:
Cheng Zhao 2014-11-28 17:47:47 +08:00
parent ff26c3c16f
commit 89de5b6e9a
6 changed files with 0 additions and 461 deletions

View file

@ -16,16 +16,6 @@ namespace atom {
class NotifyIcon;
// A class that's responsible for increasing, if possible, the visibility
// of a status tray icon on the taskbar. The default implementation sends
// a task to a worker thread each time EnqueueChange is called.
class NotifyIconHostStateChangerProxy {
public:
// Called by NotifyIconHost to request upgraded visibility on the icon
// represented by the |icon_id|, |window| pair.
virtual void EnqueueChange(UINT icon_id, HWND window) = 0;
};
class NotifyIconHost {
public:
NotifyIconHost();
@ -34,8 +24,6 @@ class NotifyIconHost {
NotifyIcon* CreateNotifyIcon();
void Remove(NotifyIcon* notify_icon);
void UpdateIconVisibilityInBackground(NotifyIcon* notify_icon);
private:
typedef std::vector<NotifyIcon*> NotifyIcons;
@ -67,10 +55,6 @@ class NotifyIconHost {
// reset our status icons.
UINT taskbar_created_message_;
// Manages changes performed on a background thread to manipulate visibility
// of notification icons.
scoped_ptr<NotifyIconHostStateChangerProxy> state_changer_proxy_;
DISALLOW_COPY_AND_ASSIGN(NotifyIconHost);
};