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

Unified Diff: ui/message_center/views/notification_view.cc

Issue 1578363004: Disable shadows in notification toasts on Windows classic theme. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/views/notification_view.cc
diff --git a/ui/message_center/views/notification_view.cc b/ui/message_center/views/notification_view.cc
index b66de84929a83391df4e6231fc0183f1ba2fed2a..fe91d1b09469a099755b1165664ef94720302697 100644
--- a/ui/message_center/views/notification_view.cc
+++ b/ui/message_center/views/notification_view.cc
@@ -50,6 +50,10 @@
#include "ui/views/widget/widget.h"
#include "url/gurl.h"
+#if defined(OS_WIN)
+#include "ui/base/win/shell.h"
+#endif
+
namespace {
// Dimensions.
@@ -198,6 +202,13 @@ NotificationView* NotificationView::Create(MessageCenterController* controller,
return notification_view;
#endif
+#if defined(OS_WIN)
+ // Don't create shadows for notifications on Windows under classic theme.
+ if (top_level && !ui::win::IsAeroGlassEnabled()) {
+ return notification_view;
+ }
+#endif // OS_WIN
+
notification_view->CreateShadowBorder();
return notification_view;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698