| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |