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

Unified Diff: chrome/browser/ui/views/status_icons/status_tray_win.cc

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
« no previous file with comments | « chrome/browser/ui/views/status_icons/status_icon_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/status_icons/status_tray_win.cc
===================================================================
--- chrome/browser/ui/views/status_icons/status_tray_win.cc (revision 152792)
+++ chrome/browser/ui/views/status_icons/status_tray_win.cc (working copy)
@@ -4,6 +4,7 @@
#include "chrome/browser/ui/views/status_icons/status_tray_win.h"
+#include "base/win/metro.h"
#include "base/win/wrapped_window_proc.h"
#include "chrome/browser/ui/views/status_icons/status_icon_win.h"
#include "chrome/common/chrome_constants.h"
@@ -97,7 +98,11 @@
}
StatusIcon* StatusTrayWin::CreatePlatformStatusIcon() {
- return new StatusIconWin(next_icon_id_++, window_, kStatusIconMessage);
+ if (base::win::IsMetroProcess()) {
+ return new StatusIconMetro(next_icon_id_++);
+ } else {
+ return new StatusIconWin(next_icon_id_++, window_, kStatusIconMessage);
+ }
}
StatusTray* StatusTray::Create() {
« no previous file with comments | « chrome/browser/ui/views/status_icons/status_icon_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698