summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/status_icons/status_icon_win.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/views/status_icons/status_icon_win.h')
-rw-r--r--chrome/browser/views/status_icons/status_icon_win.h58
1 files changed, 3 insertions, 55 deletions
diff --git a/chrome/browser/views/status_icons/status_icon_win.h b/chrome/browser/views/status_icons/status_icon_win.h
index 08545ac..1f7ce62 100644
--- a/chrome/browser/views/status_icons/status_icon_win.h
+++ b/chrome/browser/views/status_icons/status_icon_win.h
@@ -6,60 +6,8 @@
#define CHROME_BROWSER_VIEWS_STATUS_ICONS_STATUS_ICON_WIN_H_
#pragma once
-#include <windows.h>
-#include <shellapi.h>
-
-#include "base/scoped_handle_win.h"
-#include "base/scoped_ptr.h"
-#include "chrome/browser/status_icons/status_icon.h"
-
-namespace views {
-class Menu2;
-}
-
-class StatusIconWin : public StatusIcon {
- public:
- // Constructor which provides this icon's unique ID and messaging window.
- StatusIconWin(UINT id, HWND window, UINT message);
- virtual ~StatusIconWin();
-
- // Overridden from StatusIcon:
- virtual void SetImage(const SkBitmap& image);
- virtual void SetPressedImage(const SkBitmap& image);
- virtual void SetToolTip(const string16& tool_tip);
-
- UINT icon_id() const { return icon_id_; }
-
- UINT message_id() const { return message_id_; }
-
- // Handles a click event from the user - if |left_button_click| is true and
- // there is a registered observer, passes the click event to the observer,
- // otherwise displays the context menu if there is one.
- void HandleClickEvent(int x, int y, bool left_button_click);
-
- protected:
- // Overridden from StatusIcon.
- virtual void UpdatePlatformContextMenu(menus::MenuModel* menu);
-
- private:
- void InitIconData(NOTIFYICONDATA* icon_data);
-
- // The unique ID corresponding to this icon.
- UINT icon_id_;
-
- // Window used for processing messages from this icon.
- HWND window_;
-
- // The message identifier used for status icon messages.
- UINT message_id_;
-
- // The currently-displayed icon for the window.
- ScopedHICON icon_;
-
- // Context menu associated with this icon (if any).
- scoped_ptr<views::Menu2> context_menu_;
-
- DISALLOW_COPY_AND_ASSIGN(StatusIconWin);
-};
+#include "chrome/browser/ui/views/status_icons/status_icon_win.h"
+// TODO(beng): remove this file once all includes have been updated.
#endif // CHROME_BROWSER_VIEWS_STATUS_ICONS_STATUS_ICON_WIN_H_
+