Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7957)

Unified Diff: chrome/browser/ui/views/status_icons/status_icon_win.h

Issue 10869037: Implement status tray notifications in Windows 8 metro chrome using metro style notifications. We d… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/status_icons/status_icon_win.h
===================================================================
--- chrome/browser/ui/views/status_icons/status_icon_win.h (revision 152792)
+++ chrome/browser/ui/views/status_icons/status_icon_win.h (working copy)
@@ -77,4 +77,27 @@
DISALLOW_COPY_AND_ASSIGN(StatusIconWin);
};
+// Implements status notifications using Windows 8 metro style notifications.
+class StatusIconMetro : public StatusIcon {
+ public:
+ // Constructor which provides this icon's unique ID and messaging window.
+ explicit StatusIconMetro(UINT id);
+ virtual ~StatusIconMetro();
+
+ // Overridden from StatusIcon:
+ virtual void SetImage(const SkBitmap& image) OVERRIDE;
+ virtual void SetPressedImage(const SkBitmap& image) OVERRIDE;
+ virtual void SetToolTip(const string16& tool_tip) OVERRIDE;
+ virtual void DisplayBalloon(const SkBitmap& icon,
+ const string16& title,
+ const string16& contents) OVERRIDE;
+ private:
+ virtual void UpdatePlatformContextMenu(ui::MenuModel* menu) OVERRIDE;
sky 2012/08/24 16:58:47 Why is this one private, but not the rest?
ananta 2012/08/24 18:03:41 Changed to protected to mimic the way it is declar
+
+ string16 tool_tip_;
+ UINT id_;
sky 2012/08/24 16:58:47 const
ananta 2012/08/24 18:03:41 Done.
+
+ DISALLOW_COPY_AND_ASSIGN(StatusIconMetro);
+};
+
#endif // CHROME_BROWSER_UI_VIEWS_STATUS_ICONS_STATUS_ICON_WIN_H_

Powered by Google App Engine
This is Rietveld 408576698