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

Side by Side Diff: ui/message_center/views/message_view_factory.cc

Issue 2849523005: CrOS: Fix appearance of notification toasts when sliding out via gesture (Closed)
Patch Set: Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/message_center/views/message_view_factory.h" 5 #include "ui/message_center/views/message_view_factory.h"
6 6
7 #include "ui/message_center/notification_types.h" 7 #include "ui/message_center/notification_types.h"
8 #include "ui/message_center/views/custom_notification_view.h" 8 #include "ui/message_center/views/custom_notification_view.h"
9 #include "ui/message_center/views/notification_view.h" 9 #include "ui/message_center/views/notification_view.h"
10 10
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 return notification_view; 49 return notification_view;
50 #endif 50 #endif
51 51
52 #if defined(OS_WIN) 52 #if defined(OS_WIN)
53 // Don't create shadows for notifications on Windows under classic theme. 53 // Don't create shadows for notifications on Windows under classic theme.
54 if (top_level && !ui::win::IsAeroGlassEnabled()) { 54 if (top_level && !ui::win::IsAeroGlassEnabled()) {
55 return notification_view; 55 return notification_view;
56 } 56 }
57 #endif // OS_WIN 57 #endif // OS_WIN
58 58
59 notification_view->CreateShadowBorder(); 59 notification_view->SetIsNested();
60 return notification_view; 60 return notification_view;
61 } 61 }
62 62
63 } // namespace message_center 63 } // namespace message_center
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698